summaryrefslogtreecommitdiff
path: root/Source/cmGhsMultiTargetGenerator.h
diff options
context:
space:
mode:
authorFred Baksik <frodak17@gmail.com>2019-01-05 11:01:21 -0500
committerFred Baksik <frodak17@gmail.com>2019-01-16 10:41:20 -0500
commitead7117afda23d7cf0c1466ce5229d06240d3de0 (patch)
treed6f73008a1c387f27d3ef3834681ac5edd8c3897 /Source/cmGhsMultiTargetGenerator.h
parente7825386e2e9e69728e5a5c3dcbc94814bb7cb1c (diff)
downloadcmake-ead7117afda23d7cf0c1466ce5229d06240d3de0.tar.gz
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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h
index a54901d7cc..6ba110aa68 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;
};