From 8e865484227ac3ffcb24f630aa0501de80b74302 Mon Sep 17 00:00:00 2001 From: Mike Popoloski Date: Sun, 9 Nov 2014 18:20:48 -0500 Subject: [PATCH] Adding Windows Phone 8.1 toolset target. --- scripts/toolchain.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index 045f412..4419530 100755 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -41,6 +41,7 @@ function toolchain(_buildDir, _libDir) { "vs2012-clang", "Clang 3.6" }, { "vs2013-clang", "Clang 3.6" }, { "winphone8", "Windows Phone 8.0" }, + { "winphone8-1", "Windows Phone 8.1" } }, } @@ -272,6 +273,12 @@ function toolchain(_buildDir, _libDir) premake.vstudio.toolset = "v110_wp80" location (_buildDir .. "projects/" .. _ACTION .. "-winphone8") end + + if "winphone8-1" == _OPTIONS["vs"] then + premake.vstudio.toolset = "v120_wp81" + platforms { "ARM" } + location (_buildDir .. "projects/" .. _ACTION .. "-winphone8-1") + end end flags { @@ -358,6 +365,9 @@ function toolchain(_buildDir, _libDir) targetdir (_buildDir .. "win64_" .. _ACTION .. "-clang/bin") objdir (_buildDir .. "win64_" .. _ACTION .. "-clang/obj") + configuration { "winphone8*" } + removeflags { "StaticRuntime", "NoExceptions" } + configuration { "mingw-*" } defines { "WIN32" } includedirs { bxDir .. "include/compat/mingw" }