diff options
| author | 2015-08-25 13:01:38 +1000 | |
|---|---|---|
| committer | 2015-08-25 13:02:01 +1000 | |
| commit | f500420346db73af33c5bb62f1875bb9ad501315 (patch) | |
| tree | 5cde80ecd1b029d974ac37f73712095b4ef5f28c /scripts | |
| parent | f91d3e8feae575546a976cb59a29fa651ec2ffea (diff) | |
OS/2 patch for 0.164 [KO Myung-Hun]
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/src/osd/sdl_cfg.lua | 3 | ||||
| -rw-r--r-- | scripts/toolchain.lua | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/scripts/src/osd/sdl_cfg.lua b/scripts/src/osd/sdl_cfg.lua index a204201d6f5..878a5a2f945 100644 --- a/scripts/src/osd/sdl_cfg.lua +++ b/scripts/src/osd/sdl_cfg.lua @@ -144,6 +144,9 @@ elseif _OPTIONS["targetos"]=="freebsd" then "-isystem /usr/local/include", } elseif _OPTIONS["targetos"]=="os2" then + defines { + "SDLMAME_OS2", + } buildoptions { backtick(sdlconfigcmd() .. " --cflags"), } diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index 934f5a96610..e04c8199003 100644 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -25,6 +25,7 @@ newoption { { "nacl", "Native Client" }, { "nacl-arm", "Native Client - ARM" }, { "netbsd", "NetBSD" }, + { "os2", "OS/2" }, { "osx", "OSX (GCC compiler)" }, { "osx-clang", "OSX (Clang compiler)" }, { "pnacl", "Native Client - PNaCl" }, @@ -310,6 +311,10 @@ function toolchain(_buildDir, _subDir) if "rpi" == _OPTIONS["gcc"] then location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-rpi") end + + if "os2" == _OPTIONS["gcc"] then + location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-os2") + end elseif _ACTION == "vs2012" or _ACTION == "vs2013" or _ACTION == "vs2015" then if (_ACTION .. "-clang") == _OPTIONS["vs"] then @@ -857,6 +862,15 @@ function toolchain(_buildDir, _subDir) targetdir (_buildDir .. "rpi" .. "/bin") objdir (_buildDir .. "rpi" .. "/obj") + configuration { "os2" } + objdir (_buildDir .. "os2" .. "/obj") + + configuration { "os2", "Release" } + targetdir (_buildDir .. "os2" .. "/bin/Release") + + configuration { "os2", "Debug" } + targetdir (_buildDir .. "os2" .. "/bin/Debug") + configuration {} -- reset configuration return true @@ -919,6 +933,12 @@ function strip() -- ALLOW_MEMORY_GROWTH } + configuration { "os2", "Release" } + postbuildcommands { + "$(SILENT) echo Stripping symbols.", + "$(SILENT) lxlite /B- /L- /CS \"$(TARGET)\"" + } + configuration {} -- reset configuration end |
