summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/scripts/genie.lua
diff options
context:
space:
mode:
author Branimir Karadžić <branimirkaradzic@gmail.com>2016-10-29 09:11:50 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-29 09:11:50 +0200
commita3b4058bf7266f1291cf38c30425d9948250fcd9 (patch)
tree46116c48b60368ac9c782c1d5e6e8ae16e558987 /3rdparty/bx/scripts/genie.lua
parentb99be73f2db5d3f81edc96a92ac4839e7f1cc3ab (diff)
Updated BGFX and BX and recompiled shaders (nw)
Diffstat (limited to '3rdparty/bx/scripts/genie.lua')
-rw-r--r--3rdparty/bx/scripts/genie.lua60
1 files changed, 58 insertions, 2 deletions
diff --git a/3rdparty/bx/scripts/genie.lua b/3rdparty/bx/scripts/genie.lua
index fdde771d60d..edc86a7823b 100644
--- a/3rdparty/bx/scripts/genie.lua
+++ b/3rdparty/bx/scripts/genie.lua
@@ -49,8 +49,64 @@ project "bx.test"
}
files {
- path.join(BX_DIR, "tests/**.cpp"),
- path.join(BX_DIR, "tests/**.H"),
+ path.join(BX_DIR, "tests/*_test.cpp"),
+ path.join(BX_DIR, "tests/*_test.H"),
+ path.join(BX_DIR, "tests/dbg.*"),
+ }
+
+ configuration { "vs* or mingw*" }
+ links {
+ "psapi",
+ }
+
+ configuration { "android*" }
+ targetextension ".so"
+ linkoptions {
+ "-shared",
+ }
+
+ configuration { "nacl or nacl-arm" }
+ targetextension ".nexe"
+ links {
+ "ppapi",
+ "pthread",
+ }
+
+ configuration { "pnacl" }
+ targetextension ".pexe"
+ links {
+ "ppapi",
+ "pthread",
+ }
+
+ configuration { "linux-*" }
+ links {
+ "pthread",
+ }
+
+ configuration { "osx" }
+ links {
+ "Cocoa.framework",
+ }
+
+ configuration {}
+
+ strip()
+
+project "bx.bench"
+ kind "ConsoleApp"
+
+ debugdir (path.join(BX_DIR, "tests"))
+
+ includedirs {
+ path.join(BX_DIR, "include"),
+ BX_THIRD_PARTY_DIR,
+ }
+
+ files {
+ path.join(BX_DIR, "tests/*_bench.cpp"),
+ path.join(BX_DIR, "tests/*_bench.h"),
+ path.join(BX_DIR, "tests/dbg.*"),
}
configuration { "vs* or mingw*" }