diff options
Diffstat (limited to 'docs/release/scripts/genie.lua')
-rw-r--r-- | docs/release/scripts/genie.lua | 78 |
1 files changed, 52 insertions, 26 deletions
diff --git a/docs/release/scripts/genie.lua b/docs/release/scripts/genie.lua index 2fcfb323653..4f580dc8afa 100644 --- a/docs/release/scripts/genie.lua +++ b/docs/release/scripts/genie.lua @@ -54,7 +54,9 @@ function layoutbuildtask(_folder, _name) end function precompiledheaders() - pchheader("emu.h") + configuration { "not xcode4" } + pchheader("emu.h") + configuration { } end function addprojectflags() @@ -83,6 +85,11 @@ newoption { } newoption { + trigger = "with-benchmarks", + description = "Enable building benchmarks.", +} + +newoption { trigger = "osd", description = "Choose OSD layer implementation", } @@ -193,6 +200,11 @@ newoption { } newoption { + trigger = "TOOLCHAIN", + description = "Toolchain prefix" +} + +newoption { trigger = "PROFILE", description = "Enable profiling.", } @@ -266,15 +278,6 @@ newoption { } newoption { - trigger = "USE_BGFX", - description = "Use of BGFX.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -newoption { trigger = "DEPRECATED", description = "Generate deprecation warnings during compilation.", allowed = { @@ -417,9 +420,8 @@ if _OPTIONS["NOASM"]=="1" and not _OPTIONS["FORCE_DRC_C_BACKEND"] then _OPTIONS["FORCE_DRC_C_BACKEND"] = "1" end -USE_BGFX = 1 -if(_OPTIONS["USE_BGFX"]~=nil) then - USE_BGFX = tonumber(_OPTIONS["USE_BGFX"]) +if(_OPTIONS["TOOLCHAIN"] == nil) then + _OPTIONS['TOOLCHAIN'] = "" end GEN_DIR = MAME_BUILD_DIR .. "generated/" @@ -442,11 +444,17 @@ configurations { "Release", } -platforms { - "x32", - "x64", - "Native", -- for targets where bitness is not specified -} +if _ACTION == "xcode4" then + platforms { + "x64", + } +else + platforms { + "x32", + "x64", + "Native", -- for targets where bitness is not specified + } +end language "C++" @@ -666,9 +674,10 @@ end --DEFS += -DUSE_SYSTEM_JPEGLIB --endif - --To support casting in Lua 5.3 defines { - "LUA_COMPAT_APIINTCASTS", + "LUA_COMPAT_ALL", + "LUA_COMPAT_5_1", + "LUA_COMPAT_5_2", } if _ACTION == "gmake" then @@ -1044,6 +1053,7 @@ configuration { "nacl*" } configuration { "linux-*" } links { "dl", + "rt", } if _OPTIONS["distro"]=="debian-stable" then defines @@ -1057,12 +1067,15 @@ configuration { "linux-*" } configuration { "steamlink" } links { "dl", - } + "EGL", + "GLESv2", + "SDL2", + } defines { "EGL_API_FB", } -configuration { "osx*" } +configuration { "osx* or xcode4" } links { "pthread", } @@ -1079,6 +1092,11 @@ configuration { "mingw*" } "advapi32", "shlwapi", "wsock32", + "ws2_32", + "psapi", + "iphlpapi", + "shell32", + "userenv", } configuration { "mingw-clang" } linkoptions { @@ -1100,6 +1118,11 @@ configuration { "vs*" } "advapi32", "shlwapi", "wsock32", + "ws2_32", + "psapi", + "iphlpapi", + "shell32", + "userenv", } buildoptions { @@ -1219,6 +1242,7 @@ configuration { "vs2015" } "/wd4463", -- warning C4463: overflow; assigning 1 to bit-field that can only hold values from -1 to 0 "/wd4297", -- warning C4297: 'xxx::~xxx': function assumed not to throw an exception but does "/wd4319", -- warning C4319: 'operator' : zero extending 'type' to 'type' of greater size + "/wd4592", -- warning C4592: symbol will be dynamically initialized (implementation limitation) } configuration { "winphone8* or winstore8*" } removelinks { @@ -1282,10 +1306,7 @@ else startproject (_OPTIONS["subtarget"]) end mainProject(_OPTIONS["target"],_OPTIONS["subtarget"]) - -if (_OPTIONS["STRIP_SYMBOLS"]=="1") then - strip() -end +strip() if _OPTIONS["with-tools"] then group "tools" @@ -1296,3 +1317,8 @@ if _OPTIONS["with-tests"] then group "tests" dofile(path.join("src", "tests.lua")) end + +if _OPTIONS["with-benchmarks"] then + group "benchmarks" + dofile(path.join("src", "benchmarks.lua")) +end |