summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua56
1 files changed, 19 insertions, 37 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 984196e2af7..2fcfb323653 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -83,11 +83,6 @@ newoption {
}
newoption {
- trigger = "with-benchmarks",
- description = "Enable building benchmarks.",
-}
-
-newoption {
trigger = "osd",
description = "Choose OSD layer implementation",
}
@@ -198,11 +193,6 @@ newoption {
}
newoption {
- trigger = "TOOLCHAIN",
- description = "Toolchain prefix"
-}
-
-newoption {
trigger = "PROFILE",
description = "Enable profiling.",
}
@@ -276,6 +266,15 @@ newoption {
}
newoption {
+ trigger = "USE_BGFX",
+ description = "Use of BGFX.",
+ allowed = {
+ { "0", "Disabled" },
+ { "1", "Enabled" },
+ }
+}
+
+newoption {
trigger = "DEPRECATED",
description = "Generate deprecation warnings during compilation.",
allowed = {
@@ -418,8 +417,9 @@ if _OPTIONS["NOASM"]=="1" and not _OPTIONS["FORCE_DRC_C_BACKEND"] then
_OPTIONS["FORCE_DRC_C_BACKEND"] = "1"
end
-if(_OPTIONS["TOOLCHAIN"] == nil) then
- _OPTIONS['TOOLCHAIN'] = ""
+USE_BGFX = 1
+if(_OPTIONS["USE_BGFX"]~=nil) then
+ USE_BGFX = tonumber(_OPTIONS["USE_BGFX"])
end
GEN_DIR = MAME_BUILD_DIR .. "generated/"
@@ -666,10 +666,9 @@ end
--DEFS += -DUSE_SYSTEM_JPEGLIB
--endif
+ --To support casting in Lua 5.3
defines {
- "LUA_COMPAT_ALL",
- "LUA_COMPAT_5_1",
- "LUA_COMPAT_5_2",
+ "LUA_COMPAT_APIINTCASTS",
}
if _ACTION == "gmake" then
@@ -1045,7 +1044,6 @@ configuration { "nacl*" }
configuration { "linux-*" }
links {
"dl",
- "rt",
}
if _OPTIONS["distro"]=="debian-stable" then
defines
@@ -1059,10 +1057,7 @@ configuration { "linux-*" }
configuration { "steamlink" }
links {
"dl",
- "EGL",
- "GLESv2",
- "SDL2",
- }
+ }
defines {
"EGL_API_FB",
}
@@ -1084,11 +1079,6 @@ configuration { "mingw*" }
"advapi32",
"shlwapi",
"wsock32",
- "ws2_32",
- "psapi",
- "iphlpapi",
- "shell32",
- "userenv",
}
configuration { "mingw-clang" }
linkoptions {
@@ -1110,11 +1100,6 @@ configuration { "vs*" }
"advapi32",
"shlwapi",
"wsock32",
- "ws2_32",
- "psapi",
- "iphlpapi",
- "shell32",
- "userenv",
}
buildoptions {
@@ -1234,7 +1219,6 @@ 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 {
@@ -1298,7 +1282,10 @@ else
startproject (_OPTIONS["subtarget"])
end
mainProject(_OPTIONS["target"],_OPTIONS["subtarget"])
-strip()
+
+if (_OPTIONS["STRIP_SYMBOLS"]=="1") then
+ strip()
+end
if _OPTIONS["with-tools"] then
group "tools"
@@ -1309,8 +1296,3 @@ 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