summaryrefslogtreecommitdiff
path: root/Source/cmGhsMultiTargetGenerator.h
diff options
context:
space:
mode:
authorFred Baksik <frodak17@gmail.com>2019-04-08 09:55:34 -0400
committerFred Baksik <frodak17@gmail.com>2019-04-11 13:15:50 -0400
commit8d3dad9a76591ae0426335d039b8aaacb95862cd (patch)
tree712f4ab345d62c7858b879c86838f508036ede8f /Source/cmGhsMultiTargetGenerator.h
parent37acc9e2299713b9b23c767e72b0e0169697e510 (diff)
downloadcmake-8d3dad9a76591ae0426335d039b8aaacb95862cd.tar.gz
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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h
index fa251b01fc..3ba3884719 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,