summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/scripts/bx.lua
diff options
context:
space:
mode:
author Miodrag Milanović <mmicko@gmail.com>2023-01-05 15:32:40 +0100
committer GitHub <noreply@github.com>2023-01-05 09:32:40 -0500
commit812e6094f47bb8d1da5a6b421aa4c724cf2035c0 (patch)
tree0f5bab2fe9393d1f629e9bf63e76cecca74ec0c9 /3rdparty/bx/scripts/bx.lua
parent4a1b41854bba8fc2567906b88bab8ca81e75d187 (diff)
Update BGFX, BX and BIMG (#10789)
* Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433 Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
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 {}