diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-10-25 20:39:13 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-10-25 20:39:13 (GMT) |
commit | ccea94278be686283a1b19e4f700891a6774e3a6 (patch) | |
tree | 70596a1465ab6cffe3e0d92d5d77f9b7226a59d9 /Source/cmLocalKdevelopGenerator.cxx | |
parent | 5eda3799074f858f7790975b7a294374720177f7 (diff) | |
download | CMake-ccea94278be686283a1b19e4f700891a6774e3a6.zip CMake-ccea94278be686283a1b19e4f700891a6774e3a6.tar.gz CMake-ccea94278be686283a1b19e4f700891a6774e3a6.tar.bz2 |
ENH: add some more comments
Diffstat (limited to 'Source/cmLocalKdevelopGenerator.cxx')
-rw-r--r-- | Source/cmLocalKdevelopGenerator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalKdevelopGenerator.cxx b/Source/cmLocalKdevelopGenerator.cxx index b63660b..5328fff 100644 --- a/Source/cmLocalKdevelopGenerator.cxx +++ b/Source/cmLocalKdevelopGenerator.cxx @@ -74,6 +74,8 @@ void cmLocalKdevelopGenerator::Generate(bool fromTheTop) } } +/* create the project file, if it already exists, merge it with the existing one, +otherwise create a new one */ void cmLocalKdevelopGenerator::CreateProjectFile(const std::string& outputDir, const std::string& projectDir, const std::string& projectname, @@ -107,6 +109,9 @@ void cmLocalKdevelopGenerator::MergeProjectFiles(const std::string& outputDir, return; } + /* Read the existing project file (line by line), copy all lines into the + new project file, except the ones which can be reliably set from contents + of the CMakeLists.txt */ std::string tmp; std::vector<std::string> lines; while (cmSystemTools::GetLineFromStream(oldProjectFile, tmp)) @@ -365,6 +370,7 @@ bool cmLocalKdevelopGenerator::CreateFilelistFile(const std::string& outputDir, oldFilelist.close(); } + //now write the new filename cmGeneratedFileStream tempFile(filename.c_str()); tempFile.SetAlwaysCopy(true); std::ostream& fout = tempFile.GetStream(); |