mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Allow user define BX_CONFIG_*
This commit is contained in:
committed by
Бранимир Караџић
parent
4e0267fae7
commit
7bf14f0bac
@@ -3,6 +3,18 @@
|
||||
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
|
||||
--
|
||||
|
||||
local function userdefines()
|
||||
local defines = {}
|
||||
local BX_CONFIG = os.getenv("BX_CONFIG")
|
||||
if BX_CONFIG then
|
||||
for def in BX_CONFIG:gmatch "[^%s:]+" do
|
||||
table.insert(defines, "BX_CONFIG_" .. def)
|
||||
end
|
||||
end
|
||||
|
||||
return defines
|
||||
end
|
||||
|
||||
project "bx"
|
||||
kind "StaticLib"
|
||||
|
||||
@@ -18,6 +30,8 @@ project "bx"
|
||||
path.join(BX_DIR, "scripts/**.natvis"),
|
||||
}
|
||||
|
||||
defines (userdefines())
|
||||
|
||||
configuration { "Debug" }
|
||||
defines {
|
||||
"BX_CONFIG_DEBUG=1",
|
||||
|
||||
Reference in New Issue
Block a user