diff options
author | Jose <jose@zeroc.com> | 2014-09-11 17:38:07 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-09-11 17:38:07 +0200 |
commit | c23959aa7a6bb1f81f1834fd68aed48962fd6e2e (patch) | |
tree | a1d14ec52574508a3e9e3492462c3a845e0912e7 /cpp/src/Slice/Preprocessor.cpp | |
parent | Fix dependencies causing C++ rebuilds (diff) | |
download | ice-c23959aa7a6bb1f81f1834fd68aed48962fd6e2e.tar.bz2 ice-c23959aa7a6bb1f81f1834fd68aed48962fd6e2e.tar.xz ice-c23959aa7a6bb1f81f1834fd68aed48962fd6e2e.zip |
Revert "Fixed (ICE-3792) - dependencies in the repository are very crappy"
This reverts commit 201d395c7186e50d195672db7b472989783826cb.
Conflicts:
cpp/config/Make.rules
cpp/test/Ice/Makefile.mak
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index c8ce5c7ac47..07519ca2c34 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -279,7 +279,7 @@ Slice::Preprocessor::preprocess(bool keepComments, const string& extraArgs) } bool -Slice::Preprocessor::printMakefileDependencies(Language lang, const string& outputDir, const vector<string>& includePaths, +Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<string>& includePaths, const std::string& extraArgs, const string& cppSourceExt, const string& optValue) { @@ -378,17 +378,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const string& outp string result; if(lang != JavaXML) { - if(!outputDir.empty()) - { - result += outputDir + IceUtilInternal::separator; - } - - if(lang == Python && !pyPrefix.empty()) - { - result += pyPrefix; - } - - result += unprocessed.substr(0, pos); + result = unprocessed.substr(0, pos); } vector<string> fullIncludePaths; @@ -589,6 +579,10 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const string& outp // // Change .o[bj] suffix to .py suffix. // + if(pyPrefix.size() != 0) + { + result = pyPrefix + result; + } string::size_type pos; if((pos = result.find(suffix)) != string::npos) { |