mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Added defines argument for bgfx project script.
This commit is contained in:
parent
8cbc06e7bf
commit
c85e1cc66f
2 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
-- License: http://www.opensource.org/licenses/BSD-2-Clause
|
||||
--
|
||||
|
||||
function bgfxProject(_name, _uuid, _kind)
|
||||
function bgfxProject(_name, _uuid, _kind, _defines)
|
||||
|
||||
project ("bgfx" .. _name)
|
||||
uuid (_uuid)
|
||||
|
@ -26,6 +26,7 @@ function bgfxProject(_name, _uuid, _kind)
|
|||
configuration { "Debug" }
|
||||
defines {
|
||||
"BGFX_CONFIG_DEBUG=1",
|
||||
_defines,
|
||||
}
|
||||
|
||||
configuration { "android*" }
|
||||
|
|
|
@ -156,8 +156,8 @@ end
|
|||
|
||||
dofile "bgfx.lua"
|
||||
dofile "example-common.lua"
|
||||
bgfxProject("", "2dc7fd80-ed76-11e0-be50-0800200c9a66", "StaticLib")
|
||||
bgfxProject("-shared-lib", "09986168-e9d9-11e3-9c8e-f2aef940a72a", "SharedLib")
|
||||
bgfxProject("", "2dc7fd80-ed76-11e0-be50-0800200c9a66", "StaticLib", {})
|
||||
bgfxProject("-shared-lib", "09986168-e9d9-11e3-9c8e-f2aef940a72a", "SharedLib", {})
|
||||
exampleProject("00-helloworld", "ff2c8450-ebf4-11e0-9572-0800200c9a66")
|
||||
exampleProject("01-cubes", "fec3bc94-e1e5-11e1-9c59-c7eeec2c1c51")
|
||||
exampleProject("02-metaballs", "413b2cb4-f7db-11e1-bf5f-a716de6a022f")
|
||||
|
|
Loading…
Reference in a new issue