summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapJavaCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-09-10 19:11:15 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-09-10 19:11:15 (GMT)
commit0fe42a98572f2339ee763a475ecdd003c8a80ac8 (patch)
tree26a6c316b460bbb65de5a7d4a826d38ae9086696 /Source/cmVTKWrapJavaCommand.cxx
parent5acb894e585f6f65741c102e74fd826b2250eb11 (diff)
downloadCMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.zip
CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.gz
CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.bz2
various windows fixes
Diffstat (limited to 'Source/cmVTKWrapJavaCommand.cxx')
-rw-r--r--Source/cmVTKWrapJavaCommand.cxx26
1 files changed, 20 insertions, 6 deletions
diff --git a/Source/cmVTKWrapJavaCommand.cxx b/Source/cmVTKWrapJavaCommand.cxx
index 58a5071..6ef2f30 100644
--- a/Source/cmVTKWrapJavaCommand.cxx
+++ b/Source/cmVTKWrapJavaCommand.cxx
@@ -112,9 +112,13 @@ void cmVTKWrapJavaCommand::FinalPass()
std::string hints = "${VTK_WRAP_HINTS}";
std::string resultDirectory = "${VTK_JAVA_HOME}";
+ m_Makefile->ExpandVariablesInString(hints);
+
// wrap all the .h files
depends.push_back(wjava);
+ depends.push_back(hints);
depends2.push_back(pjava);
+ depends2.push_back(hints);
for(int classNum = 0; classNum < lastClass; classNum++)
{
m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str());
@@ -124,16 +128,26 @@ void cmVTKWrapJavaCommand::FinalPass()
std::string res2 = resultDirectory + "/" +
m_OriginalNames[classNum] + ".java";
- std::string cmd = " " + m_WrapHeaders[classNum] + " "
- + hints + (m_WrapClasses[classNum].IsAnAbstractClass() ? " 0 " : " 1 ") + " > " + m_WrapClasses[classNum].GetSourceName() + ".cxx";
+ std::vector<std::string> args;
+ args.push_back(m_WrapHeaders[classNum]);
+ args.push_back(hints);
+ args.push_back((m_WrapClasses[classNum].IsAnAbstractClass() ? "0" : "1"));
+ args.push_back(">");
+ args.push_back(res);
+
m_Makefile->AddCustomCommand(m_WrapHeaders[classNum].c_str(),
- wjava.c_str(), cmd.c_str(), depends,
+ wjava.c_str(), args, depends,
res.c_str(), m_LibraryName.c_str());
- cmd = " " + m_WrapHeaders[classNum] + " "
- + hints + (m_WrapClasses[classNum].IsAnAbstractClass() ? " 0 " : " 1 ") + " > " + res2;
+ std::vector<std::string> args2;
+ args2.push_back(m_WrapHeaders[classNum]);
+ args2.push_back(hints);
+ args2.push_back((m_WrapClasses[classNum].IsAnAbstractClass() ? "0" : "1"));
+ args2.push_back(">");
+ args2.push_back(res2);
+
m_Makefile->AddCustomCommand(m_WrapHeaders[classNum].c_str(),
- pjava.c_str(), cmd.c_str(), depends2,
+ pjava.c_str(), args2, depends2,
res2.c_str(), m_LibraryName.c_str());
alldepends.push_back(res2);
}