diff options
author | Jose <jose@zeroc.com> | 2013-11-26 21:55:01 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-11-26 21:55:01 +0100 |
commit | d10a2cb6de091828703cef138e65faa4787c42e5 (patch) | |
tree | 55d309990da561cd4362fa2b0b9f8b774db5bd38 /demoscript/Util.py | |
parent | Fixed OpenSSL deprecation warning on OS X (diff) | |
download | ice-d10a2cb6de091828703cef138e65faa4787c42e5.tar.bz2 ice-d10a2cb6de091828703cef138e65faa4787c42e5.tar.xz ice-d10a2cb6de091828703cef138e65faa4787c42e5.zip |
Visual Studio 2013 support
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r-- | demoscript/Util.py | 13 |
1 files changed, 9 insertions, 4 deletions
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) |