diff options
author | Fred Baksik <frodak17@gmail.com> | 2019-04-08 13:55:34 (GMT) |
---|---|---|
committer | Fred Baksik <frodak17@gmail.com> | 2019-04-11 17:15:50 (GMT) |
commit | 8d3dad9a76591ae0426335d039b8aaacb95862cd (patch) | |
tree | 712f4ab345d62c7858b879c86838f508036ede8f /Source/cmGhsMultiTargetGenerator.h | |
parent | 37acc9e2299713b9b23c767e72b0e0169697e510 (diff) | |
download | CMake-8d3dad9a76591ae0426335d039b8aaacb95862cd.zip CMake-8d3dad9a76591ae0426335d039b8aaacb95862cd.tar.gz CMake-8d3dad9a76591ae0426335d039b8aaacb95862cd.tar.bz2 |
GHS: Support add_custom_command( OUTPUT ) signature
-- add new file type to run a shell script
-- gbuild does not compute interfile dependencies like other build tools.
Therefore calculate the required build order of custom commands and
list all of them in the CMake Rules subproject.
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.h')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h index fa251b0..3ba3884 100644 --- a/Source/cmGhsMultiTargetGenerator.h +++ b/Source/cmGhsMultiTargetGenerator.h @@ -7,6 +7,7 @@ #include <iosfwd> #include <map> +#include <set> #include <string> #include <vector> @@ -54,6 +55,13 @@ private: std::string const& name, std::string const& cmd); void WriteCustomCommandsHelper(std::ostream& fout, cmCustomCommandGenerator const& ccg); + void WriteCustomCommandLine(std::ostream& fout, std::string& fname, + cmCustomCommandGenerator const& ccg); + bool ComputeCustomCommandOrder(std::vector<cmSourceFile const*>& order); + bool VisitCustomCommand(std::set<cmSourceFile const*>& temp, + std::set<cmSourceFile const*>& perm, + std::vector<cmSourceFile const*>& order, + cmSourceFile const* sf); void WriteSources(std::ostream& fout_proj); void WriteSourceProperty(std::ostream& fout, const cmSourceFile* sf, std::string const& propName, |