diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-05-04 19:50:26 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-05-04 19:50:26 (GMT) |
commit | 089aa3e10628aff58992a62b12fa1f1ce6e643b8 (patch) | |
tree | 895ff9462602cff9e0dce5d999301644fe6f9e1c /Source/cmVTKWrapJavaCommand.cxx | |
parent | 2383d6ff6d55d608688a3b21fc2710e72d375392 (diff) | |
download | CMake-089aa3e10628aff58992a62b12fa1f1ce6e643b8.zip CMake-089aa3e10628aff58992a62b12fa1f1ce6e643b8.tar.gz CMake-089aa3e10628aff58992a62b12fa1f1ce6e643b8.tar.bz2 |
option to make utilities in the all target
Diffstat (limited to 'Source/cmVTKWrapJavaCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapJavaCommand.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/cmVTKWrapJavaCommand.cxx b/Source/cmVTKWrapJavaCommand.cxx index d290b3a..b0d191e 100644 --- a/Source/cmVTKWrapJavaCommand.cxx +++ b/Source/cmVTKWrapJavaCommand.cxx @@ -104,6 +104,8 @@ void cmVTKWrapJavaCommand::FinalPass() int lastClass = m_WrapClasses.size(); std::vector<std::string> depends; std::vector<std::string> depends2; + std::vector<std::string> alldepends; + std::vector<std::string> empty; std::string wjava = "${VTK_WRAP_JAVA_EXE}"; std::string pjava = "${VTK_PARSE_JAVA_EXE}"; std::string hints = "${VTK_WRAP_HINTS}"; @@ -118,7 +120,8 @@ void cmVTKWrapJavaCommand::FinalPass() // wrap java std::string res = m_WrapClasses[classNum].GetSourceName() + ".cxx"; - std::string res2 = m_OriginalNames[classNum] + ".java"; + std::string res2 = resultDirectory + "/" + + m_OriginalNames[classNum] + ".java"; std::string cmd = wjava + " " + m_WrapHeaders[classNum] + " " + hints + (m_WrapClasses[classNum].IsAnAbstractClass() ? " 0 " : " 1 ") + " > " + m_WrapClasses[classNum].GetSourceName() + ".cxx"; @@ -127,11 +130,19 @@ void cmVTKWrapJavaCommand::FinalPass() res.c_str(), m_LibraryName.c_str()); cmd = pjava + " " + m_WrapHeaders[classNum] + " " - + hints + (m_WrapClasses[classNum].IsAnAbstractClass() ? " 0 " : " 1 ") + " > " + resultDirectory + "/" + m_OriginalNames[classNum] + ".java"; + + hints + (m_WrapClasses[classNum].IsAnAbstractClass() ? " 0 " : " 1 ") + " > " + res2; m_Makefile->AddCustomCommand(m_WrapHeaders[classNum].c_str(), cmd.c_str(), depends2, res2.c_str(), m_LibraryName.c_str()); + alldepends.push_back(res2); } + + m_Makefile->AddUtilityCommand((m_LibraryName+"JavaClasses").c_str(), + "", + true, + alldepends, + empty); + } |