diff options
author | 2023-01-05 15:32:40 +0100 | |
---|---|---|
committer | 2023-01-05 09:32:40 -0500 | |
commit | 812e6094f47bb8d1da5a6b421aa4c724cf2035c0 (patch) | |
tree | 0f5bab2fe9393d1f629e9bf63e76cecca74ec0c9 /3rdparty/bx/scripts/genie.lua | |
parent | 4a1b41854bba8fc2567906b88bab8ca81e75d187 (diff) |
Update BGFX, BX and BIMG (#10789)
* Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
Diffstat (limited to '3rdparty/bx/scripts/genie.lua')
-rw-r--r-- | 3rdparty/bx/scripts/genie.lua | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/3rdparty/bx/scripts/genie.lua b/3rdparty/bx/scripts/genie.lua index 8801b224ad2..5a7b3281bd9 100644 --- a/3rdparty/bx/scripts/genie.lua +++ b/3rdparty/bx/scripts/genie.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 -- newoption { @@ -51,19 +51,21 @@ project "bx.test" } includedirs { - path.join(BX_DIR, "include"), BX_THIRD_PARTY_DIR, } + defines { + "CATCH_AMALGAMATED_CUSTOM_MAIN", + } + files { + path.join(BX_DIR, "3rdparty/catch/catch_amalgamated.cpp"), path.join(BX_DIR, "tests/*_test.cpp"), path.join(BX_DIR, "tests/*.h"), path.join(BX_DIR, "tests/dbg.*"), } - links { - "bx", - } + using_bx() configuration { "vs* or mingw*" } links { @@ -131,6 +133,16 @@ project "bx.bench" "Cocoa.framework", } + configuration { "Debug" } + defines { + "BX_CONFIG_DEBUG=1", + } + + configuration { "Release" } + defines { + "BX_CONFIG_DEBUG=0", + } + configuration {} strip() |