diff options
author | Fred Baksik <frodak17@gmail.com> | 2019-01-05 11:01:21 -0500 |
---|---|---|
committer | Fred Baksik <frodak17@gmail.com> | 2019-01-16 10:41:15 -0500 |
commit | e7825386e2e9e69728e5a5c3dcbc94814bb7cb1c (patch) | |
tree | 0b5e2d72d945a19acd4db7d68a10ae4c7d6d64e7 /Source/cmGhsMultiTargetGenerator.h | |
parent | 447b57a2676b5bb7e9f97b15c9fe5fe7d3817a86 (diff) | |
download | cmake-e7825386e2e9e69728e5a5c3dcbc94814bb7cb1c.tar.gz |
GHS: Cleanup how source files are listed
-- Sort the items of the project files, previously they were unsorted
The layout is similar to Visual Studio projects
-- Do not make a make a tree of directories and projects files
The main project file is in the binary folder
The sub-project files are located in the project object directory
This is similar to the Makefile generator
-- Allow the creation of a single project file
If the variable or target property GHS_NO_SOURCE_GROUP_FILE is set
then all sources will be listed in the main project file
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.h')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h index a80d6b2daa..a54901d7cc 100644 --- a/Source/cmGhsMultiTargetGenerator.h +++ b/Source/cmGhsMultiTargetGenerator.h @@ -80,17 +80,14 @@ private: void WriteCustomCommandsHelper( std::ostream& fout, std::vector<cmCustomCommand> const& commandsSet, cmTarget::CustomCommandType commandType); - void WriteSources( - std::vector<cmSourceFile*> const& objectSources, - std::map<const cmSourceFile*, std::string> const& objectNames); + void WriteSources(std::ostream& fout_proj); static std::map<const cmSourceFile*, std::string> GetObjectNames( std::vector<cmSourceFile*>* objectSources, cmLocalGhsMultiGenerator* localGhsMultiGenerator, cmGeneratorTarget* generatorTarget); static void WriteObjectLangOverride(std::ostream* fout, const cmSourceFile* sourceFile); - static void WriteObjectDir(cmGeneratedFileStream* fileStream, - std::string const& dir); + static void WriteObjectDir(std::ostream& fout, std::string const& dir); std::string GetOutputDirectory(const std::string& config) const; std::string GetOutputFilename(const std::string& config) const; static std::string ComputeLongestObjectDirectory( |