summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.h
Commit message (Collapse)AuthorAgeFilesLines
* FASTBuild: optimize try_compile buildsEduard Voronkin2025-10-231-2/+2
| | | | | | The generator does a lot of tricks in order to make the "rebuild-bff" target up-to-date immediately after the generation. We can skip all of those during "TryCompile" runs, which should reduce configure time.
* prop_sf/OBJECT_NAME: no-op for the FASTBuild and Xcode generatorsBen Boeckel2025-09-091-0/+2
| | | | | | | | | There's no control over the object base name implemented in the FASTBuild generator. Rather than expecting some half-supported behavior, just ignore it completely there. Similarly, Xcode ends up making its own object paths internally regardless of what CMake would like.
* source: Pass cmBuildOptions by valueDaniel Pfeifer2025-07-301-1/+1
|
* Merge topic 'xcode-build-workspace'Brad King2025-06-111-0/+1
|\ | | | | | | | | | | | | 844d79916a cmake --build: Add support for driving Xcode workspaces Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10855
| * cmake --build: Add support for driving Xcode workspacesStepanov Igor2025-06-101-0/+1
| | | | | | | | | | | | | | | | | | External tools may create a `.xcworkspace` directory next to the `.xcodeproj` directory that CMake generates. If a workspace exists, drive the build through it instead. Closes: #26958 Co-authored-by: Brad King <brad.king@kitware.com>
* | cmGlobalXCodeGenerator: Remove unused argument from LookupFlags helperBrad King2025-06-071-2/+1
| |
* | cmGlobalXCodeGenerator: Convert GetTargetProductType signature to string_viewBrad King2025-06-071-1/+1
| |
* | cmGlobalXCodeGenerator: Convert CreateString signature to string_viewBrad King2025-06-071-1/+1
|/
* Merge topic 'xcode-debugger-workdir'Brad King2025-05-051-0/+2
|\ | | | | | | | | | | | | | | 149ee3b4bc Xcode: Use DEBUGGER_WORKING_DIRECTORY as a fallback for scheme work dir 0f1b9ef32a Help: VS_DEBUGGER_WORKING_DIRECTORY precedence Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10736
| * Xcode: Use DEBUGGER_WORKING_DIRECTORY as a fallback for scheme work dirCraig Scott2025-05-031-0/+2
| | | | | | | | | | | | | | | | This also means when XCODE_SCHEME_WORKING_DIRECTORY is set and a Xcode generator is used, that property will be used when writing the debugger field in the file API replies. Fixes: #26909
| * LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | ``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
* | LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | ``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
* | Xcode: Fix POST_BUILD order in bundle targets on Xcode 16+Alexandra Cherdantseva2025-02-251-1/+2
|/ | | | | | | | | XCode 16+ no longer delays our POST_BUILD phase until after bundle files like `Info.plist` are generated. Teach the Xcode generator to add explicit dependencies to the POST_BUILD phase in bundle targets to ensure the files are created before it runs. Fixes: #26656
* Revise C++ coding style using clang-format with "east const"Kitware Robot2025-01-231-59/+59
| | | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`, now with "east const" enforcement. Use `clang-format` version 18. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Issue: #26123
* Xcode: Fix XCODE_EMBED_FRAMEWORKS when settings differ across targetsAleksei Sapitskii2024-12-061-1/+0
| | | | | | | | | In commit 5651901c54 (Xcode: add support for embedding frameworks, 2020-10-24, v3.20.0-rc1~402^2) we incorrectly reused `PBXBuildFile` instances when the same framework is embedded in multiple targets, causing target-specific settings to conflict. Fixes: #26438
* Add support of "LINKER:" prefix for artifact creation flagsMarc Chevrier2024-11-041-0/+1
| | | | | | | The following variables now support the LINKER: prefix: * CMAKE_SHARED_LIBRARY_CREATE_<LANG>_FLAGS * CMAKE_SHARED_MODULE_CREATE_<LANG>_FLAGS * CMAKE_<LANG>_LINK_FLAGS
* cmGlobalXCodeGenerator: Migrate legacy makefile path escaping to local helperBrad King2024-05-151-1/+0
| | | | Also clarify the name. It does not do any relative path conversion.
* Xcode: Use deterministic object ids for targetslapfelix2024-04-101-0/+1
| | | | | | | When a CMake-generated Xcode project is included in another Xcode project, the used targets' object ids are kept as `remoteGlobalIDString`. Make the ids deterministic and somewhat independent of the build tree location.
* Xcode: Add support to embed XPC ServicesJonathan Earnshaw2023-11-291-0/+1
|
* Merge topic 'xcode-embed-resources'Brad King2023-08-011-0/+2
|\ | | | | | | | | | | | | | | | | e40d2cb3af Xcode: Add embed resources support Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Deal <halx99@live.com> Merge-request: !8632
| * Xcode: Add embed resources supporthalx992023-07-311-0/+2
| |
* | clang-tidy: fix `modernize-use-override` lintsBen Boeckel2023-07-301-1/+1
|/
* Xcode: Allow bundling extensionkit extensionsRussell Greene2022-11-181-1/+3
| | | | Fixes: #24150
* Refactor: `cmGlobalGeneratorFactory::GetDocumentation` returns entryAlex Turbov2022-11-171-2/+2
| | | | | | | | | | Before, a documentation entry was in/out parameter. Now it's a normal return value. This also makes possible to eliminate defaulted default ctor for `cmDocumentationEntry` for C++ 11. Also, simplify `cmake::AppendGlobalGeneratorsDocumentation()`.
* Xcode: Put object files in a place that Xcode cleansBrad King2022-10-281-0/+4
| | | | | | | | | Since commit dc5fc898f6 (Xcode: Set object file locations using TARGET_TEMP_DIR, 2022-09-29, v3.25.0-rc1~64^2~1), `xcodebuild clean` does not remove the object files in our explicit `TARGET_TEMP_DIR` because it is not under the `SYMROOT`. Put it there. Fixes: #24096
* Xcode: Set object file locations using TARGET_TEMP_DIRBrad King2022-09-291-5/+0
| | | | | | This avoids relying on `SYMROOT` to locate the object files. Issue: #22550
* cmTarget: Add `HasKnownObjectFileLocation()` shorthandHyper Nova Sun2022-04-111-1/+2
| | | | | | | | Allow `cmGlobalGenerator`s to decide `HasKnownObjectFileLocation()` per given `cmTarget` - `cmGlobalGenerator::HasKnownObjectFileLocation()` now takes an optional `cmGeneratorTarget` - `cmTarget::HasKnownObjectFileLocation()` added as a shorthand
* xcode: add support for xcconfig filesGregor Jasny2022-04-031-0/+6
| | | | Fixes: #18420
* cmGlobalGenerator: Add helper to split framework pathMarc Chevrier2022-02-131-0/+2
| | | | | cmComputeLinkInformation and cmGlobalXCodeGenerator now rely on this method to handle framework paths.
* cmBuildOptions: Split build arguments into separate object.Carsten Rudolph2022-01-221-1/+2
|
* Source: Fix IWYU warnings in Xcode generatorsNAKAMURA Takumi2021-11-161-0/+2
|
* Xcode: Add embedded plugins optionGusts Kaksis2021-11-101-0/+1
|
* Restore honoring CMAKE_GENERATOR_INSTANCE in toolchain fileBrad King2021-10-201-5/+0
| | | | | | | | | | | | | | | Revert the changes from commit d5b5c19278 (cmGlobalGenerator: FindMakeProgram() before CMakeDetermineSystem, 2020-06-15, v3.19.0-rc1~619^2~3) and commit ef91fb02f3 (cmGlobalGenerator: FindMakeProgram() at a generator-specific time, 2020-11-23, v3.19.1~2^2). We must delay selecting the location of MSBuild until after an instance of Visual Studio has been selected. It is now safe to revert the ordering because the motivating use case (sysroot detection in Platform/Android-Determine) has been implemented another way. Fixes: #22782
* Rename cmProp in cmValueMarc Chevrier2021-09-211-1/+1
|
* cmGlobalGenerator::PrintCompilerAdvice: use cmProp as augmentMarc Chevrier2021-09-191-1/+1
|
* cmGlobalXCodeGenerator: Simplify relative path conversion under project rootBrad King2021-05-121-2/+1
|
* Merge topic 'xcode_app_extensions'Brad King2021-04-261-0/+13
|\ | | | | | | | | | | | | | | eb5e33ba47 Xcode: Add support for embedding app extensions f62a2bf44f Tests: Factor out XcodeProject-Embed check function findAttribute() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5934
| * Xcode: Add support for embedding app extensionsAlexander Akhundzhanov2021-04-221-0/+13
| | | | | | | | Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* | Xcode: Add support of DEPFILE for add_custom_command, part 2Marc Chevrier2021-04-171-5/+4
| | | | | | | | | | | | This MR extend the support of 'DEPFILE' to buildsystem version 1. Issue: #20286
* | Xcode: Add support of DEPFILE for add_custom_commandMarc Chevrier2021-04-151-0/+13
|/ | | | Issue: #20286
* Merge topic 'xcode-object-ids'Brad King2021-01-081-2/+7
|\ | | | | | | | | | | | | | | | | b8b6573db8 Xcode: Use deterministic object ids for script build phases 2892228dc9 cmGlobalXCodeGenerator: Add infrastructure for deterministic object ids d250b67722 cmGlobalXCodeGenerator: Adopt pbxproj object id generation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5671
| * Xcode: Use deterministic object ids for script build phasesBrad King2021-01-061-1/+2
| | | | | | | | | | | | | | | | | | | | The Xcode "new build system" only considers a script build phase up to date if it has run before, even if outputs are newer than inputs. Use a deterministic object id for script build phases associated with custom commands so that they do not need to re-run after CMake re-generates the project. Fixes: #21669
| * cmGlobalXCodeGenerator: Add infrastructure for deterministic object idsBrad King2021-01-061-2/+5
| |
| * cmGlobalXCodeGenerator: Adopt pbxproj object id generationBrad King2021-01-061-0/+1
| |
* | Xcode: Generalize inheritance of project-level search pathsBrad King2020-12-221-0/+2
| | | | | | | | | | | | | | | | | | Generalize the change from commit bffb17be3d (Xcode: Inherit target library and framework search paths from project, 2020-11-04, v3.19.0-rc3~4^2) to apply to framework and other kinds of search paths added either for include directories or for linking. Issue: #21617
* | cmGlobalXCodeGenerator: Factor out helper to append attributeBrad King2020-12-211-0/+3
| |
* | Xcode: add support for embedding frameworksGusts Kaksis2020-11-281-0/+3
|/ | | | | | This commit also prepares for embedding things other than frameworks. In the future, we may want to embed resources and other types supported by Xcode, so the target properties have been documented in a way that clearly signals the future intent.
* cmGlobalGenerator: FindMakeProgram() at a generator-specific timeKyle Edwards2020-11-231-0/+5
| | | | | | | | | | d5b5c192 moved FindMakeProgram() to an earlier time, which resulted in CMAKE_MAKE_PROGRAM not being read from the toolchain file. Change it to only call FindMakeProgram() early in the specific cases of Visual Studio and Xcode, and restore the old behavior for all other generators. Fixes: #21486
* Xcode: Remove remnants of ancient XCODE_DEPEND_HELPER utility targetBrad King2020-09-241-1/+1
| | | | | | The target has not been generated since commit d92d51429e (BUG: fix for bug 6193, fix xcode depend helper, 2008-01-10, v2.6.0~553). Remove it from the list of special targets.
* Xcode: Switch to the "new build system" for Xcode 12 and aboveBrad King2020-09-181-0/+16
| | | | | | | Provide an option to switch back to the original build system via `-T buildsystem=1`. Fixes: #18088