diff options
author | Fred Baksik <frodak17@gmail.com> | 2019-01-05 16:01:22 (GMT) |
---|---|---|
committer | Fred Baksik <frodak17@gmail.com> | 2019-01-16 15:41:31 (GMT) |
commit | b2a72ec72d609547d2278701a56237822c0dcc92 (patch) | |
tree | 9c69a8b59f44d21cdd17f852f3b2902136cb9e80 /Source/cmGhsMultiTargetGenerator.h | |
parent | 595932c4f0570ab6bdef0a50a321877ffa9c50e4 (diff) | |
download | CMake-b2a72ec72d609547d2278701a56237822c0dcc92.zip CMake-b2a72ec72d609547d2278701a56237822c0dcc92.tar.gz CMake-b2a72ec72d609547d2278701a56237822c0dcc92.tar.bz2 |
GHS: Cleanup unused file handling functions and file output updates
-- File handling cleanup
-- Rename some functions to clarify what they do
-- Update to source file path conversion; only perform conversion when using windows
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.h')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.h | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h index df1c683..358e1f4 100644 --- a/Source/cmGhsMultiTargetGenerator.h +++ b/Source/cmGhsMultiTargetGenerator.h @@ -26,36 +26,10 @@ public: bool IncludeThisTarget(); std::vector<cmSourceFile*> GetSources() const; - const char* GetAbsBuildFilePath() const - { - return this->AbsBuildFilePath.c_str(); - } - const char* GetRelBuildFileName() const - { - return this->RelBuildFileName.c_str(); - } - const char* GetAbsBuildFileName() const - { - return this->AbsBuildFileName.c_str(); - } - const char* GetAbsOutputFileName() const - { - return this->AbsOutputFileName.c_str(); - } - - static std::string GetRelBuildFilePath(const cmGeneratorTarget* target); - static std::string GetAbsPathToRoot(const cmGeneratorTarget* target); - static std::string GetAbsBuildFilePath(const cmGeneratorTarget* target); - static std::string GetRelBuildFileName(const cmGeneratorTarget* target); - static std::string GetBuildFileName(const cmGeneratorTarget* target); - static std::string AddSlashIfNeededToPath(std::string const& input); private: cmGlobalGhsMultiGenerator* GetGlobalGenerator() const; - cmGeneratedFileStream* GetFolderBuildStreams() - { - return this->FolderBuildStreams[""]; - }; + void GenerateTarget(); bool IsTargetGroup() const { return this->TargetGroup; } @@ -84,10 +58,9 @@ private: std::vector<cmSourceFile*>* objectSources, cmLocalGhsMultiGenerator* localGhsMultiGenerator, cmGeneratorTarget* generatorTarget); - static void WriteObjectLangOverride(std::ostream* fout, + static void WriteObjectLangOverride(std::ostream& fout, const cmSourceFile* sourceFile); - std::string GetOutputDirectory(const std::string& config) const; - std::string GetOutputFilename(const std::string& config) const; + static std::string ComputeLongestObjectDirectory( cmLocalGhsMultiGenerator const* localGhsMultiGenerator, cmGeneratorTarget* generatorTarget, cmSourceFile* const sourceFile); @@ -100,13 +73,6 @@ private: cmGeneratorTarget* GeneratorTarget; cmLocalGhsMultiGenerator* LocalGenerator; cmMakefile* Makefile; - std::string AbsBuildFilePath; - std::string RelBuildFilePath; - std::string AbsBuildFileName; - std::string RelBuildFileName; - std::string RelOutputFileName; - std::string AbsOutputFileName; - std::map<std::string, cmGeneratedFileStream*> FolderBuildStreams; bool TargetGroup; bool DynamicDownload; static std::string const DDOption; |