summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio8Generator.cxx
Commit message (Collapse)AuthorAgeFilesLines
* CMake code rely on cmList class for CMake lists management (part. 2)Marc Chevrier2023-04-291-2/+3
|
* VS: Add CMake input files to ZERO_CHECKAlexander Neundorf2023-04-251-0/+16
| | | | | | | | | Add all cmake input files to the `ZERO_CHECK` project. Place files under `CMAKE_SOURCE_DIR` in a folder structure matching the directory structure. This way they are easier to find, and Visual Studio does not close them when reloading the project. Fixes: #24557
* cmGlobalVisualStudio8Generator: Collect CMake input files earlierAlexander Neundorf2023-04-251-12/+11
|
* VS: Parse comma-separated fields from CMAKE_GENERATOR_PLATFORMBrad King2023-04-051-1/+82
|
* VS: Defer Windows SDK selection until CMAKE_GENERATOR_PLATFORM is knownBrad King2023-04-051-0/+9
| | | | Prepare to teach `CMAKE_GENERATOR_PLATFORM` to affect SDK selection.
* cmCustomCommand: Refactor custom command-specific policy valuesKyle Edwards2023-02-061-3/+0
| | | | | | | | | | | | | | | | | Many custom commands are created by CMake itself rather than by the user. These custom commands should always have their policies set to NEW, and user-created custom commands should have their policy values set only from the state snapshot. In addition, we want to genericize the mechanism of recording a policy at the time of custom command creation. Add a CM_FOR_EACH_CUSTOM_COMMAND_POLICY macro to genericize custom command policies. Use this to define all custom command policies. Make all such policies NEW instead of WARN by default. Remove individual policy modifier methods and add a single method that records relevant values from a cmStateSnapshot. Remove the no longer needed explicit policy settings from synthesized custom commands.
* clang-tidy: fix `readability-qualified-auto` lintsBen Boeckel2022-11-291-1/+1
|
* clang-tidy: fix `readability-use-anyofallof` lintsBen Boeckel2022-11-291-13/+16
|
* clang-tidy: fix `modernize-loop-convert` lintsBen Boeckel2022-11-291-2/+2
|
* clang-tidy: fix `modernize-raw-string-literal` lintsBen Boeckel2022-11-291-1/+1
|
* clang-tidy: fix `bugprone-parent-virtual-call` lintsBen Boeckel2022-11-291-0/+2
|
* clang-tidy: fix `readability-redundant-string-cstr` lintsBen Boeckel2022-11-291-2/+2
|
* clang-tidy: fix `modernize-use-auto` lintsBen Boeckel2022-11-291-4/+2
|
* clang-tidy: fix `readability-static-accessed-through-instance` lintsBen Boeckel2022-11-291-1/+2
|
* VS: Introduce IsInSolution to check whether a target is in sln fileSumit Bhardwaj2022-02-121-1/+1
| | | | | | | | | | | Previously, different versions of VS Generators checked whether a target was in .sln file or not by checking whether the target was to be written to build system or not. As we move `ZERO_CHECK.vcxproj` to `.proj`, we want to exclude those files from being written to `.sln` files too. This commit introduces `IsInSolution()` at `cmGlobalVisualStudioGenerator` level which can be customized at specific versioned Generator when needed.
* cmCustomCommand: Track main dependency explicitlyNAKAMURA Takumi2021-12-141-3/+2
| | | | | | | Store the main dependency as the first entry in the dependency list plus a boolean member indicating its existence. Note that this slightly changes existing behavior: the main dependency was previously the last entry of the dependency list.
* Source: Fix possible IWYU warnings in Windows generatorsNAKAMURA Takumi2021-11-191-3/+22
|
* cmLocalGenerator: Simplify Add{Custom,Utility}CommandNAKAMURA Takumi2021-11-181-23/+22
|
* cmGlobalVisualStudio8Generator: Fix the misaligned argument, stdPipesUTF8NAKAMURA Takumi2021-11-181-5/+11
| | | | | | | The call to AddCustomCommandToTarget for "Checking File Globs" had misaligned arguments and previously passed `stdPipesUTF8` as `escapeOldStyle`. For now, set `escapeOldStyle` as `true`. Also `stdPipesUTF8` is `true` here.
* VS: Model a default target frameworkBrad King2021-11-061-0/+36
| | | | | | | | | | Add fields to the VS generator to select a target framework. Migrate the existing default for VS 12 .NET CF for Windows CE. Report the values in `CMAKE_VS_*` variables and use them for the CSharp compiler id project too. Issue: #22849
* cmGlobalVisualStudio8Generator: Refactor SetGeneratorPlatformBrad King2021-11-031-4/+11
| | | | | Re-organize the method to make room for additional `CMAKE_GENERATOR_PLATFORM` processing.
* VS: Map /Y- flag to not use precompiled headers with VS 2008Luigi Fiorentini2021-09-221-0/+1
|
* Rename cmProp in cmValueMarc Chevrier2021-09-211-4/+4
|
* cmCustomCommand: Record value of CMP0116 at time of creationKyle Edwards2021-02-231-9/+10
|
* Factor out generator checks for filtering out interface librariesBrad King2020-07-231-2/+2
| | | | | | Add a `cmGeneratorTarget::IsInBuildSystem` helper method to tell generators whether a target should participate in the generated build system.
* cmGeneratorTarget::GetProperty: return cmPropVitaly Stakhovsky2020-04-291-7/+7
|
* Add support to indicate UTF-8 custom command pipe output encodingJustin Goshi2020-04-131-2/+6
| | | | | | | | | | | | | | | | | Adds a flag to indicate that pipe output from a custom command should be interpreted as UTF-8 encoded. This change does not introduce a public way to set the flag, but generators that create internally-generated commands know if they are calling cmake, which uses UTF-8 pipes. MSBuild added support for interpreting output of PreBuildEvent, PreLinkEvent, PostBuildEvent, and CustomBuildStep as UTF-8. This change will appear in Visual Studio 16.6 Preview 3. It is opt-in, and you need to add the StdOutEncoding tag. MSBuild treats these as property bags so if we emit the tag for earlier versions of Visual Studio it would be safely ignored. This change emits the StdOutEncoding tag and sets it to UTF-8 whenever the custom command UTF-8 pipe flag is set. This fixes globalization issues when the output from cmake contained characters that required MSBuild to interpret as UTF-8 before displaying them.
* VS: Add target property to explicitly control solution deploymentAlexander Boczar2020-02-251-14/+22
| | | | | | Add a `VS_SOLUTION_DEPLOY` property to control solution deploy mark. Fixes: #20346
* Ninja Multi-Config: Fix issue with framework dependencies and AutogenKyle Edwards2020-02-171-3/+4
| | | | Fixes: #20345
* Source: use std::string in place of const char*Vitaly Stakhovsky2020-01-291-1/+1
|
* Refactoring: use append functions from cmext/algorithmMarc Chevrier2019-12-171-1/+1
|
* cmLocalGenerator: modernize memory managementMarc Chevrier2019-12-091-15/+17
|
* cmMakefile: Delay custom command creationDaniel Eiband2019-11-241-6/+5
| | | | | | | | Move custom command creation to cmLocalGenerator and dispatch custom commands in cmMakefile to generate time. Generators add custom commands using the new methods provided by cmLocalGenerator. Issue: #12877
* cmLocalGenerator: modernize memory managementMarc Chevrier2019-11-111-5/+7
|
* cmMakefile: Remove AddUtilityCommand overload without byproductsDaniel Eiband2019-09-261-5/+5
|
* cmMakefile: Move enumerations into new headerDaniel Eiband2019-09-261-6/+6
| | | | The enumerations will also be used in cmLocalGenerator.
* cmGeneratorExpression: Add cmGeneratorExpression::Evaluate utilityDaniel Eiband2019-09-231-5/+3
| | | | | | | cmGeneratorExpression::Evaluate is a shortcut when only the evaluated string is needed or an instance of cmCompiledGeneratorExpression cannot be cached. Fixes: #19686
* cmCustomCommandLine: Provide command line make functionsDaniel Eiband2019-09-161-16/+6
| | | | | Reduce boilerplate necessary to create custom command lines by introducing and applying cmMakeCommandLine and cmMakeSingleCommandLine functions.
* add_custom_command: Refactor setting implicit dependsDaniel Eiband2019-09-121-3/+6
| | | | | Implicit dependencies are now passed as argument to AddCustomCommandToOutput. This is necessary to be able to delay custom command creation.
* clang-tidy: Replace typedef with usingRegina Pfeifer2019-09-031-0/+1
|
* cmSourceFile: Rename mutating GetFullPath() overloadDaniel Eiband2019-08-291-1/+1
| | | | Rename mutating GetFullPath() overload to ResolveFullPath().
* Source sweep: Use cmStrCat for string concatenationSebastian Holtermann2019-08-221-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is generated by a python script that uses regular expressions to search for string concatenation patterns of the kind ``` std::string str = <ARG0>; str += <ARG1>; str += <ARG2>; ... ``` and replaces them with a single `cmStrCat` call ``` std::string str = cmStrCat(<ARG0>, <ARG1>, <ARG2>, ...); ``` If any `<ARGX>` is itself a concatenated string of the kind ``` a + b + c + ...; ``` then `<ARGX>` is split into multiple arguments for the `cmStrCat` call. If there's a sequence of literals in the `<ARGX>`, then all literals in the sequence are concatenated and merged into a single literal argument for the `cmStrCat` call. Single character strings are converted to single char arguments for the `cmStrCat` call. `std::to_string(...)` wrappings are removed from `cmStrCat` arguments, because it supports numeric types as well as string types. `arg.substr(x)` arguments to `cmStrCat` are replaced with `cm::string_view(arg).substr(x)`
* Source sweep: Use cmIsOn instead of cmSystemTools::IsOnSebastian Holtermann2019-08-171-1/+1
| | | | | | | | | This replaces invocations of - `cmSystemTools::IsInternallyOn` with `cmIsInternallyOn` - `cmSystemTools::IsNOTFOUND` with `cmIsNOTFOUND` - `cmSystemTools::IsOn` with `cmIsOn` - `cmSystemTools::IsOff` with `cmIsOff`
* Source code: Use cmExpandList instead of cmSystemTools::ExpandListArgumentSebastian Holtermann2019-08-141-1/+1
|
* cmMakefile: Let AddDefinition accept a value as cm::string_viewSebastian Holtermann2019-07-241-2/+1
| | | | | | | | | | | | | | | | This changes `cmMakefile::AddDefinition` to take a `cm::string_view` as value argument instead of a `const char *`. Benefits are: - `std::string` can be passed to `cmMakefile::AddDefinition` directly without the `c_str()` plus string length recomputation fallback. - Lengths of literals passed to `cmMakefile::AddDefinition` can be computed at compile time. In various sources uses of `cmMakefile::AddDefinition` are adapted to avoid `std::string::c_str` calls and the `std::string` is passed directly. Uses of `cmMakefile::AddDefinition`, where a `nullptr` `const char*` might be passed to `cmMakefile::AddDefinition` are extended with `nullptr` checks.
* Use cmAppend to append ranges to std::vector instancesSebastian Holtermann2019-05-231-4/+2
|
* Source: std::string related cleanupVitaly Stakhovsky2019-05-151-2/+2
|
* Merge topic 'vs-wince-no-deploy'Brad King2019-02-261-5/+26
|\ | | | | | | | | | | | | 917c035ada VS: support suppressing deployment of selected targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2991
| * VS: support suppressing deployment of selected targetsWil Stark2019-02-251-5/+26
| | | | | | | | | | | | | | | | Add a `VS_NO_SOLUTION_DEPLOY` target property to explicitly specify for each target whether to suppress VS solution deployment of the generated target project. Fixes: #18953
* | cmSystemTools::Error: consolidate parameters into single std::stringVitaly Stakhovsky2019-02-201-1/+1
|/