From 9a3f9a1c7ca91f5212a74f0c56c9780cdda8fc04 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 7 Mar 2015 13:11:45 +0100 Subject: [PATCH] Added support for building on VS2012/13 targeting XP --- scripts/bgfx.lua | 7 +++++++ scripts/example-common.lua | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/bgfx.lua b/scripts/bgfx.lua index 82fcad84..8b67642d 100644 --- a/scripts/bgfx.lua +++ b/scripts/bgfx.lua @@ -62,6 +62,13 @@ function bgfxProject(_name, _kind, _defines) "$(DXSDK_DIR)/include", } + if (_OPTIONS["vs"] == "vs2012-xp") or (_OPTIONS["vs"] == "vs2013-xp") then + configuration { "vs201*" } + includedirs { + "$(DXSDK_DIR)/include", + } + end + configuration { "winphone8*"} linkoptions { "/ignore:4264" -- LNK4264: archiving object file compiled with /ZW into a static library; note that when authoring Windows Runtime types it is not recommended to link with a static library that contains Windows Runtime metadata diff --git a/scripts/example-common.lua b/scripts/example-common.lua index e0983378..6ab71ab9 100644 --- a/scripts/example-common.lua +++ b/scripts/example-common.lua @@ -35,7 +35,12 @@ project ("example-common") includedirs { "$(DXSDK_DIR)/include", } - + if (_OPTIONS["vs"] == "vs2012-xp") or (_OPTIONS["vs"] == "vs2013-xp") then + configuration { "vs201*" } + includedirs { + "$(DXSDK_DIR)/include", + } + end configuration { "winphone8*"} linkoptions {