summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/toolchain.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/toolchain.lua')
-rw-r--r--scripts/toolchain.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua
index 2a5490fab06..e717102f44e 100644
--- a/scripts/toolchain.lua
+++ b/scripts/toolchain.lua
@@ -31,6 +31,7 @@ newoption {
{ "mingw64-gcc", "MinGW64" },
{ "mingw-clang", "MinGW (clang compiler)" },
{ "netbsd", "NetBSD" },
+ { "openbsd", "OpenBSD" },
{ "osx", "OSX (GCC compiler)" },
{ "osx-clang", "OSX (Clang compiler)" },
{ "pnacl", "Native Client - PNaCl" },
@@ -211,6 +212,10 @@ function toolchain(_buildDir, _subDir)
location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-netbsd")
end
+ if "openbsd" == _OPTIONS["gcc"] then
+ location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-openbsd")
+ end
+
if "ios-arm" == _OPTIONS["gcc"] then
premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
@@ -785,6 +790,28 @@ function toolchain(_buildDir, _subDir)
configuration { "netbsd", "x64", "Debug" }
targetdir (_buildDir .. "netbsd" .. "/bin/x64/Debug")
+ configuration { "openbsd", "x32" }
+ objdir (_buildDir .. "openbsd" .. "/obj")
+ buildoptions {
+ "-m32",
+ }
+ configuration { "openbsd", "x32", "Release" }
+ targetdir (_buildDir .. "openbsd" .. "/bin/x32/Release")
+
+ configuration { "openbsd", "x32", "Debug" }
+ targetdir (_buildDir .. "openbsd" .. "/bin/x32/Debug")
+
+ configuration { "openbsd", "x64" }
+ objdir (_buildDir .. "openbsd" .. "/obj")
+ buildoptions {
+ "-m64",
+ }
+ configuration { "openbsd", "x64", "Release" }
+ targetdir (_buildDir .. "openbsd" .. "/bin/x64/Release")
+
+ configuration { "openbsd", "x64", "Debug" }
+ targetdir (_buildDir .. "openbsd" .. "/bin/x64/Debug")
+
configuration { "android-*" }
includedirs {
MAME_DIR .. "3rdparty/bgfx/3rdparty/khronos",