summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraSublimeTextGenerator.h
diff options
context:
space:
mode:
authorMorné Chamberlain <thefreeman.za@gmail.com>2012-10-13 10:54:51 (GMT)
committerMorné Chamberlain <thefreeman.za@gmail.com>2012-10-13 10:54:51 (GMT)
commitcd76ec3e22f299f03e34db3deee5e835613af315 (patch)
tree859cc228d979258ec864dc0d807906b25280f6e0 /Source/cmExtraSublimeTextGenerator.h
parentef8aa081a164817d1d78b6df8ebcf23e421d422f (diff)
downloadCMake-cd76ec3e22f299f03e34db3deee5e835613af315.zip
CMake-cd76ec3e22f299f03e34db3deee5e835613af315.tar.gz
CMake-cd76ec3e22f299f03e34db3deee5e835613af315.tar.bz2
Added and cleaned up some comments.
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.h')
-rw-r--r--Source/cmExtraSublimeTextGenerator.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.h b/Source/cmExtraSublimeTextGenerator.h
index e23e472..05d3526 100644
--- a/Source/cmExtraSublimeTextGenerator.h
+++ b/Source/cmExtraSublimeTextGenerator.h
@@ -45,8 +45,15 @@ private:
void CreateNewProjectFile(const std::vector<cmLocalGenerator*>& lgs,
const std::string& filename);
+ /** Populates allFiles with the full paths to all of the source files
+ * from the local generators in lgs.
+ */
void GetFileList(const std::vector<cmLocalGenerator*>& lgs,
std::vector<std::string>& allFiles);
+ /** Sends comma seperated source files paths to fileIncludePatternsStream
+ * and builds a set of all directories and subdirectories containing
+ * source files.
+ */
void GetFileStringAndFolderSet(const std::vector<cmLocalGenerator*>& lgs,
const cmMakefile* mf,
const std::vector<std::string>& allFiles,
@@ -61,8 +68,14 @@ private:
cmGeneratedFileStream& fout,
std::set<std::string>& includeDirs,
std::set<std::string>& defines);
+ /** Returns the build command that needs to be executed to build the
+ * specified target.
+ */
std::string BuildMakeCommand(const std::string& make, const char* makefile,
const char* target);
+ /** Appends the specified target to the generated project file as a Sublime
+ * Text build system.
+ */
void AppendTarget(cmGeneratedFileStream& fout,
const char* targetName,
cmTarget* target,