summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/scripts/genie.lua
diff options
context:
space:
mode:
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*" }