mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
Build project for Windows Store
This commit is contained in:
parent
725b90b5fd
commit
e6e30bb9dd
7
makefile
7
makefile
@ -957,6 +957,13 @@ ifdef MSBUILD
|
|||||||
$(SILENT) msbuild $(PROJECTDIR_WIN)/vs2015-xp/$(PROJECT_NAME).sln $(MSBUILD_PARAMS)
|
$(SILENT) msbuild $(PROJECTDIR_WIN)/vs2015-xp/$(PROJECT_NAME).sln $(MSBUILD_PARAMS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.PHONY: vs2015_uwp
|
||||||
|
vs2015_uwp: generate
|
||||||
|
$(SILENT) $(GENIE) $(PARAMS) $(TARGET_PARAMS) --vs=winstore82 --osd=windows --NO_USE_MIDI=1 --USE_LIBUV=0 --NO_OPENGL=1 --USE_QTDEBUG=0 --MODERN_WIN_API=1 vs2015
|
||||||
|
ifdef MSBUILD
|
||||||
|
$(SILENT) msbuild $(PROJECTDIR_WIN)/vs2015-winstore82/$(PROJECT_NAME).sln $(MSBUILD_PARAMS)
|
||||||
|
endif
|
||||||
|
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
# android-arm
|
# android-arm
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
@ -80,6 +80,12 @@ newoption {
|
|||||||
description = "Set iOS target version (default: 8.0).",
|
description = "Set iOS target version (default: 8.0).",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = "with-windows",
|
||||||
|
value = "#",
|
||||||
|
description = "Set the Windows target platform version (default: 10.0.10240.0).",
|
||||||
|
}
|
||||||
|
|
||||||
function toolchain(_buildDir, _subDir)
|
function toolchain(_buildDir, _subDir)
|
||||||
|
|
||||||
location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION)
|
location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION)
|
||||||
@ -93,6 +99,11 @@ function toolchain(_buildDir, _subDir)
|
|||||||
if _OPTIONS["with-ios"] then
|
if _OPTIONS["with-ios"] then
|
||||||
iosPlatform = _OPTIONS["with-ios"]
|
iosPlatform = _OPTIONS["with-ios"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local windowsPlatform = "10.0.10240.0"
|
||||||
|
if _OPTIONS["with-windows"] then
|
||||||
|
windowsPlatform = _OPTIONS["with-windows"]
|
||||||
|
end
|
||||||
|
|
||||||
if _ACTION == "gmake" then
|
if _ACTION == "gmake" then
|
||||||
|
|
||||||
@ -370,6 +381,15 @@ function toolchain(_buildDir, _subDir)
|
|||||||
if "winstore82" == _OPTIONS["vs"] then
|
if "winstore82" == _OPTIONS["vs"] then
|
||||||
premake.vstudio.toolset = "v140"
|
premake.vstudio.toolset = "v140"
|
||||||
premake.vstudio.storeapp = "8.2"
|
premake.vstudio.storeapp = "8.2"
|
||||||
|
|
||||||
|
-- If needed, depending on GENie version, enable file-level configuration
|
||||||
|
if enablefilelevelconfig ~= nil then
|
||||||
|
enablefilelevelconfig()
|
||||||
|
end
|
||||||
|
|
||||||
|
local action = premake.action.current()
|
||||||
|
action.vstudio.windowsTargetPlatformVersion = windowsPlatform
|
||||||
|
|
||||||
platforms { "ARM" }
|
platforms { "ARM" }
|
||||||
location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-winstore82")
|
location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-winstore82")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user