Added FreeBSD to toolchain.lua.

This commit is contained in:
Branimir Karadžić
2014-07-09 22:01:36 -07:00
parent 0b7c335824
commit 0af42a72c6

View File

@@ -17,6 +17,7 @@ function toolchain(_buildDir, _libDir)
{ "android-mips", "Android - MIPS" },
{ "android-x86", "Android - x86" },
{ "asmjs", "Emscripten/asm.js" },
{ "freebsd", "FreeBSD" },
{ "linux-gcc", "Linux (GCC compiler)" },
{ "linux-clang", "Linux (Clang compiler)" },
{ "mingw", "MinGW" },
@@ -98,6 +99,10 @@ function toolchain(_buildDir, _libDir)
location (_buildDir .. "projects/" .. _ACTION .. "-asmjs")
end
if "freebsd" == _OPTIONS["gcc"] then
location (_buildDir .. "projects/" .. _ACTION .. "-freebsd")
end
if "linux-gcc" == _OPTIONS["gcc"] then
location (_buildDir .. "projects/" .. _ACTION .. "-linux")
end
@@ -484,6 +489,14 @@ function toolchain(_buildDir, _libDir)
"-Wno-warn-absolute-paths",
}
configuration { "freebsd" }
targetdir (_buildDir .. "freebsd" .. "/bin")
objdir (_buildDir .. "freebsd" .. "/obj")
libdirs { _libDir .. "lib/freebsd" }
includedirs {
bxDir .. "include/compat/freebsd",
}
configuration { "nacl or nacl-arm or pnacl" }
includedirs {
"$(NACL_SDK_ROOT)/include",