diff --git a/examples/runtime/images/SplashScreen.png b/examples/runtime/images/SplashScreen.png new file mode 100644 index 000000000..fc6a2468e Binary files /dev/null and b/examples/runtime/images/SplashScreen.png differ diff --git a/scripts/bgfx.lua b/scripts/bgfx.lua index a3b1899fb..693b7a3c6 100644 --- a/scripts/bgfx.lua +++ b/scripts/bgfx.lua @@ -81,7 +81,7 @@ function bgfxProject(_name, _kind, _defines) "$(DXSDK_DIR)/include", } - configuration { "winphone8*"} + configuration { "winphone8* or winstore8*"} 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 96040b6bf..37e53afaa 100644 --- a/scripts/example-common.lua +++ b/scripts/example-common.lua @@ -48,7 +48,8 @@ project ("example-common") } end - configuration { "winphone8*"} + configuration { "winphone8* or winstore8*"} 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 } + premake.vstudio.splashpath = "../../../examples/runtime/images/SplashScreen.png" diff --git a/scripts/genie.lua b/scripts/genie.lua index e77a40e22..87ef13927 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -88,10 +88,7 @@ function exampleProject(_name) configuration {} - -- don't output debugdir for winphone builds - if "winphone81" ~= _OPTIONS["vs"] then - debugdir (path.join(BGFX_DIR, "examples/runtime")) - end + debugdir (path.join(BGFX_DIR, "examples/runtime")) includedirs { path.join(BX_DIR, "include"), @@ -221,7 +218,7 @@ function exampleProject(_name) "psapi", } - configuration { "winphone8*"} + configuration { "winphone8* or winstore8*" } removelinks { "DelayImp", "gdi32", @@ -234,7 +231,17 @@ function exampleProject(_name) 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 } - -- WinRT targets need their own output directories are build files stomp over each other + + -- WinRT targets need their own output directories or build files stomp over each other + configuration { "x32", "winphone8* or winstore8*" } + targetdir (path.join(BGFX_BUILD_DIR, "win32_" .. _ACTION, "bin", _name)) + objdir (path.join(BGFX_BUILD_DIR, "win32_" .. _ACTION, "obj", _name)) + + configuration { "x64", "winphone8* or winstore8*" } + targetdir (path.join(BGFX_BUILD_DIR, "win64_" .. _ACTION, "bin", _name)) + objdir (path.join(BGFX_BUILD_DIR, "win64_" .. _ACTION, "obj", _name)) + + configuration { "ARM", "winphone8* or winstore8*" } targetdir (path.join(BGFX_BUILD_DIR, "arm_" .. _ACTION, "bin", _name)) objdir (path.join(BGFX_BUILD_DIR, "arm_" .. _ACTION, "obj", _name)) @@ -366,7 +373,11 @@ exampleProject("21-deferred") exampleProject("22-windows") exampleProject("23-vectordisplay") exampleProject("24-nbody") -exampleProject("25-c99") + +-- C99 source doesn't compile under WinRT settings +if not premake.vstudio.iswinrt() then + exampleProject("25-c99") +end if _OPTIONS["with-shared-lib"] then group "libs"