From c85e1cc66ff5af7cb3a6ca1dce4e63b5b2c2e459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 21 Aug 2014 21:02:16 -0700 Subject: [PATCH] Added defines argument for bgfx project script. --- premake/bgfx.lua | 3 ++- premake/premake4.lua | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/premake/bgfx.lua b/premake/bgfx.lua index 5b5682bd..755fd703 100644 --- a/premake/bgfx.lua +++ b/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*" } diff --git a/premake/premake4.lua b/premake/premake4.lua index 58dea712..ddbf4654 100644 --- a/premake/premake4.lua +++ b/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")