diff options
author | Fred Baksik <frodak17@gmail.com> | 2019-01-05 16:01:21 (GMT) |
---|---|---|
committer | Fred Baksik <frodak17@gmail.com> | 2019-01-16 15:41:20 (GMT) |
commit | ead7117afda23d7cf0c1466ce5229d06240d3de0 (patch) | |
tree | d6f73008a1c387f27d3ef3834681ac5edd8c3897 /Source/cmGhsMultiTargetGenerator.h | |
parent | e7825386e2e9e69728e5a5c3dcbc94814bb7cb1c (diff) | |
download | CMake-ead7117afda23d7cf0c1466ce5229d06240d3de0.zip CMake-ead7117afda23d7cf0c1466ce5229d06240d3de0.tar.gz CMake-ead7117afda23d7cf0c1466ce5229d06240d3de0.tar.bz2 |
GHS: Update the top-level project generation
-- Sort targets by name
-- Generate a top-level project for each project command named as project.top.gpj
Use the target set for the current project instead of assuming all targets
-- Add support for building projects not in binary root
-- Directly create files and pass ostream
-- Do no generate project files for UTILITY targets; this was never supported
-- Do no generate project files for OBJECT, SHARED, or MODULE libraries; this was never supported
-- Update GHS tags to support project types
NOTE: The default tag is changed to "" because "[ ]" is an invalid token in project file
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.h')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h index a54901d..6ba110a 100644 --- a/Source/cmGhsMultiTargetGenerator.h +++ b/Source/cmGhsMultiTargetGenerator.h @@ -26,8 +26,6 @@ public: bool IncludeThisTarget(); std::vector<cmSourceFile*> GetSources() const; - GhsMultiGpj::Types GetGpjTag() const; - static GhsMultiGpj::Types GetGpjTag(const cmGeneratorTarget* target); const char* GetAbsBuildFilePath() const { return this->AbsBuildFilePath.c_str(); @@ -58,6 +56,8 @@ private: { return this->FolderBuildStreams[""]; }; + void GenerateTarget(); + bool IsTargetGroup() const { return this->TargetGroup; } void WriteTypeSpecifics(std::ostream& fout, const std::string& config, @@ -114,6 +114,8 @@ private: static std::string const DDOption; std::map<std::string, std::string> FlagsByLanguage; std::map<std::string, std::string> DefinesByLanguage; + + GhsMultiGpj::Types TagType; std::string const Name; }; |