summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator2.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-03-01 17:21:34 (GMT)
committerBrad King <brad.king@kitware.com>2005-03-01 17:21:34 (GMT)
commite979735a195d45c3c1ed8657b0c4bad96aad90cf (patch)
tree8fc69403de7d5273b4507101845e7e9c86f4f88d /Source/cmLocalUnixMakefileGenerator2.cxx
parentb636a0f20aa9f94940acd109e3717ef79730d168 (diff)
downloadCMake-e979735a195d45c3c1ed8657b0c4bad96aad90cf.zip
CMake-e979735a195d45c3c1ed8657b0c4bad96aad90cf.tar.gz
CMake-e979735a195d45c3c1ed8657b0c4bad96aad90cf.tar.bz2
ENH: Framework for java dependency scanner. Right now it does nothing but always reports success. This is enough to get the Java test to pass with the new generator because the old implementation did not do dependencies anyway.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator2.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx
index 851504d..47a7d99 100644
--- a/Source/cmLocalUnixMakefileGenerator2.cxx
+++ b/Source/cmLocalUnixMakefileGenerator2.cxx
@@ -28,6 +28,7 @@
#include "cmDependsC.h"
#ifdef CMAKE_BUILD_WITH_CMAKE
# include "cmDependsFortran.h"
+# include "cmDependsJava.h"
#endif
#include <memory> // auto_ptr
@@ -3135,6 +3136,10 @@ cmLocalUnixMakefileGenerator2::GetDependsChecker(const std::string& lang,
{
return new cmDependsFortran(dir, objFile);
}
+ else if(lang == "Java")
+ {
+ return new cmDependsJava(dir, objFile);
+ }
#endif
return 0;
}
@@ -3219,6 +3224,11 @@ cmLocalUnixMakefileGenerator2
cmDependsFortran scanner(".", objFile, srcFile, includes);
return scanner.Write();
}
+ else if(lang == "Java")
+ {
+ cmDependsJava scanner(".", objFile, srcFile);
+ return scanner.Write();
+ }
#endif
return false;
}