2
0
Эх сурвалжийг харах

Added defines argument for bgfx project script.

Branimir Karadžić 11 жил өмнө
parent
commit
c85e1cc66f

+ 2 - 1
premake/bgfx.lua

@@ -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*" }

+ 2 - 2
premake/premake4.lua

@@ -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")