mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fixed assert macros, and improved error handling.
This commit is contained in:
@@ -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",
|
||||
@@ -75,4 +92,14 @@ project "bx"
|
||||
}
|
||||
end
|
||||
|
||||
configuration { "Debug" }
|
||||
defines {
|
||||
"BX_CONFIG_DEBUG=1",
|
||||
}
|
||||
|
||||
configuration { "Release" }
|
||||
defines {
|
||||
"BX_CONFIG_DEBUG=0",
|
||||
}
|
||||
|
||||
configuration {}
|
||||
|
||||
Reference in New Issue
Block a user