summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-12-14 15:47:33 (GMT)
committerBrad King <brad.king@kitware.com>2005-12-14 15:47:33 (GMT)
commit163e3ff56c2d591a902cae018ead930633914b4c (patch)
tree6453b0c4f96578718dbe3d715ef2f57ee2e3aa8b /Source/cmTarget.h
parentaf36d6e2e7cc3169517bae944d8b837abdcd4287 (diff)
downloadCMake-163e3ff56c2d591a902cae018ead930633914b4c.zip
CMake-163e3ff56c2d591a902cae018ead930633914b4c.tar.gz
CMake-163e3ff56c2d591a902cae018ead930633914b4c.tar.bz2
ENH: Removed cmMakefile arguments from cmTarget methods because cmTarget has the ivar m_Makefile now. Re-implemented cmLocalUnixMakefileGenerator3::AppendAnyDepend to use the new global knowledge and avoid the need to look at the cache for information about other targets. This should fix problems with custom commands and executables with the OUTPUT_NAME set. Also the <target>_LIBRARY_TYPE cache variable is no longer needed at all and has been removed.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index bae1eb9..56ee497 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -163,18 +163,18 @@ public:
///! Return the name of the variable to look up the target suffix
const char* GetPrefixVariable();
- /** Get the full name of the target according to the settings in the
- given makefile. */
- std::string GetFullName(cmMakefile* mf);
+ /** Get the full name of the target according to the settings in its
+ makefile. */
+ std::string GetFullName();
/** Get the base name (no suffix) of the target according to the
- settings in the given makefile. */
- std::string GetBaseName(cmMakefile* mf);
+ settings in its makefile. */
+ std::string GetBaseName();
/** Get the names of the library needed to generate a build rule
that takes into account shared library version numbers. This
should be called only on a library target. */
- void GetLibraryNames(cmMakefile* mf, std::string& name,
+ void GetLibraryNames(std::string& name,
std::string& soName, std::string& realName,
std::string& baseName);
@@ -182,8 +182,7 @@ public:
the library from the build tree either before linking or during
a clean step. This should be called only on a library
target. */
- void GetLibraryCleanNames(cmMakefile* mf,
- std::string& staticName,
+ void GetLibraryCleanNames(std::string& staticName,
std::string& sharedName,
std::string& sharedSOName,
std::string& sharedRealName);
@@ -191,15 +190,13 @@ public:
/** Get the names of the executable needed to generate a build rule
that takes into account executable version numbers. This should
be called only on an executable target. */
- void GetExecutableNames(cmMakefile* mf, std::string& name,
- std::string& realName);
+ void GetExecutableNames(std::string& name, std::string& realName);
/** Get the names of the executable used to remove existing copies
of the executable from the build tree either before linking or
during a clean step. This should be called only on an
executable target. */
- void GetExecutableCleanNames(cmMakefile* mf, std::string& name,
- std::string& realName);
+ void GetExecutableCleanNames(std::string& name, std::string& realName);
private:
/**
* A list of direct dependencies. Use in conjunction with DependencyMap.
@@ -256,15 +253,13 @@ private:
const char* GetSuffixVariableInternal(TargetType type);
const char* GetPrefixVariableInternal(TargetType type);
- std::string GetFullNameInternal(cmMakefile* mf, TargetType type);
- std::string GetBaseNameInternal(cmMakefile* mf, TargetType type);
- void GetLibraryNamesInternal(cmMakefile* mf,
- std::string& name,
+ std::string GetFullNameInternal(TargetType type);
+ std::string GetBaseNameInternal(TargetType type);
+ void GetLibraryNamesInternal(std::string& name,
std::string& soName,
std::string& realName,
TargetType type);
- void GetExecutableNamesInternal(cmMakefile* mf,
- std::string& name,
+ void GetExecutableNamesInternal(std::string& name,
std::string& realName,
TargetType type);