diff options
author | Jose <jose@zeroc.com> | 2017-03-03 00:23:26 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-03-03 00:23:26 +0100 |
commit | fde1746672efec1780f47c224767d0f86b1173b2 (patch) | |
tree | c090bec999216842c790edee5b9d2e8f00291756 | |
parent | use ICE_BIN_DIST instead of UseBinDist (diff) | |
download | ice-fde1746672efec1780f47c224767d0f86b1173b2.tar.bz2 ice-fde1746672efec1780f47c224767d0f86b1173b2.tar.xz ice-fde1746672efec1780f47c224767d0f86b1173b2.zip |
Fixes for test with Nuget packages
-rw-r--r-- | scripts/Util.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index f2773f0a023..dcdc4aadff3 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -336,7 +336,7 @@ class Windows(Platform): # # Otherwise, use the appropriate nuget package # - return os.path.join(toplevel, mapping.name, "msbuild", "packages", "zeroc.ice.{0}.{1}".format(comp, version)) + return os.path.join(mapping.path, "msbuild", "packages", "{0}".format(mapping.getNugetPackage(comp, version))) def canRun(self, mapping, current): # @@ -2456,6 +2456,9 @@ class CppMapping(Mapping): return True + def getNugetPackage(self, compiler, version): + return "zeroc.ice.{0}.{1}".format(compiler, version) + def getDefaultExe(self, processType, config): return platform.getDefaultExe(processType, config) @@ -2499,7 +2502,8 @@ class CppMapping(Mapping): libPaths = [] if isinstance(platform, Windows): testcommon = os.path.join(self.path, "test", "Common") - libPaths.append(os.path.join(testcommon, self.getBuildDir("testcommon", current))) + if os.path.exists(testcommon): + libPaths.append(os.path.join(testcommon, self.getBuildDir("testcommon", current))) # # On most platforms, we also need to add the library directory to the library path environment variable. @@ -2650,6 +2654,9 @@ class CSharpMapping(Mapping): def getDefaultExe(self, processType, config): return "iceboxnet" if processType == "icebox" else processType + def getNugetPackage(self, compiler, version): + return "zeroc.ice.net.{0}".format(version) + class CppBasedMapping(Mapping): class Config(Mapping.Config): |