diff options
author | Fred Baksik <frodak17@gmail.com> | 2019-01-05 16:01:20 (GMT) |
---|---|---|
committer | Fred Baksik <frodak17@gmail.com> | 2019-01-16 15:41:11 (GMT) |
commit | 447b57a2676b5bb7e9f97b15c9fe5fe7d3817a86 (patch) | |
tree | 4cd8cbcbaac3227afbc48893afaeef8856c37924 /Source/cmGhsMultiTargetGenerator.h | |
parent | 6436080996ae6f2482fdeefcc639dc36fefedfd8 (diff) | |
download | CMake-447b57a2676b5bb7e9f97b15c9fe5fe7d3817a86.zip CMake-447b57a2676b5bb7e9f97b15c9fe5fe7d3817a86.tar.gz CMake-447b57a2676b5bb7e9f97b15c9fe5fe7d3817a86.tar.bz2 |
GHS: Update binary structure so that install scripts work
GHS doesn't follow the binary structure that VS or Makefiles use
Also setting binary location outputs do not work
-- Update to act like Visual Studio Generator and use its project layout
-- Fix open/close issues where open() was used instead of Open()
Now passes the file handle to all function that require it
-- Avoid triggering MULTI reloads; use SetCopyIfDifferent mode
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.h')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h index e936b08..a80d6b2 100644 --- a/Source/cmGhsMultiTargetGenerator.h +++ b/Source/cmGhsMultiTargetGenerator.h @@ -60,10 +60,11 @@ private: }; bool IsTargetGroup() const { return this->TargetGroup; } - void WriteTypeSpecifics(const std::string& config, bool notKernel); - void WriteCompilerFlags(const std::string& config, + void WriteTypeSpecifics(std::ostream& fout, const std::string& config, + bool notKernel); + void WriteCompilerFlags(std::ostream& fout, const std::string& config, const std::string& language); - void WriteCompilerDefinitions(const std::string& config, + void WriteCompilerDefinitions(std::ostream& fout, const std::string& config, const std::string& language); void SetCompilerFlags(std::string const& config, const std::string& language, @@ -71,12 +72,13 @@ private: std::string GetDefines(const std::string& langugae, std::string const& config); - void WriteIncludes(const std::string& config, const std::string& language); - void WriteTargetLinkLibraries(std::string const& config, + void WriteIncludes(std::ostream& fout, const std::string& config, + const std::string& language); + void WriteTargetLinkLibraries(std::ostream& fout, std::string const& config, std::string const& language); - void WriteCustomCommands(); + void WriteCustomCommands(std::ostream& fout); void WriteCustomCommandsHelper( - std::vector<cmCustomCommand> const& commandsSet, + std::ostream& fout, std::vector<cmCustomCommand> const& commandsSet, cmTarget::CustomCommandType commandType); void WriteSources( std::vector<cmSourceFile*> const& objectSources, @@ -85,7 +87,7 @@ private: std::vector<cmSourceFile*>* objectSources, cmLocalGhsMultiGenerator* localGhsMultiGenerator, cmGeneratorTarget* generatorTarget); - static void WriteObjectLangOverride(cmGeneratedFileStream* fileStream, + static void WriteObjectLangOverride(std::ostream* fout, const cmSourceFile* sourceFile); static void WriteObjectDir(cmGeneratedFileStream* fileStream, std::string const& dir); @@ -115,6 +117,7 @@ private: static std::string const DDOption; std::map<std::string, std::string> FlagsByLanguage; std::map<std::string, std::string> DefinesByLanguage; + std::string const Name; }; #endif // ! cmGhsMultiTargetGenerator_h |