From 0af42a72c6fe5d8fbc8e4ac86ea1bb29abaacc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 9 Jul 2014 22:01:36 -0700 Subject: [PATCH] Added FreeBSD to toolchain.lua. --- premake/toolchain.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/premake/toolchain.lua b/premake/toolchain.lua index e5bfce6..1ba6362 100755 --- a/premake/toolchain.lua +++ b/premake/toolchain.lua @@ -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",