summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/scripts/bx.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bx/scripts/bx.lua')
-rw-r--r--3rdparty/bx/scripts/bx.lua42
1 files changed, 35 insertions, 7 deletions
diff --git a/3rdparty/bx/scripts/bx.lua b/3rdparty/bx/scripts/bx.lua
index 1e54ac521fc..1bb5dc43d4b 100644
--- a/3rdparty/bx/scripts/bx.lua
+++ b/3rdparty/bx/scripts/bx.lua
@@ -1,6 +1,6 @@
--
--- Copyright 2010-2021 Branimir Karadzic. All rights reserved.
--- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
+-- Copyright 2010-2022 Branimir Karadzic. All rights reserved.
+-- License: https://github.com/bkaradzic/bx/blob/master/LICENSE
--
local function userdefines()
@@ -15,6 +15,28 @@ local function userdefines()
return defines
end
+function using_bx()
+ includedirs {
+ path.join(BX_DIR, "include"),
+ }
+
+ links {
+ "bx",
+ }
+
+ configuration { "Debug" }
+ defines {
+ "BX_CONFIG_DEBUG=1",
+ }
+
+ configuration { "Release" }
+ defines {
+ "BX_CONFIG_DEBUG=0",
+ }
+
+ configuration {}
+end
+
project "bx"
kind "StaticLib"
@@ -32,11 +54,6 @@ project "bx"
defines (userdefines())
- configuration { "Debug" }
- defines {
- "BX_CONFIG_DEBUG=1",
- }
-
configuration { "linux-*" }
buildoptions {
"-fPIC",
@@ -47,6 +64,7 @@ project "bx"
if _OPTIONS["with-amalgamated"] then
excludes {
path.join(BX_DIR, "src/allocator.cpp"),
+ path.join(BX_DIR, "src/bounds.cpp"),
path.join(BX_DIR, "src/bx.cpp"),
path.join(BX_DIR, "src/commandline.cpp"),
path.join(BX_DIR, "src/crtnone.cpp"),
@@ -74,4 +92,14 @@ project "bx"
}
end
+ configuration { "Debug" }
+ defines {
+ "BX_CONFIG_DEBUG=1",
+ }
+
+ configuration { "Release" }
+ defines {
+ "BX_CONFIG_DEBUG=0",
+ }
+
configuration {}