mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
skeleton for XCode support (nw)
This commit is contained in:
parent
86e36b4912
commit
69d936dfee
7
makefile
7
makefile
@ -769,6 +769,13 @@ macosx_x64_clang: generate $(PROJECTDIR)/gmake-osx-clang/Makefile
|
||||
macosx_x86_clang: generate $(PROJECTDIR)/gmake-osx-clang/Makefile
|
||||
$(SILENT) $(MAKE) $(MAKEPARAMS) -C $(PROJECTDIR)/gmake-osx-clang config=$(CONFIG)32
|
||||
|
||||
xcode4: generate
|
||||
$(SILENT) $(GENIE) $(PARAMS) --targetos=macosx --xcode=osx xcode4
|
||||
|
||||
xcode4-ios: generate
|
||||
$(SILENT) $(GENIE) $(PARAMS) --targetos=macosx --xcode=ios xcode4
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
# Clean/bootstrap
|
||||
#-------------------------------------------------
|
||||
|
@ -48,6 +48,16 @@ newoption {
|
||||
},
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "xcode",
|
||||
value = "xcode_target",
|
||||
description = "Choose XCode target",
|
||||
allowed = {
|
||||
{ "osx", "OSX" },
|
||||
{ "ios", "iOS" },
|
||||
}
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "with-android",
|
||||
value = "#",
|
||||
@ -319,6 +329,16 @@ function toolchain(_buildDir, _subDir)
|
||||
if ("vs2013-xp") == _OPTIONS["vs"] then
|
||||
premake.vstudio.toolset = ("v120_xp")
|
||||
location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-xp")
|
||||
end
|
||||
elseif _ACTION == "xcode4" then
|
||||
|
||||
if "osx" == _OPTIONS["xcode"] then
|
||||
premake.xcode.toolset = "macosx"
|
||||
location (path.join(_buildDir, "projects", _ACTION .. "-osx"))
|
||||
|
||||
elseif "ios" == _OPTIONS["xcode"] then
|
||||
premake.xcode.toolset = "iphoneos"
|
||||
location (path.join(_buildDir, "projects", _ACTION .. "-ios"))
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user