Restore SDL2_MULTIAPI

This commit is contained in:
Vas Crabb 2015-04-01 03:02:58 +11:00
parent 00bfd00a43
commit 1f2763cc32
3 changed files with 22 additions and 0 deletions

View File

@ -330,6 +330,10 @@ ifdef SDL_LIBVER
PARAMS += --SDL_LIBVER='$(SDL_LIBVER)'
endif
ifdef SDL2_MULTIAPI
PARAMS += --SDL2_MULTIAPI='$(SDL2_MULTIAPI)'
endif
ifdef SDL_INSTALL_ROOT
PARAMS += --SDL_INSTALL_ROOT='$(SDL_INSTALL_ROOT)'
endif

View File

@ -224,6 +224,19 @@ if not _OPTIONS["SDL_LIBVER"] then
end
end
newoption {
trigger = "SDL2_MULTIAPI",
description = "Use couriersud's multi-keyboard patch for SDL 2.1? (this API was removed prior to the 2.0 release)",
allowed = {
{ "0", "Use single-keyboard API" },
{ "1", "Use multi-keyboard API" },
},
}
if not _OPTIONS["SDL2_MULTIAPI"] then
_OPTIONS["SDL2_MULTIAPI"] = "0"
end
newoption {
trigger = "SDL_INSTALL_ROOT",
description = "Equivalent to the ./configure --prefix=<path>",

View File

@ -62,6 +62,11 @@ if _OPTIONS["SDL_LIBVER"]=="sdl2" then
defines {
"SDLMAME_SDL2=1",
}
if _OPTIONS["SDL2_MULTIAPI"]=="1" then
defines {
"SDL2_MULTIAPI",
}
end
else
defines {
"SDLMAME_SDL2=0",