cmGlobalFastbuildGenerator.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file LICENSE.rst or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include <algorithm>
  5. #include <iterator>
  6. #include <map>
  7. #include <set>
  8. #include <string>
  9. #include <type_traits>
  10. #include <unordered_map>
  11. #include <unordered_set>
  12. #include <utility>
  13. #include <vector>
  14. #include <cm/memory>
  15. #include <cm/optional>
  16. #include <assert.h>
  17. #include "cmBuildOptions.h"
  18. #include "cmGeneratedFileStream.h"
  19. #include "cmGlobalCommonGenerator.h"
  20. class cmFastbuildTargetGenerator;
  21. class cmGeneratorTarget;
  22. class cmGlobalGeneratorFactory;
  23. class cmLinkLineComputer;
  24. class cmLocalGenerator;
  25. class cmMakefile;
  26. class cmOutputConverter;
  27. class cmStateDirectory;
  28. class cmake;
  29. enum class cmDepfileFormat;
  30. struct cmDocumentationEntry;
  31. #define FASTBUILD_DOLLAR_TAG "FASTBUILD_DOLLAR_TAG"
  32. #define FASTBUILD_1_INPUT_PLACEHOLDER \
  33. FASTBUILD_DOLLAR_TAG "FB_INPUT_1_PLACEHOLDER" FASTBUILD_DOLLAR_TAG
  34. #define FASTBUILD_1_0_INPUT_PLACEHOLDER \
  35. FASTBUILD_DOLLAR_TAG "FB_INPUT_1_0_PLACEHOLDER" FASTBUILD_DOLLAR_TAG
  36. #define FASTBUILD_1_1_INPUT_PLACEHOLDER \
  37. FASTBUILD_DOLLAR_TAG "FB_INPUT_1_1_PLACEHOLDER" FASTBUILD_DOLLAR_TAG
  38. #define FASTBUILD_2_INPUT_PLACEHOLDER \
  39. FASTBUILD_DOLLAR_TAG "FB_INPUT_2_PLACEHOLDER" FASTBUILD_DOLLAR_TAG
  40. #define FASTBUILD_3_INPUT_PLACEHOLDER \
  41. FASTBUILD_DOLLAR_TAG "FB_INPUT_3_PLACEHOLDER" FASTBUILD_DOLLAR_TAG
  42. // Alias to artifacts that can be consumed by the linker (DLL or Library).
  43. #define FASTBUILD_LINK_ARTIFACTS_ALIAS_POSTFIX "-link-artifacts"
  44. // Alias to all the ObjectList nodes.
  45. #define FASTBUILD_OBJECTS_ALIAS_POSTFIX "-objects"
  46. // Alias to all the dependencies of the target.
  47. #define FASTBUILD_DEPS_ARTIFACTS_ALIAS_POSTFIX "-deps"
  48. // Alias to build the target.
  49. #define FASTBUILD_BUILD_ALIAS_POSTFIX "-build"
  50. #define FASTBUILD_PRE_BUILD_ALIAS_POSTFIX "-pre-build"
  51. #define FASTBUILD_PRE_LINK_ALIAS_POSTFIX "-pre-link"
  52. #define FASTBUILD_POST_BUILD_ALIAS_POSTFIX "-post-build"
  53. // Alias to all other custom commands in the target.
  54. #define FASTBUILD_CUSTOM_COMMAND_ALIAS_POSTFIX "-custom-commands"
  55. // Alias to outputs produced by a custom command (since FASTBuild exec node
  56. // does not support more than 1 output).
  57. #define FASTBUILD_OUTPUTS_ALIAS_POSTFIX "-outputs"
  58. // Alias to byproducts produced by a custom command (since FASTBuild exec node
  59. // does not support more than 1 output).
  60. #define FASTBUILD_BYPRODUCTS_ALIAS_POSTFIX "-byproducts"
  61. // Alias to build & run all the custom commands.
  62. #define FASTBUILD_ALL_ALIAS_POSTFIX "-all"
  63. #define FASTBUILD_COMPILER_PREFIX "Compiler_"
  64. #define FASTBUILD_LAUNCHER_PREFIX "Launcher_"
  65. #define FASTBUILD_LINKER_LAUNCHER_PREFIX "LinkerLauncher_"
  66. #define FASTBUILD_RESTAT_FILE "FASTBUILD_RESTAT"
  67. #define FASTBUILD_UTIL_CONCURRENCY_GROUP_NAME "Utils"
  68. #define FASTBUILD_ALL_TARGET_NAME "all"
  69. #define FASTBUILD_CLEAN_TARGET_NAME "clean"
  70. #define FASTBUILD_NOOP_FILE_NAME "fbuild_noop"
  71. #define FASTBUILD_BUILD_FILE "fbuild.bff"
  72. #define FASTBUILD_DUMMY_OUTPUT_EXTENSION ".fbuild-cc-out"
  73. #if defined(_WIN32)
  74. # define FASTBUILD_SCRIPT_FILE_EXTENSION ".bat"
  75. # define FASTBUILD_SCRIPT_FILE_ARG "/C "
  76. # define FASTBUILD_SCRIPT_CD "cd /D "
  77. #else
  78. # define FASTBUILD_SCRIPT_FILE_EXTENSION ".sh"
  79. # define FASTBUILD_SCRIPT_FILE_ARG ""
  80. # define FASTBUILD_SCRIPT_CD "cd "
  81. #endif
  82. enum class FastbuildTargetDepType
  83. {
  84. ALL,
  85. BUILD,
  86. ORDER_ONLY,
  87. NONE,
  88. };
  89. struct FastbuildTargetDep
  90. {
  91. std::string Name;
  92. FastbuildTargetDepType Type = FastbuildTargetDepType::NONE;
  93. FastbuildTargetDep(std::string n)
  94. : Name(std::move(n))
  95. {
  96. }
  97. bool operator==(FastbuildTargetDep const& rhs) const
  98. {
  99. return this->Name == rhs.Name;
  100. }
  101. bool operator<(FastbuildTargetDep const& rhs) const
  102. {
  103. return this->Name < rhs.Name;
  104. }
  105. };
  106. enum class FastbuildTargetType
  107. {
  108. ALIAS, // Alias node
  109. EXEC, // Exec node
  110. LINK, // Library, DLL or Executable
  111. OBJECTLIST,
  112. };
  113. struct FastbuildTargetBase
  114. {
  115. // Target name with config postfix.
  116. std::string Name;
  117. // Target name without config postfix, we use it to locate IDE project for
  118. // the given target and add +1 config to it.
  119. std::string BaseName;
  120. std::string BasePath;
  121. std::set<FastbuildTargetDep> PreBuildDependencies;
  122. bool Hidden = true;
  123. FastbuildTargetType Type;
  124. explicit FastbuildTargetBase(FastbuildTargetType TargetType)
  125. : Type(TargetType)
  126. {
  127. }
  128. };
  129. using FastbuildTargetPtrT = std::unique_ptr<FastbuildTargetBase>;
  130. struct FastbuildAliasNode : public FastbuildTargetBase
  131. {
  132. bool ExcludeFromAll = false;
  133. FastbuildAliasNode()
  134. : FastbuildTargetBase(FastbuildTargetType::ALIAS)
  135. {
  136. }
  137. };
  138. struct FastbuildExecNode : public FastbuildTargetBase
  139. {
  140. std::string ExecExecutable;
  141. std::string ExecArguments;
  142. std::string ScriptFile;
  143. std::string ExecWorkingDir;
  144. bool ExecUseStdOutAsOutput = false;
  145. std::string ExecOutput;
  146. std::vector<std::string> ExecInput;
  147. std::vector<std::string> ExecInputPath;
  148. std::vector<std::string> ExecInputPattern;
  149. bool ExecInputPathRecurse = false;
  150. bool ExecAlways = false;
  151. FastbuildAliasNode OutputsAlias;
  152. FastbuildAliasNode ByproductsAlias;
  153. std::string ConcurrencyGroupName;
  154. bool ExcludeFromAll = false;
  155. FastbuildExecNode()
  156. : FastbuildTargetBase(FastbuildTargetType::EXEC)
  157. {
  158. }
  159. bool NeedsDepsCheckExec = false;
  160. };
  161. struct FastbuildCompiler
  162. {
  163. std::map<std::string, std::string> ExtraVariables;
  164. std::string Name;
  165. std::string Executable;
  166. std::string CmakeCompilerID;
  167. std::string CmakeCompilerVersion;
  168. std::string Language;
  169. std::vector<std::string> ExtraFiles;
  170. bool UseLightCache = false;
  171. // Only used for launchers.
  172. std::string Args;
  173. bool DontUseEnv = false;
  174. };
  175. struct FastbuildObjectListNode : public FastbuildTargetBase
  176. {
  177. std::string Compiler;
  178. std::string CompilerOptions;
  179. std::string CompilerOutputPath;
  180. std::string CompilerOutputExtension;
  181. std::string PCHInputFile;
  182. std::string PCHOutputFile;
  183. std::string PCHOptions;
  184. std::vector<std::string> CompilerInputFiles;
  185. bool AllowCaching = true;
  186. bool AllowDistribution = true;
  187. std::set<std::string> ObjectOutputs;
  188. std::set<std::string> ObjectDepends;
  189. // Apple only.
  190. std::string arch;
  191. FastbuildObjectListNode()
  192. : FastbuildTargetBase(FastbuildTargetType::OBJECTLIST)
  193. {
  194. }
  195. };
  196. struct IDEProjectConfig
  197. {
  198. std::string Config;
  199. std::string Target;
  200. // VS only.
  201. std::string Platform;
  202. std::string XCodeBaseSDK;
  203. std::string XCodeDebugWorkingDir;
  204. std::string XCodeIphoneOSDeploymentTarget;
  205. };
  206. struct IDEProjectCommon
  207. {
  208. std::string Alias;
  209. std::string ProjectOutput;
  210. std::string ProjectBasePath;
  211. std::vector<IDEProjectConfig> ProjectConfigs;
  212. };
  213. struct XCodeProject : public IDEProjectCommon
  214. {
  215. };
  216. struct VCXProject : public IDEProjectCommon
  217. {
  218. };
  219. struct FastbuildLinkerNode
  220. {
  221. enum
  222. {
  223. EXECUTABLE,
  224. SHARED_LIBRARY,
  225. STATIC_LIBRARY,
  226. NONE
  227. } Type = NONE;
  228. std::string Name;
  229. std::string Compiler;
  230. std::string CompilerOptions;
  231. std::string Linker;
  232. std::string LinkerType;
  233. std::string LinkerOutput;
  234. std::string LinkerOptions;
  235. std::vector<std::string> LibrarianAdditionalInputs;
  236. // We only use Libraries2 for tracking dependencies.
  237. std::vector<std::string> Libraries2;
  238. std::set<std::string> PreBuildDependencies;
  239. bool LinkerLinkObjects = false;
  240. std::string LinkerStampExe;
  241. std::string LinkerStampExeArgs;
  242. // Apple only.
  243. std::string Arch;
  244. };
  245. struct FastbuildCopyNode
  246. {
  247. std::string Name;
  248. std::string Source;
  249. std::string Dest;
  250. std::string PreBuildDependencies;
  251. bool CopyDir = false;
  252. };
  253. struct FastbuildExecNodes
  254. {
  255. std::vector<FastbuildExecNode> Nodes;
  256. FastbuildAliasNode Alias;
  257. };
  258. struct FastbuildTarget : public FastbuildTargetBase
  259. {
  260. std::map<std::string, std::string> Variables;
  261. std::vector<FastbuildObjectListNode> ObjectListNodes;
  262. // Potentially multiple libs for different archs (apple only);
  263. std::vector<FastbuildLinkerNode> LinkerNode;
  264. std::string RealOutput;
  265. FastbuildAliasNode PreBuildExecNodes, ExecNodes;
  266. std::vector<FastbuildAliasNode> AliasNodes;
  267. // This alias must be written before all other nodes, since they might need
  268. // to refer to it.
  269. FastbuildAliasNode DependenciesAlias;
  270. std::vector<FastbuildCopyNode> CopyNodes;
  271. FastbuildExecNodes PreLinkExecNodes;
  272. FastbuildExecNodes PostBuildExecNodes;
  273. // Must be written after the build, but before custom commands, since post
  274. // build commands need to depend on it.
  275. FastbuildAliasNode BuildAlias;
  276. bool IsGlobal = false;
  277. bool ExcludeFromAll = false;
  278. bool AllowDistribution = true;
  279. FastbuildTarget()
  280. : FastbuildTargetBase(FastbuildTargetType::LINK)
  281. {
  282. }
  283. void GenerateAliases();
  284. };
  285. class cmGlobalFastbuildGenerator : public cmGlobalCommonGenerator
  286. {
  287. public:
  288. cmGlobalFastbuildGenerator(cmake* cm);
  289. void ProcessEnvironment();
  290. static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
  291. void Generate() override;
  292. bool FindMakeProgram(cmMakefile* mf) override;
  293. void EnableLanguage(std::vector<std::string> const& lang, cmMakefile* mf,
  294. bool optional) override;
  295. bool IsFastbuild() const override { return true; }
  296. std::vector<GeneratedMakeCommand> GenerateBuildCommand(
  297. std::string const& makeProgram, std::string const& projectName,
  298. std::string const& projectDir, std::vector<std::string> const& targetNames,
  299. std::string const& config, int jobs, bool verbose,
  300. cmBuildOptions buildOptions = cmBuildOptions(),
  301. std::vector<std::string> const& makeOptions =
  302. std::vector<std::string>()) override;
  303. std::unique_ptr<cmLocalGenerator> CreateLocalGenerator(
  304. cmMakefile* makefile) override;
  305. std::string GetName() const override
  306. {
  307. return cmGlobalFastbuildGenerator::GetActualName();
  308. }
  309. bool IsMultiConfig() const override { return false; }
  310. void ComputeTargetObjectDirectory(cmGeneratorTarget*) const override;
  311. void AppendDirectoryForConfig(std::string const& prefix,
  312. std::string const& config,
  313. std::string const& suffix,
  314. std::string& dir) override;
  315. static std::string GetActualName() { return "FASTBuild"; }
  316. static std::string RequiredFastbuildVersion() { return "1.14"; }
  317. // Setup target names
  318. char const* GetAllTargetName() const override
  319. {
  320. return FASTBUILD_ALL_TARGET_NAME;
  321. }
  322. char const* GetInstallTargetName() const override { return "install"; }
  323. char const* GetCleanTargetName() const override
  324. {
  325. return FASTBUILD_CLEAN_TARGET_NAME;
  326. }
  327. char const* GetInstallLocalTargetName() const override
  328. {
  329. return "install/local";
  330. }
  331. char const* GetInstallStripTargetName() const override
  332. {
  333. return "install/strip";
  334. }
  335. char const* GetInstallParallelTargetName() const
  336. {
  337. return "install/parallel";
  338. }
  339. char const* GetTestTargetName() const override { return "test"; }
  340. char const* GetPackageTargetName() const override { return "package"; }
  341. char const* GetPackageSourceTargetName() const override
  342. {
  343. return "package_source";
  344. }
  345. char const* GetRebuildCacheTargetName() const override
  346. {
  347. return "rebuild_cache";
  348. }
  349. char const* GetCMakeCFGIntDir() const override { return "."; }
  350. /// Overloaded methods. @see cmGlobalGenerator::GetDocumentation()
  351. static cmDocumentationEntry GetDocumentation();
  352. static bool SupportsToolset() { return false; }
  353. static bool SupportsPlatform() { return false; }
  354. bool IsIPOSupported() const override { return true; }
  355. void OpenBuildFileStream();
  356. void CloseBuildFileStream();
  357. std::vector<std::string> const& GetConfigNames() const;
  358. bool Open(std::string const& bindir, std::string const& projectName,
  359. bool dryRun) override;
  360. std::string ConvertToFastbuildPath(std::string const& path) const;
  361. std::unique_ptr<cmLinkLineComputer> CreateLinkLineComputer(
  362. cmOutputConverter* outputConverter,
  363. cmStateDirectory const& /* stateDir */) const override;
  364. bool SupportsCustomCommandDepfile() const override { return true; }
  365. cm::optional<cmDepfileFormat> DepfileFormat() const override
  366. {
  367. return cm::nullopt;
  368. }
  369. static std::string Quote(std::string const& str,
  370. std::string const& quotation = "'");
  371. static std::string QuoteIfHasSpaces(std::string str);
  372. template <class T>
  373. static std::vector<std::string> Wrap(T const& in,
  374. std::string const& prefix = "'",
  375. std::string const& suffix = "'",
  376. bool escape_dollar = true);
  377. void WriteDivider();
  378. void WriteComment(std::string const& comment, int indent = 0);
  379. /// Write @a count times INDENT level to output stream @a os.
  380. void Indent(int count);
  381. void WriteVariable(std::string const& key, std::string const& value,
  382. std::string const& op, int indent = 0);
  383. void WriteVariable(std::string const& key, std::string const& value,
  384. int indent = 0);
  385. void WriteCommand(std::string const& command,
  386. std::string const& value = std::string(), int indent = 0);
  387. void WriteArray(std::string const& key,
  388. std::vector<std::string> const& values, int indent = 0);
  389. void WriteStruct(
  390. std::string const& name,
  391. std::vector<std::pair<std::string, std::string>> const& variables,
  392. int indent = 0);
  393. void WriteArray(std::string const& key,
  394. std::vector<std::string> const& values,
  395. std::string const& op, int indent = 0);
  396. template <typename T>
  397. std::vector<std::string> ConvertToFastbuildPath(T const& container) const
  398. {
  399. std::vector<std::string> ret;
  400. ret.reserve(container.size());
  401. for (auto const& path : container) {
  402. ret.push_back(ConvertToFastbuildPath(path));
  403. }
  404. return ret;
  405. }
  406. // Wrapper to sort array of conforming structs (which have .Name
  407. // and .PreBuildDependencies fields).
  408. template <class T>
  409. static void TopologicalSort(std::vector<T>& nodes)
  410. {
  411. static_assert(std::is_base_of<FastbuildTargetBase, T>::value,
  412. "T must be derived from FastbuildTargetBase");
  413. std::vector<FastbuildTargetPtrT> tmp;
  414. tmp.reserve(nodes.size());
  415. for (auto& node : nodes) {
  416. tmp.emplace_back(cm::make_unique<T>(std::move(node)));
  417. }
  418. nodes.clear();
  419. TopologicalSort(tmp);
  420. for (auto& node : tmp) {
  421. nodes.emplace_back(std::move(static_cast<T&>(*node)));
  422. }
  423. }
  424. // Stable topological sort.
  425. static void TopologicalSort(std::vector<FastbuildTargetPtrT>& nodes);
  426. void WriteDisclaimer();
  427. void WriteEnvironment();
  428. void WriteSettings();
  429. void WriteCompilers();
  430. void WriteTargets();
  431. void WriteTarget(FastbuildTarget const& target);
  432. void WriteExec(FastbuildExecNode const& Exec, int indent = 1);
  433. void WriteObjectList(FastbuildObjectListNode const& ObjectList,
  434. bool allowDistribution);
  435. void WriteLinker(FastbuildLinkerNode const&, bool);
  436. void WriteAlias(FastbuildAliasNode const& Alias, int indent = 1);
  437. void WriteCopy(FastbuildCopyNode const& Copy);
  438. void WriteIDEProjects();
  439. void WriteVSBuildCommands();
  440. void WriteXCodeBuildCommands();
  441. void WriteIDEProjectCommon(IDEProjectCommon const& project);
  442. void WriteIDEProjectConfig(std::vector<IDEProjectConfig> const& configs,
  443. std::string const& keyName = "ProjectConfigs");
  444. void WriteSolution();
  445. void WriteXCodeTopLevelProject();
  446. void WriteTargetRebuildBFF();
  447. void WriteTargetClean();
  448. void AddTargetAll();
  449. void AddGlobCheckExec();
  450. void AddCompiler(std::string const& lang, cmMakefile* mf);
  451. void AddLauncher(std::string const& prefix, std::string const& launcher,
  452. std::string const& lang, std::string const& args);
  453. void AddIDEProject(FastbuildTarget const& target, std::string const& config);
  454. template <class T>
  455. void AddTarget(T target)
  456. {
  457. // Sometimes equivalent CCs are added to different targets. We try to
  458. // de-dup it by assigning all execs a name which is a hash computed based
  459. // on various properties (like input, output, deps.). Apparently, there are
  460. // still some CCs intersection between different targets.
  461. auto val = AllGeneratedCommands.emplace(target.Name);
  462. if (val.second) {
  463. FastbuildTargets.emplace_back(cm::make_unique<T>(std::move(target)));
  464. }
  465. // Get the intersection of CC's deps. Just mimicking what
  466. // cmLocalNinjaGenerator::WriteCustomCommandBuildStatement does. (I don't
  467. // think it's right in general case, each CC should be added only to 1
  468. // target, not to multiple )
  469. else {
  470. auto it =
  471. std::find_if(FastbuildTargets.begin(), FastbuildTargets.end(),
  472. [&target](FastbuildTargetPtrT const& existingTarget) {
  473. return existingTarget->Name == target.Name;
  474. });
  475. assert(it != FastbuildTargets.end());
  476. std::set<FastbuildTargetDep> intersection;
  477. std::set_intersection(
  478. target.PreBuildDependencies.begin(), target.PreBuildDependencies.end(),
  479. (*it)->PreBuildDependencies.begin(), (*it)->PreBuildDependencies.end(),
  480. std::inserter(intersection, intersection.end()));
  481. (*it)->PreBuildDependencies = std::move(intersection);
  482. }
  483. }
  484. static std::string GetExternalShellExecutable();
  485. std::string GetTargetName(cmGeneratorTarget const* GeneratorTarget) const;
  486. cm::optional<FastbuildTarget> GetTargetByOutputName(
  487. std::string const& output) const;
  488. void AskCMakeToMakeRebuildBFFUpToDate(std::string const& workingDir) const;
  489. void ExecuteFastbuildTarget(
  490. std::string const& dir, std::string const& target, std::string& output,
  491. std::vector<std::string> const& fbuildOptions = {}) const;
  492. bool IsExcluded(cmGeneratorTarget* target);
  493. void LogMessage(std::string const& m) const;
  494. void AddFileToClean(std::string const& file);
  495. /// The set of compilers added to the generated build system.
  496. std::map<std::string, FastbuildCompiler> Compilers;
  497. std::vector<FastbuildTargetPtrT> FastbuildTargets;
  498. /// The file containing the build statement.
  499. std::unique_ptr<cmGeneratedFileStream> BuildFileStream;
  500. std::string FastbuildCommand;
  501. std::string FastbuildVersion;
  502. std::map<std::string, std::unique_ptr<cmFastbuildTargetGenerator>> Targets;
  503. std::unordered_set<std::string> AllFoldersToClean;
  504. // Sometime we need to keep some files that are generated only during
  505. // configuration (like .objs files used to create module definition from
  506. // objects).
  507. std::unordered_set<std::string> AllFilesToKeep;
  508. private:
  509. std::unordered_set<std::string> AllFilesToClean;
  510. // https://cmake.org/cmake/help/latest/module/ExternalProject.html#command:externalproject_add_steptargets
  511. std::unordered_set<std::string /*exec name*/> AllGeneratedCommands;
  512. std::unordered_map<std::string /*base target name (without -config)*/,
  513. std::pair<VCXProject, XCodeProject>>
  514. IDEProjects;
  515. // Env that we're going to embed to the generated file.
  516. std::vector<std::string> LocalEnvironment;
  517. };