summaryrefslogtreecommitdiff
path: root/demoscript
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-11-26 21:55:01 +0100
committerJose <jose@zeroc.com>2013-11-26 21:55:01 +0100
commitd10a2cb6de091828703cef138e65faa4787c42e5 (patch)
tree55d309990da561cd4362fa2b0b9f8b774db5bd38 /demoscript
parentFixed OpenSSL deprecation warning on OS X (diff)
downloadice-d10a2cb6de091828703cef138e65faa4787c42e5.tar.bz2
ice-d10a2cb6de091828703cef138e65faa4787c42e5.tar.xz
ice-d10a2cb6de091828703cef138e65faa4787c42e5.zip
Visual Studio 2013 support
Diffstat (limited to 'demoscript')
-rw-r--r--demoscript/Ice/multicast.py2
-rw-r--r--demoscript/Util.py13
2 files changed, 10 insertions, 5 deletions
diff --git a/demoscript/Ice/multicast.py b/demoscript/Ice/multicast.py
index ca870fe82b1..661e6abb519 100644
--- a/demoscript/Ice/multicast.py
+++ b/demoscript/Ice/multicast.py
@@ -67,7 +67,7 @@ def run(clientCmd, serverCmd):
#
# No IPv6 support in Windows with Java 1.6.x
#
- if not Util.isWin32() or not Util.getJavaVersion().startswith("1.6"):
+ if Util.getMapping() != "java" or not Util.isWin32() or not Util.getJavaVersion().startswith("1.6"):
sys.stdout.write("testing multicast discovery (IPv6)... ")
sys.stdout.flush()
diff --git a/demoscript/Util.py b/demoscript/Util.py
index 9817defb93d..9c3eaf1b067 100644
--- a/demoscript/Util.py
+++ b/demoscript/Util.py
@@ -58,7 +58,7 @@ debug = False
def getJavaVersion():
p = subprocess.Popen(javaCmd + " -version", shell = True, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
if(p.wait() != 0):
- print(javaCmd + " -version failed:\n" + p.stdout.read().strip())
+ print(javaCmd + " -version failed:\n" + p.stdout.read().decode('UTF-8').strip())
sys.exit(1)
matchVersion = re.compile('java version \"(.*)\"')
m = matchVersion.match(p.stdout.readline().decode('UTF-8'))
@@ -170,7 +170,7 @@ def getCppCompiler():
config = open(os.path.join(toplevel, "config", "Make.rules.mak"), "r")
if config != None:
compiler = re.search("CPP_COMPILER[\t\s]*= ([A-Z0-9]*)", config.read()).group(1)
- if compiler != "VC90" and compiler != "VC100" and compiler != "VC110":
+ if compiler != "VC90" and compiler != "VC100" and compiler != "VC110" and compiler != "VC120":
compiler = ""
if compiler == "":
@@ -185,6 +185,8 @@ def getCppCompiler():
compiler = "VC100"
elif l.find("Version 17") != -1:
compiler = "VC110"
+ elif l.find("Version 18") != -1:
+ compiler = "VC120"
else:
print("Cannot detect C++ compiler")
sys.exit(1)
@@ -246,8 +248,11 @@ def configurePaths():
# Add compiler sub-directory
if isWin32():
subdir = None
- if getCppCompiler() == "VC110" and getMapping() != "py":
- subdir = "vc110"
+ if getMapping() != "py":
+ if getCppCompiler() == "VC110":
+ subdir = "vc110"
+ elif getCppCompiler() == "VC120":
+ subdir = "vc120"
if subdir:
binDir = os.path.join(binDir, subdir)