From f5fa39c1b1fd69845108f1c3f8e839549bfdce67 Mon Sep 17 00:00:00 2001 From: Mike Popoloski Date: Sun, 9 Nov 2014 18:24:22 -0500 Subject: [PATCH] Script changes for building WinRT projects. --- scripts/bgfx.lua | 5 +++++ scripts/example-common.lua | 5 +++++ scripts/genie.lua | 10 ++++++++++ 3 files changed, 20 insertions(+) diff --git a/scripts/bgfx.lua b/scripts/bgfx.lua index 68466ed3b..e52266a75 100644 --- a/scripts/bgfx.lua +++ b/scripts/bgfx.lua @@ -49,6 +49,11 @@ function bgfxProject(_name, _kind, _defines) "$(DXSDK_DIR)/include", } + 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 + } + configuration { "xcode4 or osx or ios*" } files { BGFX_DIR .. "src/**.mm", diff --git a/scripts/example-common.lua b/scripts/example-common.lua index 08e9a5b8a..44382931b 100644 --- a/scripts/example-common.lua +++ b/scripts/example-common.lua @@ -31,3 +31,8 @@ project ("example-common") includedirs { BX_DIR .. "include/compat/osx", } + + 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/genie.lua b/scripts/genie.lua index 3672575fb..34a5cd092 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -149,6 +149,16 @@ function exampleProject(_name) "psapi", } + configuration { "winphone8*"} + removelinks { + "DelayImp", + "gdi32", + "psapi" + } + 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 + } + configuration { "mingw*" } links { "dxguid",