summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/scripts/genie.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-02-01 10:14:17 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-02-01 10:14:17 +0100
commitb3303c3a32b94b61f82e739d8d494752047f11c1 (patch)
tree1383c753eaebdfa039f1768f55c96fe800ce020f /3rdparty/bx/scripts/genie.lua
parent09b6ec9869349cf9befd8c3589f1dccb32bacd1a (diff)
Added BGFX latest code to 3rdparty (nw)
Diffstat (limited to '3rdparty/bx/scripts/genie.lua')
-rw-r--r--3rdparty/bx/scripts/genie.lua99
1 files changed, 99 insertions, 0 deletions
diff --git a/3rdparty/bx/scripts/genie.lua b/3rdparty/bx/scripts/genie.lua
new file mode 100644
index 00000000000..75e5d663c97
--- /dev/null
+++ b/3rdparty/bx/scripts/genie.lua
@@ -0,0 +1,99 @@
+--
+-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
+-- License: http://www.opensource.org/licenses/BSD-2-Clause
+--
+
+solution "bx"
+ configurations {
+ "Debug",
+ "Release",
+ }
+
+ platforms {
+ "x32",
+ "x64",
+ "Native", -- for targets where bitness is not specified
+ }
+
+ language "C++"
+
+BX_DIR = (path.getabsolute("..") .. "/")
+local BX_BUILD_DIR = (BX_DIR .. ".build/")
+local BX_THIRD_PARTY_DIR = (BX_DIR .. "3rdparty/")
+
+defines {
+ "BX_CONFIG_ENABLE_MSVC_LEVEL4_WARNINGS=1"
+}
+
+dofile "toolchain.lua"
+toolchain(BX_BUILD_DIR, BX_THIRD_PARTY_DIR)
+
+function copyLib()
+end
+
+dofile "bx.lua"
+dofile "unittest++.lua"
+dofile "bin2c.lua"
+
+project "bx.test"
+ uuid "8a653da8-23d6-11e3-acb4-887628d43830"
+ kind "ConsoleApp"
+
+ debugdir (BX_DIR .. "tests")
+
+ removeflags {
+ "NoExceptions",
+ }
+
+ includedirs {
+ BX_DIR .. "include",
+ BX_THIRD_PARTY_DIR .. "UnitTest++/src/",
+ }
+
+ links {
+ "UnitTest++",
+ }
+
+ files {
+ BX_DIR .. "tests/**.cpp",
+ BX_DIR .. "tests/**.H",
+ }
+
+ configuration { "vs*" }
+
+ configuration { "android*" }
+ kind "ConsoleApp"
+ targetextension ".so"
+ linkoptions {
+ "-shared",
+ }
+
+ configuration { "nacl or nacl-arm" }
+ kind "ConsoleApp"
+ targetextension ".nexe"
+ links {
+ "ppapi",
+ "pthread",
+ }
+
+ configuration { "pnacl" }
+ kind "ConsoleApp"
+ targetextension ".pexe"
+ links {
+ "ppapi",
+ "pthread",
+ }
+
+ configuration { "linux-*" }
+ links {
+ "pthread",
+ }
+
+ configuration { "osx" }
+ links {
+ "Cocoa.framework",
+ }
+
+ configuration {}
+
+ strip()