summaryrefslogtreecommitdiffstats
path: root/docs/release/scripts/src/osd/sdl_cfg.lua
diff options
context:
space:
mode:
author Robbbert <pac0446@bigpond.net.au>2016-02-26 11:05:20 +1100
committer Robbbert <pac0446@bigpond.net.au>2016-02-26 11:05:20 +1100
commitc33749165c7e8181353216925ae9f2558db5b51d (patch)
tree6b0230243965ee3ec8e926242082bbd1f56bacaf /docs/release/scripts/src/osd/sdl_cfg.lua
parent60b1a4a750cb059c65eb77b6de7a5fed5f4f457a (diff)
0.171 Release Fileshbmame171
Diffstat (limited to 'docs/release/scripts/src/osd/sdl_cfg.lua')
-rw-r--r--docs/release/scripts/src/osd/sdl_cfg.lua38
1 files changed, 25 insertions, 13 deletions
diff --git a/docs/release/scripts/src/osd/sdl_cfg.lua b/docs/release/scripts/src/osd/sdl_cfg.lua
index 2dc1a7e465a..e3a6f913e75 100644
--- a/docs/release/scripts/src/osd/sdl_cfg.lua
+++ b/docs/release/scripts/src/osd/sdl_cfg.lua
@@ -56,18 +56,12 @@ if _OPTIONS["NO_USE_MIDI"]~="1" and _OPTIONS["targetos"]=="linux" then
}
end
-if _OPTIONS["SDL_LIBVER"]=="sdl2" then
- defines {
- "SDLMAME_SDL2=1",
- }
- if _OPTIONS["SDL2_MULTIAPI"]=="1" then
- defines {
- "SDL2_MULTIAPI",
- }
- end
-else
+defines {
+ "SDLMAME_SDL2=1",
+}
+if _OPTIONS["SDL2_MULTIAPI"]=="1" then
defines {
- "SDLMAME_SDL2=0",
+ "SDL2_MULTIAPI",
}
end
@@ -81,7 +75,7 @@ if BASE_TARGETOS=="unix" then
"SDLMAME_UNIX",
}
if _OPTIONS["targetos"]=="macosx" then
- if _OPTIONS["MACOSX_USE_LIBSDL"]~="1" then
+ if _OPTIONS["USE_LIBSDL"]~="1" then
buildoptions {
"-F" .. _OPTIONS["SDL_FRAMEWORK_PATH"],
}
@@ -119,7 +113,7 @@ if _OPTIONS["targetos"]=="windows" then
}
configuration { "vs*" }
includedirs {
- path.join(_OPTIONS["SDL_INSTALL_ROOT"],"include")
+ MAME_DIR .. "3rdparty/sdl2/include",
}
configuration { }
@@ -151,3 +145,21 @@ elseif _OPTIONS["targetos"]=="os2" then
backtick(sdlconfigcmd() .. " --cflags"),
}
end
+
+configuration { "osx*" }
+ includedirs {
+ MAME_DIR .. "3rdparty/bx/include/compat/osx",
+ }
+
+configuration { "freebsd" }
+ includedirs {
+ MAME_DIR .. "3rdparty/bx/include/compat/freebsd",
+ }
+
+configuration { "netbsd" }
+ includedirs {
+ MAME_DIR .. "3rdparty/bx/include/compat/freebsd",
+ }
+
+configuration { }
+