summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-10-13 17:51:18 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2011-10-23 20:15:20 (GMT)
commitd3d7e45df205bd22d6fbeaba853354b097034719 (patch)
tree971dd8d7fcee608a0545346afd94a1c0cfacecee /Source/cmMakefile.h
parenta390d6cc891cebec8df01c37da3433e3abfc8a8b (diff)
downloadCMake-d3d7e45df205bd22d6fbeaba853354b097034719.zip
CMake-d3d7e45df205bd22d6fbeaba853354b097034719.tar.gz
CMake-d3d7e45df205bd22d6fbeaba853354b097034719.tar.bz2
Remove trailing white-spaces.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h144
1 files changed, 72 insertions, 72 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 618f4f3..c80d4cc 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -72,7 +72,7 @@ public:
/** Return whether compatibility features needed for a version of
the cache or lower should be enabled. */
bool NeedCacheCompatibility(int major, int minor);
-
+
/**
* Construct an empty makefile.
*/
@@ -87,8 +87,8 @@ public:
/**
* Read and parse a CMakeLists.txt file.
*/
- bool ReadListFile(const char* listfile,
- const char* external= 0,
+ bool ReadListFile(const char* listfile,
+ const char* external= 0,
std::string* fullPath= 0,
bool noPolicyScope = true);
@@ -121,21 +121,21 @@ public:
* Try running cmake and building a file. This is used for dynalically
* loaded commands, not as part of the usual build process.
*/
- int TryCompile(const char *srcdir, const char *bindir,
+ int TryCompile(const char *srcdir, const char *bindir,
const char *projectName, const char *targetName,
bool fast,
const std::vector<std::string> *cmakeArgs,
std::string *output);
-
+
/**
* Specify the makefile generator. This is platform/compiler
* dependent, although the interface is through a generic
* superclass.
*/
void SetLocalGenerator(cmLocalGenerator*);
-
+
///! Get the current makefile generator.
- cmLocalGenerator* GetLocalGenerator()
+ cmLocalGenerator* GetLocalGenerator()
{ return this->LocalGenerator;}
/**
@@ -153,15 +153,15 @@ public:
/**
* Perform FinalPass, Library dependency analysis etc before output of the
- * makefile.
+ * makefile.
*/
void ConfigureFinalPass();
-
+
/**
* run the final pass on all commands.
*/
void FinalPass();
-
+
/**
* Print the object state to std::cout.
*/
@@ -205,11 +205,11 @@ public:
cmTarget* AddImportedTarget(const char* name, cmTarget::TargetType type);
cmTarget* AddNewTarget(cmTarget::TargetType type, const char* name);
-
+
/**
* Add an executable to the build.
*/
- cmTarget* AddExecutable(const char *exename,
+ cmTarget* AddExecutable(const char *exename,
const std::vector<std::string> &srcs,
bool excludeFromAll = false);
@@ -237,7 +237,7 @@ public:
*/
void AddLinkLibrary(const char*);
void AddLinkLibrary(const char*, cmTarget::LinkLibraryType type);
- void AddLinkLibraryForTarget(const char *tgt, const char*,
+ void AddLinkLibraryForTarget(const char *tgt, const char*,
cmTarget::LinkLibraryType type);
void AddLinkDirectoryForTarget(const char *tgt, const char* d);
@@ -265,9 +265,9 @@ public:
/**
* Add a subdirectory to the build.
*/
- void AddSubDirectory(const char*, bool excludeFromAll=false,
+ void AddSubDirectory(const char*, bool excludeFromAll=false,
bool preorder = false);
- void AddSubDirectory(const char* fullSrcDir,const char *fullBinDir,
+ void AddSubDirectory(const char* fullSrcDir,const char *fullBinDir,
bool excludeFromAll, bool preorder,
bool immediate);
@@ -275,7 +275,7 @@ public:
* Configure a subdirectory
*/
void ConfigureSubDirectory(cmLocalGenerator *);
-
+
/**
* Add an include directory to the build.
*/
@@ -287,13 +287,13 @@ public:
*/
void AddDefinition(const char* name, const char* value);
///! Add a definition to this makefile and the global cmake cache.
- void AddCacheDefinition(const char* name, const char* value,
+ void AddCacheDefinition(const char* name, const char* value,
const char* doc,
cmCacheManager::CacheEntryType type,
bool force = false);
/**
- * Add bool variable definition to the build.
+ * Add bool variable definition to the build.
*/
void AddDefinition(const char* name, bool);
@@ -304,7 +304,7 @@ public:
void RemoveDefinition(const char* name);
///! Remove a definition from the cache.
void RemoveCacheDefinition(const char* name);
-
+
/**
* Specify the name of the project for this build.
*/
@@ -339,14 +339,14 @@ public:
* Add a source group for consideration when adding a new source.
* name is tokenized.
*/
- void AddSourceGroup(const std::vector<std::string>& name,
+ void AddSourceGroup(const std::vector<std::string>& name,
const char* regex=0);
#endif
//@{
/**
- * Set, Push, Pop policy values for CMake.
+ * Set, Push, Pop policy values for CMake.
*/
bool SetPolicy(cmPolicies::PolicyID id, cmPolicies::PolicyStatus status);
bool SetPolicy(const char *id, cmPolicies::PolicyStatus status);
@@ -374,31 +374,31 @@ public:
* Get the Policies Instance
*/
cmPolicies *GetPolicies();
-
+
/**
* Add an auxiliary directory to the build.
*/
void AddExtraDirectory(const char* dir);
-
+
/**
* Add an auxiliary directory to the build.
*/
void MakeStartDirectoriesCurrent()
{
- this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR",
+ this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR",
this->cmStartDirectory.c_str());
- this->AddDefinition("CMAKE_CURRENT_BINARY_DIR",
+ this->AddDefinition("CMAKE_CURRENT_BINARY_DIR",
this->StartOutputDirectory.c_str());
}
-
+
//@{
/**
* Set/Get the home directory (or output directory) in the project. The
* home directory is the top directory of the project. It is where
* CMakeSetup or configure was run. Remember that CMake processes
* CMakeLists files by recursing up the tree starting at the StartDirectory
- * and going up until it reaches the HomeDirectory.
+ * and going up until it reaches the HomeDirectory.
*/
void SetHomeDirectory(const char* dir);
const char* GetHomeDirectory() const
@@ -428,15 +428,15 @@ public:
* is the directory of the CMakeLists.txt file that started the current
* round of processing. Remember that CMake processes CMakeLists files by
* recursing up the tree starting at the StartDirectory and going up until
- * it reaches the HomeDirectory.
+ * it reaches the HomeDirectory.
*/
- void SetStartDirectory(const char* dir)
+ void SetStartDirectory(const char* dir)
{
this->cmStartDirectory = dir;
cmSystemTools::ConvertToUnixSlashes(this->cmStartDirectory);
- this->cmStartDirectory =
+ this->cmStartDirectory =
cmSystemTools::CollapseFullPath(this->cmStartDirectory.c_str());
- this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR",
+ this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR",
this->cmStartDirectory.c_str());
}
const char* GetStartDirectory() const
@@ -447,10 +447,10 @@ public:
{
this->StartOutputDirectory = lib;
cmSystemTools::ConvertToUnixSlashes(this->StartOutputDirectory);
- this->StartOutputDirectory =
+ this->StartOutputDirectory =
cmSystemTools::CollapseFullPath(this->StartOutputDirectory.c_str());
cmSystemTools::MakeDirectory(this->StartOutputDirectory.c_str());
- this->AddDefinition("CMAKE_CURRENT_BINARY_DIR",
+ this->AddDefinition("CMAKE_CURRENT_BINARY_DIR",
this->StartOutputDirectory.c_str());
}
const char* GetStartOutputDirectory() const
@@ -459,7 +459,7 @@ public:
}
//@}
- const char* GetCurrentDirectory() const
+ const char* GetCurrentDirectory() const
{
return this->cmStartDirectory.c_str();
}
@@ -478,7 +478,7 @@ public:
//@}
- /**
+ /**
* Set a regular expression that include files must match
* in order to be considered as part of the depend information.
*/
@@ -487,11 +487,11 @@ public:
this->IncludeFileRegularExpression = regex;
}
const char* GetIncludeRegularExpression()
- {
+ {
return this->IncludeFileRegularExpression.c_str();
}
- /**
+ /**
* Set a regular expression that include files that are not found
* must match in order to be considered a problem.
*/
@@ -523,11 +523,11 @@ public:
* Get a list of include directories in the build.
*/
std::vector<std::string>& GetIncludeDirectories()
- {
+ {
return this->IncludeDirectories;
}
const std::vector<std::string>& GetIncludeDirectories() const
- {
+ {
return this->IncludeDirectories;
}
void SetIncludeDirectories(const std::vector<std::string>& vec)
@@ -542,7 +542,7 @@ public:
bool IsSystemIncludeDirectory(const char* dir);
/** Expand out any arguements in the vector that have ; separated
- * strings into multiple arguements. A new vector is created
+ * strings into multiple arguements. A new vector is created
* containing the expanded versions of all arguments in argsIn.
* This method differes from the one in cmSystemTools in that if
* the CmakeLists file is version 1.2 or earlier it will check for
@@ -558,7 +558,7 @@ public:
cmSourceFile* GetSource(const char* sourceName);
/** Get a cmSourceFile pointer for a given source name, if the name is
- * not found, then create the source file and return it. generated
+ * not found, then create the source file and return it. generated
* indicates if it is a generated file, this is used in determining
* how to create the source file instance e.g. name
*/
@@ -597,8 +597,8 @@ public:
* variables will be listed.
*/
std::vector<std::string> GetDefinitions(int cacheonly=0) const;
-
- /** Test a boolean cache entry to see if it is true or false,
+
+ /** Test a boolean cache entry to see if it is true or false,
* returns false if no entry defined.
*/
bool IsOn(const char* name) const;
@@ -617,13 +617,13 @@ public:
* Make sure CMake can write this file
*/
bool CanIWriteThisFile(const char* fileName);
-
+
/**
* Get the vector of used command instances.
*/
const std::vector<cmCommand*>& GetUsedCommands() const
{return this->UsedCommands;}
-
+
#if defined(CMAKE_BUILD_WITH_CMAKE)
/**
* Get the vector source groups.
@@ -663,9 +663,9 @@ public:
{ return this->OutputFiles; }
void AddCMakeOutputFile(const char* file)
{ this->OutputFiles.push_back(file);}
-
+
/**
- * Expand all defined variables in the string.
+ * Expand all defined variables in the string.
* Defined variables come from the this->Definitions map.
* They are expanded with ${var} where var is the
* entry in the this->Definitions map. Also @var@ is
@@ -682,15 +682,15 @@ public:
/**
* Remove any remaining variables in the string. Anything with ${var} or
- * @var@ will be removed.
+ * @var@ will be removed.
*/
- void RemoveVariablesInString(std::string& source,
+ void RemoveVariablesInString(std::string& source,
bool atOnly = false) const;
/**
* Expand variables in the makefiles ivars such as link directories etc
*/
- void ExpandVariables();
+ void ExpandVariables();
/**
* Replace variables and #cmakedefine lines in the given string.
@@ -702,7 +702,7 @@ public:
/**
* Copy file but change lines acording to ConfigureString
*/
- int ConfigureFile(const char* infile, const char* outfile,
+ int ConfigureFile(const char* infile, const char* outfile,
bool copyonly, bool atOnly, bool escapeQuotes);
#if defined(CMAKE_BUILD_WITH_CMAKE)
@@ -717,12 +717,12 @@ public:
* Execute a single CMake command. Returns true if the command
* succeeded or false if it failed.
*/
- bool ExecuteCommand(const cmListFileFunction& lff,
+ bool ExecuteCommand(const cmListFileFunction& lff,
cmExecutionStatus &status);
/** Check if a command exists. */
bool CommandExists(const char* name) const;
-
+
/**
* Add a command to this cmake instance
*/
@@ -748,7 +748,7 @@ public:
///! Display progress or status message.
void DisplayStatus(const char*, float);
-
+
/**
* Expand the given list file arguments into the full set after
* variable replacement and list expansion.
@@ -757,13 +757,13 @@ public:
std::vector<std::string>& outArgs);
/**
* Get the instance
- */
+ */
cmake *GetCMakeInstance() const;
/**
* Get all the source files this makefile knows about
*/
- const std::vector<cmSourceFile*> &GetSourceFiles() const
+ const std::vector<cmSourceFile*> &GetSourceFiles() const
{return this->SourceFiles;}
std::vector<cmSourceFile*> &GetSourceFiles() {return this->SourceFiles;}
@@ -775,7 +775,7 @@ public:
/**
* Add a macro to the list of macros. The arguments should be name of the
- * macro and a documentation signature of it
+ * macro and a documentation signature of it
*/
void AddMacro(const char* name, const char* signature);
@@ -797,7 +797,7 @@ public:
*/
std::string GetModulesFile(const char* name);
- ///! Set/Get a property of this directory
+ ///! Set/Get a property of this directory
void SetProperty(const char *prop, const char *value);
void AppendProperty(const char *prop, const char *value,bool asString=false);
const char *GetProperty(const char *prop);
@@ -812,7 +812,7 @@ public:
///! Initialize a makefile from its parent
void InitializeFromParent();
-
+
///! Set/Get the preorder flag
void SetPreOrder(bool p) { this->PreOrder = p; }
bool GetPreOrder() const { return this->PreOrder; }
@@ -859,11 +859,11 @@ protected:
void CheckForUnused(const char* reason, const char* name) const;
std::string Prefix;
- std::vector<std::string> AuxSourceDirectories; //
+ std::vector<std::string> AuxSourceDirectories; //
- std::string cmStartDirectory;
- std::string StartOutputDirectory;
- std::string cmHomeDirectory;
+ std::string cmStartDirectory;
+ std::string StartOutputDirectory;
+ std::string cmHomeDirectory;
std::string HomeOutputDirectory;
std::string cmCurrentListFile;
@@ -875,7 +875,7 @@ protected:
// Tests
std::map<cmStdString, cmTest*> Tests;
-
+
// The include and link-library paths. These may have order
// dependency, so they must be vectors (not set).
std::vector<std::string> IncludeDirectories;
@@ -887,8 +887,8 @@ protected:
std::vector<std::string> ListFiles; // list of command files loaded
std::vector<std::string> OutputFiles; // list of command files loaded
-
-
+
+
cmTarget::LinkLibraryVectorType LinkLibraries;
std::vector<cmInstallGenerator*> InstallGenerators;
@@ -911,9 +911,9 @@ protected:
std::vector<cmCommand*> UsedCommands;
cmLocalGenerator* LocalGenerator;
- bool IsFunctionBlocked(const cmListFileFunction& lff,
+ bool IsFunctionBlocked(const cmListFileFunction& lff,
cmExecutionStatus &status);
-
+
private:
void Initialize();
@@ -923,10 +923,10 @@ private:
void ReadSources(std::ifstream& fin, bool t);
friend class cmMakeDepend; // make depend needs direct access
- // to the Sources array
- void PrintStringVector(const char* s, const
+ // to the Sources array
+ void PrintStringVector(const char* s, const
std::vector<std::pair<cmStdString, bool> >& v) const;
- void PrintStringVector(const char* s,
+ void PrintStringVector(const char* s,
const std::vector<std::string>& v) const;
void AddDefaultDefinitions();
@@ -954,7 +954,7 @@ private:
bool WarnUnused;
bool CheckSystemVars;
- // stack of list files being read
+ // stack of list files being read
std::deque<cmStdString> ListFileStack;
// stack of commands being invoked.