summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src')
-rw-r--r--scripts/src/tools.lua70
1 files changed, 40 insertions, 30 deletions
diff --git a/scripts/src/tools.lua b/scripts/src/tools.lua
index f1f595b8719..e1e1081a203 100644
--- a/scripts/src/tools.lua
+++ b/scripts/src/tools.lua
@@ -796,37 +796,47 @@ end
-- testkeys
--------------------------------------------------
-if _OPTIONS["targetos"] ~= "windows" then
- if (_OPTIONS["osd"] == "sdl") then
- project("testkeys")
- uuid ("b3f5a5b8-3203-11e9-93e4-670b4f4e359d")
- kind "ConsoleApp"
-
- flags {
- "Symbols", -- always include minimum symbols for executables
- }
-
- if _OPTIONS["SEPARATE_BIN"]~="1" then
- targetdir(MAME_DIR)
- end
-
- links {
- }
-
- dofile("osd/sdl_cfg.lua")
+if (_OPTIONS["osd"] == "sdl") then
+ project("testkeys")
+ uuid ("b3f5a5b8-3203-11e9-93e4-670b4f4e359d")
+ kind "ConsoleApp"
- includedirs {
+ flags {
+ "Symbols", -- always include minimum symbols for executables
+ }
+
+ if _OPTIONS["SEPARATE_BIN"]~="1" then
+ targetdir(MAME_DIR)
+ end
+
+ if _OPTIONS["targetos"] == "macosx" then
+ links {
+ "ocore_" .. _OPTIONS["osd"],
+ ext_lib("utf8proc"),
}
-
- files {
- MAME_DIR .. "src/tools/testkeys.cpp",
+ else
+ links {
+ "SDL2",
+ "SDL2main",
+ "ocore_" .. _OPTIONS["osd"],
+ ext_lib("utf8proc"),
}
-
- configuration { "mingw*" or "vs*" }
- targetextension ".exe"
-
- configuration { }
-
- strip()
end
-end \ No newline at end of file
+
+ dofile("osd/sdl_cfg.lua")
+
+ includedirs {
+ MAME_DIR .. "src/osd",
+ }
+
+ files {
+ MAME_DIR .. "src/tools/testkeys.cpp",
+ }
+
+ configuration { "mingw*" or "vs*" }
+ targetextension ".exe"
+
+ configuration { }
+
+ strip()
+end