diff options
Diffstat (limited to 'scripts/toolchain.lua')
-rw-r--r-- | scripts/toolchain.lua | 20 |
1 files changed, 20 insertions, 0 deletions
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 |