summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-14 19:02:47 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-18 17:02:14 (GMT)
commit8d5f4c4db93959f77dc8fb185e4630df4ec26d98 (patch)
treed71f3fd9552500ecb52217bff53f4a7b37d6e18c /Source/cmGlobalXCodeGenerator.h
parent2db623f554d5522350214a7c5bacd5ec2dec1b34 (diff)
downloadCMake-8d5f4c4db93959f77dc8fb185e4630df4ec26d98.zip
CMake-8d5f4c4db93959f77dc8fb185e4630df4ec26d98.tar.gz
CMake-8d5f4c4db93959f77dc8fb185e4630df4ec26d98.tar.bz2
Xcode: Switch to the "new build system" for Xcode 12 and above
Provide an option to switch back to the original build system via `-T buildsystem=1`. Fixes: #18088
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r--Source/cmGlobalXCodeGenerator.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h
index bbf3ee9..fca9c27 100644
--- a/Source/cmGlobalXCodeGenerator.h
+++ b/Source/cmGlobalXCodeGenerator.h
@@ -15,6 +15,7 @@
#include "cmXCodeObject.h"
class cmCustomCommand;
+class cmCustomCommandGenerator;
class cmGeneratorTarget;
class cmGlobalGeneratorFactory;
class cmLocalGenerator;
@@ -116,6 +117,7 @@ public:
enum class BuildSystem
{
One = 1,
+ Twelve = 12,
};
protected:
@@ -233,6 +235,18 @@ private:
cmXCodeObject* CreateLegacyRunScriptBuildPhase(
const char* name, const char* name2, cmGeneratorTarget* target,
const std::vector<cmCustomCommand>&);
+ void CreateRunScriptBuildPhases(cmXCodeObject* buildPhases,
+ cmGeneratorTarget const* gt);
+ void CreateRunScriptBuildPhases(cmXCodeObject* buildPhases,
+ cmSourceFile const* sf,
+ cmGeneratorTarget const* gt,
+ std::set<cmSourceFile const*>& visited);
+ cmXCodeObject* CreateRunScriptBuildPhase(cmSourceFile const* sf,
+ cmGeneratorTarget const* gt,
+ cmCustomCommand const& cc);
+ cmXCodeObject* CreateRunScriptBuildPhase(
+ std::string const& name, std::vector<cmCustomCommand> const& commands);
+ std::string ConstructScript(cmCustomCommandGenerator const& ccg);
void CreateReRunCMakeFile(cmLocalGenerator* root,
std::vector<cmLocalGenerator*> const& gens);
@@ -315,4 +329,6 @@ private:
std::vector<std::string> EnabledLangs;
std::map<cmGeneratorTarget const*, std::set<cmSourceFile const*>>
CommandsVisited;
+ std::map<cmSourceFile const*, std::set<cmGeneratorTarget const*>>
+ CustomCommandRoots;
};