summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsC.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-08-17 15:43:58 (GMT)
committerBrad King <brad.king@kitware.com>2005-08-17 15:43:58 (GMT)
commitf4920b83695726993acb8fdddf2d07bdef0655af (patch)
treef04245141148129ec14acd56bbab070380758da7 /Source/cmDependsC.h
parentb3dd7f1d89a02a68134afde3c67f775cf7bccc9e (diff)
downloadCMake-f4920b83695726993acb8fdddf2d07bdef0655af.zip
CMake-f4920b83695726993acb8fdddf2d07bdef0655af.tar.gz
CMake-f4920b83695726993acb8fdddf2d07bdef0655af.tar.bz2
ENH: Adding support for automatically adding the OBJECT_DEPENDS for generated header files.
Diffstat (limited to 'Source/cmDependsC.h')
-rw-r--r--Source/cmDependsC.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h
index fb2b29d..26cfc1b 100644
--- a/Source/cmDependsC.h
+++ b/Source/cmDependsC.h
@@ -31,7 +31,8 @@ public:
relative path from the build directory to the target file. */
cmDependsC();
cmDependsC(std::vector<std::string> const& includes,
- const char* scanRegex, const char* complainRegex);
+ const char* scanRegex, const char* complainRegex,
+ std::set<cmStdString> const& generatedFiles);
/** Virtual destructor to cleanup subclasses properly. */
virtual ~cmDependsC();
@@ -50,6 +51,11 @@ protected:
std::string& dependee);
const char* ParseFileName(const char* in, std::string& name);
+ // Method to test for the existence of a file.
+ bool FileExistsOrIsGenerated(const std::string& fname,
+ std::set<cmStdString>& scanned,
+ std::set<cmStdString>& dependencies);
+
// The include file search path.
std::vector<std::string> const* m_IncludePath;
@@ -60,7 +66,10 @@ protected:
// recursively and which to complain about not finding.
cmsys::RegularExpression m_IncludeRegexScan;
cmsys::RegularExpression m_IncludeRegexComplain;
-
+
+ // Set of generated files available.
+ std::set<cmStdString> const* m_GeneratedFiles;
+
// Data structures for dependency graph walk.
struct UnscannedEntry
{