cmLocalGenerator.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmLocalGenerator_h
  4. #define cmLocalGenerator_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <iosfwd>
  7. #include <map>
  8. #include <memory>
  9. #include <set>
  10. #include <string>
  11. #include <unordered_map>
  12. #include <vector>
  13. #include "cm_kwiml.h"
  14. #include "cmCustomCommandTypes.h"
  15. #include "cmListFileCache.h"
  16. #include "cmMessageType.h"
  17. #include "cmOutputConverter.h"
  18. #include "cmPolicies.h"
  19. #include "cmStateSnapshot.h"
  20. class cmComputeLinkInformation;
  21. class cmCustomCommandGenerator;
  22. class cmCustomCommandLines;
  23. class cmGeneratorTarget;
  24. class cmGlobalGenerator;
  25. class cmImplicitDependsList;
  26. class cmLinkLineComputer;
  27. class cmMakefile;
  28. class cmRulePlaceholderExpander;
  29. class cmSourceFile;
  30. class cmState;
  31. class cmTarget;
  32. class cmake;
  33. /** \class cmLocalGenerator
  34. * \brief Create required build files for a directory.
  35. *
  36. * Subclasses of this abstract class generate makefiles, DSP, etc for various
  37. * platforms. This class should never be constructed directly. A
  38. * GlobalGenerator will create it and invoke the appropriate commands on it.
  39. */
  40. class cmLocalGenerator : public cmOutputConverter
  41. {
  42. public:
  43. cmLocalGenerator(cmGlobalGenerator* gg, cmMakefile* makefile);
  44. virtual ~cmLocalGenerator();
  45. /**
  46. * Generate the makefile for this directory.
  47. */
  48. virtual void Generate() {}
  49. virtual void ComputeHomeRelativeOutputPath() {}
  50. /**
  51. * Calls TraceVSDependencies() on all targets of this generator.
  52. */
  53. void TraceDependencies();
  54. virtual void AddHelperCommands() {}
  55. /**
  56. * Generate the install rules files in this directory.
  57. */
  58. void GenerateInstallRules();
  59. /**
  60. * Generate the test files for tests.
  61. */
  62. void GenerateTestFiles();
  63. /**
  64. * Generate a manifest of target files that will be built.
  65. */
  66. void ComputeTargetManifest();
  67. bool ComputeTargetCompileFeatures();
  68. bool IsRootMakefile() const;
  69. //! Get the makefile for this generator
  70. cmMakefile* GetMakefile() { return this->Makefile; }
  71. //! Get the makefile for this generator, const version
  72. const cmMakefile* GetMakefile() const { return this->Makefile; }
  73. //! Get the GlobalGenerator this is associated with
  74. cmGlobalGenerator* GetGlobalGenerator() { return this->GlobalGenerator; }
  75. const cmGlobalGenerator* GetGlobalGenerator() const
  76. {
  77. return this->GlobalGenerator;
  78. }
  79. virtual cmRulePlaceholderExpander* CreateRulePlaceholderExpander() const;
  80. std::string GetLinkLibsCMP0065(std::string const& linkLanguage,
  81. cmGeneratorTarget& tgt) const;
  82. cmState* GetState() const;
  83. cmStateSnapshot GetStateSnapshot() const;
  84. void AddArchitectureFlags(std::string& flags,
  85. cmGeneratorTarget const* target,
  86. const std::string& lang, const std::string& config,
  87. const std::string& filterArch = std::string());
  88. void AddLanguageFlags(std::string& flags, cmGeneratorTarget const* target,
  89. const std::string& lang, const std::string& config);
  90. void AddLanguageFlagsForLinking(std::string& flags,
  91. cmGeneratorTarget const* target,
  92. const std::string& lang,
  93. const std::string& config);
  94. void AddCMP0018Flags(std::string& flags, cmGeneratorTarget const* target,
  95. std::string const& lang, const std::string& config);
  96. void AddVisibilityPresetFlags(std::string& flags,
  97. cmGeneratorTarget const* target,
  98. const std::string& lang);
  99. void AddConfigVariableFlags(std::string& flags, const std::string& var,
  100. const std::string& config);
  101. void AddCompilerRequirementFlag(std::string& flags,
  102. cmGeneratorTarget const* target,
  103. const std::string& lang);
  104. //! Append flags to a string.
  105. virtual void AppendFlags(std::string& flags,
  106. const std::string& newFlags) const;
  107. virtual void AppendFlags(std::string& flags,
  108. const std::vector<BT<std::string>>& newFlags) const;
  109. virtual void AppendFlagEscape(std::string& flags,
  110. const std::string& rawFlag) const;
  111. void AddPchDependencies(cmGeneratorTarget* target);
  112. void AddUnityBuild(cmGeneratorTarget* target);
  113. void AppendIPOLinkerFlags(std::string& flags, cmGeneratorTarget* target,
  114. const std::string& config,
  115. const std::string& lang);
  116. void AppendPositionIndependentLinkerFlags(std::string& flags,
  117. cmGeneratorTarget* target,
  118. const std::string& config,
  119. const std::string& lang);
  120. //! Get the include flags for the current makefile and language
  121. std::string GetIncludeFlags(const std::vector<std::string>& includes,
  122. cmGeneratorTarget* target,
  123. const std::string& lang,
  124. bool forceFullPaths = false,
  125. bool forResponseFile = false,
  126. const std::string& config = "");
  127. using GeneratorTargetVector =
  128. std::vector<std::unique_ptr<cmGeneratorTarget>>;
  129. const GeneratorTargetVector& GetGeneratorTargets() const
  130. {
  131. return this->GeneratorTargets;
  132. }
  133. void AddGeneratorTarget(std::unique_ptr<cmGeneratorTarget> gt);
  134. void AddImportedGeneratorTarget(cmGeneratorTarget* gt);
  135. void AddOwnedImportedGeneratorTarget(std::unique_ptr<cmGeneratorTarget> gt);
  136. cmGeneratorTarget* FindLocalNonAliasGeneratorTarget(
  137. const std::string& name) const;
  138. cmGeneratorTarget* FindGeneratorTargetToUse(const std::string& name) const;
  139. /**
  140. * Process a list of include directories
  141. */
  142. void AppendIncludeDirectories(std::vector<std::string>& includes,
  143. std::string const& includes_list,
  144. const cmSourceFile& sourceFile) const;
  145. void AppendIncludeDirectories(std::vector<std::string>& includes,
  146. const std::vector<std::string>& includes_vec,
  147. const cmSourceFile& sourceFile) const;
  148. /**
  149. * Encode a list of preprocessor definitions for the compiler
  150. * command line.
  151. */
  152. void AppendDefines(std::set<std::string>& defines,
  153. std::string const& defines_list) const;
  154. void AppendDefines(std::set<BT<std::string>>& defines,
  155. std::string const& defines_list) const;
  156. void AppendDefines(std::set<BT<std::string>>& defines,
  157. const std::vector<BT<std::string>>& defines_vec) const;
  158. /**
  159. * Encode a list of compile options for the compiler
  160. * command line.
  161. */
  162. void AppendCompileOptions(std::string& options,
  163. std::string const& options_list,
  164. const char* regex = nullptr) const;
  165. void AppendCompileOptions(std::string& options,
  166. const std::vector<std::string>& options_vec,
  167. const char* regex = nullptr) const;
  168. void AppendCompileOptions(std::vector<BT<std::string>>& options,
  169. const std::vector<BT<std::string>>& options_vec,
  170. const char* regex = nullptr) const;
  171. /**
  172. * Join a set of defines into a definesString with a space separator.
  173. */
  174. void JoinDefines(const std::set<std::string>& defines,
  175. std::string& definesString, const std::string& lang);
  176. /** Lookup and append options associated with a particular feature. */
  177. void AppendFeatureOptions(std::string& flags, const std::string& lang,
  178. const char* feature);
  179. const char* GetFeature(const std::string& feature,
  180. const std::string& config);
  181. /** \brief Get absolute path to dependency \a name
  182. *
  183. * Translate a dependency as given in CMake code to the name to
  184. * appear in a generated build file.
  185. * - If \a name is a utility target, returns false.
  186. * - If \a name is a CMake target, it will be transformed to the real output
  187. * location of that target for the given configuration.
  188. * - If \a name is the full path to a file, it will be returned.
  189. * - Otherwise \a name is treated as a relative path with respect to
  190. * the source directory of this generator. This should only be
  191. * used for dependencies of custom commands.
  192. */
  193. bool GetRealDependency(const std::string& name, const std::string& config,
  194. std::string& dep);
  195. virtual std::string ConvertToIncludeReference(
  196. std::string const& path,
  197. cmOutputConverter::OutputFormat format = cmOutputConverter::SHELL,
  198. bool forceFullPaths = false);
  199. /** Called from command-line hook to clear dependencies. */
  200. virtual void ClearDependencies(cmMakefile* /* mf */, bool /* verbose */) {}
  201. /** Called from command-line hook to update dependencies. */
  202. virtual bool UpdateDependencies(const std::string& /* tgtInfo */,
  203. bool /*verbose*/, bool /*color*/)
  204. {
  205. return true;
  206. }
  207. /** @brief Get the include directories for the current makefile and language
  208. * and optional the compiler implicit include directories.
  209. *
  210. * @arg stripImplicitDirs Strip all directories found in
  211. * CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES from the result.
  212. * @arg appendAllImplicitDirs Append all directories found in
  213. * CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES to the result.
  214. */
  215. std::vector<BT<std::string>> GetIncludeDirectoriesImplicit(
  216. cmGeneratorTarget const* target, std::string const& lang = "C",
  217. std::string const& config = "", bool stripImplicitDirs = true,
  218. bool appendAllImplicitDirs = false) const;
  219. /** @brief Get the include directories for the current makefile and language
  220. * and optional the compiler implicit include directories.
  221. *
  222. * @arg dirs Directories are appended to this list
  223. */
  224. void GetIncludeDirectoriesImplicit(std::vector<std::string>& dirs,
  225. cmGeneratorTarget const* target,
  226. const std::string& lang = "C",
  227. const std::string& config = "",
  228. bool stripImplicitDirs = true,
  229. bool appendAllImplicitDirs = false) const;
  230. /** @brief Get the include directories for the current makefile and language.
  231. * @arg dirs Include directories are appended to this list
  232. */
  233. void GetIncludeDirectories(std::vector<std::string>& dirs,
  234. cmGeneratorTarget const* target,
  235. const std::string& lang = "C",
  236. const std::string& config = "") const;
  237. /** @brief Get the include directories for the current makefile and language.
  238. * @return The include directory list
  239. */
  240. std::vector<BT<std::string>> GetIncludeDirectories(
  241. cmGeneratorTarget const* target, std::string const& lang = "C",
  242. std::string const& config = "") const;
  243. void AddCompileOptions(std::string& flags, cmGeneratorTarget* target,
  244. const std::string& lang, const std::string& config);
  245. void AddCompileOptions(std::vector<BT<std::string>>& flags,
  246. cmGeneratorTarget* target, const std::string& lang,
  247. const std::string& config);
  248. /**
  249. * Add a custom PRE_BUILD, PRE_LINK, or POST_BUILD command to a target.
  250. */
  251. cmTarget* AddCustomCommandToTarget(
  252. const std::string& target, const std::vector<std::string>& byproducts,
  253. const std::vector<std::string>& depends,
  254. const cmCustomCommandLines& commandLines, cmCustomCommandType type,
  255. const char* comment, const char* workingDir, bool escapeOldStyle = true,
  256. bool uses_terminal = false, const std::string& depfile = "",
  257. const std::string& job_pool = "", bool command_expand_lists = false,
  258. cmObjectLibraryCommands objLibCommands = cmObjectLibraryCommands::Reject);
  259. /**
  260. * Add a custom command to a source file.
  261. */
  262. cmSourceFile* AddCustomCommandToOutput(
  263. const std::string& output, const std::vector<std::string>& depends,
  264. const std::string& main_dependency,
  265. const cmCustomCommandLines& commandLines, const char* comment,
  266. const char* workingDir, bool replace = false, bool escapeOldStyle = true,
  267. bool uses_terminal = false, bool command_expand_lists = false,
  268. const std::string& depfile = "", const std::string& job_pool = "");
  269. cmSourceFile* AddCustomCommandToOutput(
  270. const std::vector<std::string>& outputs,
  271. const std::vector<std::string>& byproducts,
  272. const std::vector<std::string>& depends,
  273. const std::string& main_dependency,
  274. const cmImplicitDependsList& implicit_depends,
  275. const cmCustomCommandLines& commandLines, const char* comment,
  276. const char* workingDir, bool replace = false, bool escapeOldStyle = true,
  277. bool uses_terminal = false, bool command_expand_lists = false,
  278. const std::string& depfile = "", const std::string& job_pool = "");
  279. /**
  280. * Add a utility to the build. A utility target is a command that is run
  281. * every time the target is built.
  282. */
  283. cmTarget* AddUtilityCommand(
  284. const std::string& utilityName, bool excludeFromAll,
  285. const char* workingDir, const std::vector<std::string>& byproducts,
  286. const std::vector<std::string>& depends,
  287. const cmCustomCommandLines& commandLines, bool escapeOldStyle = true,
  288. const char* comment = nullptr, bool uses_terminal = false,
  289. bool command_expand_lists = false, const std::string& job_pool = "");
  290. std::string GetProjectName() const;
  291. /** Compute the language used to compile the given source file. */
  292. std::string GetSourceFileLanguage(const cmSourceFile& source);
  293. // Fill the vector with the target names for the object files,
  294. // preprocessed files and assembly files.
  295. void GetIndividualFileTargets(std::vector<std::string>&) {}
  296. /**
  297. * Get the relative path from the generator output directory to a
  298. * per-target support directory.
  299. */
  300. virtual std::string GetTargetDirectory(
  301. cmGeneratorTarget const* target) const;
  302. /**
  303. * Get the level of backwards compatibility requested by the project
  304. * in this directory. This is the value of the CMake variable
  305. * CMAKE_BACKWARDS_COMPATIBILITY whose format is
  306. * "major.minor[.patch]". The returned integer is encoded as
  307. *
  308. * CMake_VERSION_ENCODE(major, minor, patch)
  309. *
  310. * and is monotonically increasing with the CMake version.
  311. */
  312. KWIML_INT_uint64_t GetBackwardsCompatibility();
  313. /**
  314. * Test whether compatibility is set to a given version or lower.
  315. */
  316. bool NeedBackwardsCompatibility_2_4();
  317. cmPolicies::PolicyStatus GetPolicyStatus(cmPolicies::PolicyID id) const;
  318. cmake* GetCMakeInstance() const;
  319. std::string const& GetSourceDirectory() const;
  320. std::string const& GetBinaryDirectory() const;
  321. std::string const& GetCurrentBinaryDirectory() const;
  322. std::string const& GetCurrentSourceDirectory() const;
  323. /**
  324. * Convert the given remote path to a relative path with respect to
  325. * the given local path. Both paths must use forward slashes and not
  326. * already be escaped or quoted.
  327. * The conversion is skipped if the paths are not both in the source
  328. * or both in the binary tree.
  329. */
  330. std::string MaybeConvertToRelativePath(std::string const& local_path,
  331. std::string const& remote_path) const;
  332. /**
  333. * Generate a macOS application bundle Info.plist file.
  334. */
  335. void GenerateAppleInfoPList(cmGeneratorTarget* target,
  336. const std::string& targetName,
  337. const std::string& fname);
  338. /**
  339. * Generate a macOS framework Info.plist file.
  340. */
  341. void GenerateFrameworkInfoPList(cmGeneratorTarget* target,
  342. const std::string& targetName,
  343. const std::string& fname);
  344. /** Construct a comment for a custom command. */
  345. std::string ConstructComment(cmCustomCommandGenerator const& ccg,
  346. const char* default_comment = "");
  347. // Compute object file names.
  348. std::string GetObjectFileNameWithoutTarget(
  349. const cmSourceFile& source, std::string const& dir_max,
  350. bool* hasSourceExtension = nullptr,
  351. char const* customOutputExtension = nullptr);
  352. /** Fill out the static linker flags for the given target. */
  353. void GetStaticLibraryFlags(std::string& flags, std::string const& config,
  354. std::string const& linkLanguage,
  355. cmGeneratorTarget* target);
  356. std::vector<BT<std::string>> GetStaticLibraryFlags(
  357. std::string const& config, std::string const& linkLanguage,
  358. cmGeneratorTarget* target);
  359. /** Fill out these strings for the given target. Libraries to link,
  360. * flags, and linkflags. */
  361. void GetTargetFlags(cmLinkLineComputer* linkLineComputer,
  362. const std::string& config, std::string& linkLibs,
  363. std::string& flags, std::string& linkFlags,
  364. std::string& frameworkPath, std::string& linkPath,
  365. cmGeneratorTarget* target);
  366. void GetTargetFlags(
  367. cmLinkLineComputer* linkLineComputer, const std::string& config,
  368. std::vector<BT<std::string>>& linkLibs, std::string& flags,
  369. std::vector<BT<std::string>>& linkFlags, std::string& frameworkPath,
  370. std::vector<BT<std::string>>& linkPath, cmGeneratorTarget* target);
  371. void GetTargetDefines(cmGeneratorTarget const* target,
  372. std::string const& config, std::string const& lang,
  373. std::set<std::string>& defines) const;
  374. std::set<BT<std::string>> GetTargetDefines(cmGeneratorTarget const* target,
  375. std::string const& config,
  376. std::string const& lang) const;
  377. void GetTargetCompileFlags(cmGeneratorTarget* target,
  378. std::string const& config,
  379. std::string const& lang, std::string& flags,
  380. std::string const& arch = std::string());
  381. std::vector<BT<std::string>> GetTargetCompileFlags(
  382. cmGeneratorTarget* target, std::string const& config,
  383. std::string const& lang, std::string const& arch = std::string());
  384. std::string GetFrameworkFlags(std::string const& l,
  385. std::string const& config,
  386. cmGeneratorTarget* target);
  387. virtual std::string GetTargetFortranFlags(cmGeneratorTarget const* target,
  388. std::string const& config);
  389. virtual void ComputeObjectFilenames(
  390. std::map<cmSourceFile const*, std::string>& mapping,
  391. cmGeneratorTarget const* gt = nullptr);
  392. bool IsWindowsShell() const;
  393. bool IsWatcomWMake() const;
  394. bool IsMinGWMake() const;
  395. bool IsNMake() const;
  396. bool IsNinjaMulti() const;
  397. void IssueMessage(MessageType t, std::string const& text) const;
  398. void CreateEvaluationFileOutputs();
  399. void CreateEvaluationFileOutputs(const std::string& config);
  400. void ProcessEvaluationFiles(std::vector<std::string>& generatedFiles);
  401. const char* GetRuleLauncher(cmGeneratorTarget* target,
  402. const std::string& prop);
  403. protected:
  404. //! put all the libraries for a target on into the given stream
  405. void OutputLinkLibraries(cmComputeLinkInformation* pcli,
  406. cmLinkLineComputer* linkLineComputer,
  407. std::string& linkLibraries,
  408. std::string& frameworkPath, std::string& linkPath);
  409. void OutputLinkLibraries(cmComputeLinkInformation* pcli,
  410. cmLinkLineComputer* linkLineComputer,
  411. std::vector<BT<std::string>>& linkLibraries,
  412. std::string& frameworkPath,
  413. std::vector<BT<std::string>>& linkPath);
  414. // Handle old-style install rules stored in the targets.
  415. void GenerateTargetInstallRules(
  416. std::ostream& os, const std::string& config,
  417. std::vector<std::string> const& configurationTypes);
  418. std::string& CreateSafeUniqueObjectFileName(const std::string& sin,
  419. std::string const& dir_max);
  420. /** Check whether the native build system supports the given
  421. definition. Issues a warning. */
  422. virtual bool CheckDefinition(std::string const& define) const;
  423. cmMakefile* Makefile;
  424. cmStateSnapshot StateSnapshot;
  425. cmListFileBacktrace DirectoryBacktrace;
  426. cmGlobalGenerator* GlobalGenerator;
  427. std::map<std::string, std::string> UniqueObjectNamesMap;
  428. std::string::size_type ObjectPathMax;
  429. std::set<std::string> ObjectMaxPathViolations;
  430. std::set<std::string> EnvCPATH;
  431. using GeneratorTargetMap =
  432. std::unordered_map<std::string, cmGeneratorTarget*>;
  433. GeneratorTargetMap GeneratorTargetSearchIndex;
  434. GeneratorTargetVector GeneratorTargets;
  435. std::set<cmGeneratorTarget const*> WarnCMP0063;
  436. GeneratorTargetMap ImportedGeneratorTargets;
  437. GeneratorTargetVector OwnedImportedGeneratorTargets;
  438. std::map<std::string, std::string> AliasTargets;
  439. std::map<std::string, std::string> Compilers;
  440. std::map<std::string, std::string> VariableMappings;
  441. std::string CompilerSysroot;
  442. std::string LinkerSysroot;
  443. bool EmitUniversalBinaryFlags;
  444. KWIML_INT_uint64_t BackwardsCompatibility;
  445. bool BackwardsCompatibilityFinal;
  446. private:
  447. void AddSharedFlags(std::string& flags, const std::string& lang,
  448. bool shared);
  449. bool GetShouldUseOldFlags(bool shared, const std::string& lang) const;
  450. void AddPositionIndependentFlags(std::string& flags, std::string const& l,
  451. int targetType);
  452. void ComputeObjectMaxPath();
  453. };
  454. #if !defined(CMAKE_BOOTSTRAP)
  455. bool cmLocalGeneratorCheckObjectName(std::string& objName,
  456. std::string::size_type dir_len,
  457. std::string::size_type max_total_len);
  458. #endif
  459. namespace detail {
  460. void AddCustomCommandToTarget(cmLocalGenerator& lg,
  461. const cmListFileBacktrace& lfbt,
  462. cmCommandOrigin origin, cmTarget* target,
  463. const std::vector<std::string>& byproducts,
  464. const std::vector<std::string>& depends,
  465. const cmCustomCommandLines& commandLines,
  466. cmCustomCommandType type, const char* comment,
  467. const char* workingDir, bool escapeOldStyle,
  468. bool uses_terminal, const std::string& depfile,
  469. const std::string& job_pool,
  470. bool command_expand_lists);
  471. cmSourceFile* AddCustomCommandToOutput(
  472. cmLocalGenerator& lg, const cmListFileBacktrace& lfbt,
  473. cmCommandOrigin origin, const std::vector<std::string>& outputs,
  474. const std::vector<std::string>& byproducts,
  475. const std::vector<std::string>& depends, const std::string& main_dependency,
  476. const cmImplicitDependsList& implicit_depends,
  477. const cmCustomCommandLines& commandLines, const char* comment,
  478. const char* workingDir, bool replace, bool escapeOldStyle,
  479. bool uses_terminal, bool command_expand_lists, const std::string& depfile,
  480. const std::string& job_pool);
  481. void AppendCustomCommandToOutput(cmLocalGenerator& lg,
  482. const cmListFileBacktrace& lfbt,
  483. const std::string& output,
  484. const std::vector<std::string>& depends,
  485. const cmImplicitDependsList& implicit_depends,
  486. const cmCustomCommandLines& commandLines);
  487. void AddUtilityCommand(cmLocalGenerator& lg, const cmListFileBacktrace& lfbt,
  488. cmCommandOrigin origin, cmTarget* target,
  489. const cmUtilityOutput& force, const char* workingDir,
  490. const std::vector<std::string>& byproducts,
  491. const std::vector<std::string>& depends,
  492. const cmCustomCommandLines& commandLines,
  493. bool escapeOldStyle, const char* comment,
  494. bool uses_terminal, bool command_expand_lists,
  495. const std::string& job_pool);
  496. }
  497. #endif