diff options
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() |