summaryrefslogtreecommitdiff
path: root/Source/cmDepends.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-22 22:41:42 -0500
committerBrad King <brad.king@kitware.com>2007-12-22 22:41:42 -0500
commit4d360f7ac56939ede629e368fb282d4022f69d6c (patch)
treec4ba214154fa085fe06dfbf17d080e41661ee48d /Source/cmDepends.h
parenta7245e47925f51b8b648b1eb075f3ecec2b5ce76 (diff)
downloadcmake-4d360f7ac56939ede629e368fb282d4022f69d6c.tar.gz
ENH: Convert cmDepends object interface to scan an entire target at once.
Diffstat (limited to 'Source/cmDepends.h')
-rw-r--r--Source/cmDepends.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/cmDepends.h b/Source/cmDepends.h
index 40dc59ab94..4f7a02b356 100644
--- a/Source/cmDepends.h
+++ b/Source/cmDepends.h
@@ -45,6 +45,12 @@ public:
directory. */
void SetLocalGenerator(cmLocalGenerator* lg) { this->LocalGenerator = lg; }
+ /** Set the specific language to be scanned. */
+ void SetLanguage(const char* lang) { this->Language = lang; }
+
+ /** Set the target build directory. */
+ void SetTargetDirectory(const char* dir) { this->TargetDirectory = dir; }
+
/** should this be verbose in its output */
void SetVerbose(bool verb) { this->Verbose = verb; }
@@ -52,8 +58,7 @@ public:
virtual ~cmDepends();
/** Write dependencies for the target file. */
- bool Write(const char *src, const char *obj,
- std::ostream &makeDepends, std::ostream &internalDepends);
+ bool Write(std::ostream &makeDepends, std::ostream &internalDepends);
/** Check dependencies for the target file. Returns true if
dependencies are okay and false if they must be generated. If
@@ -90,6 +95,11 @@ protected:
bool Verbose;
cmFileTimeComparison* FileComparison;
+ std::string Language;
+
+ // The full path to the target's build directory.
+ std::string TargetDirectory;
+
size_t MaxPath;
char* Dependee;
char* Depender;