diff options
author | 2021-08-10 20:26:34 +0200 | |
---|---|---|
committer | 2021-08-10 20:26:34 +0200 | |
commit | a8514308791e1c69fb4295aa0a55736aaa17b2a9 (patch) | |
tree | 6e169c162ba8ff67d4b89537e7199d8f8f2d7588 /3rdparty/bx/scripts/bx.lua | |
parent | 9be98f7c8f7aee6f8172c322116af0f473228bee (diff) |
Update bx to latest
Diffstat (limited to '3rdparty/bx/scripts/bx.lua')
-rw-r--r-- | 3rdparty/bx/scripts/bx.lua | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/3rdparty/bx/scripts/bx.lua b/3rdparty/bx/scripts/bx.lua index 60f67641362..1e54ac521fc 100644 --- a/3rdparty/bx/scripts/bx.lua +++ b/3rdparty/bx/scripts/bx.lua @@ -1,8 +1,20 @@ -- --- Copyright 2010-2019 Branimir Karadzic. All rights reserved. +-- Copyright 2010-2021 Branimir Karadzic. All rights reserved. -- 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", |