Fixed project groups.

This commit is contained in:
Branimir Karadžić 2021-10-26 20:13:30 -07:00
parent 67f462eee8
commit 00df353f0b

View File

@ -500,14 +500,12 @@ function exampleProject(_combined, ...)
end
group "libs"
dofile(path.join(BX_DIR, "scripts/bx.lua"))
dofile(path.join(BIMG_DIR, "scripts/bimg.lua"))
dofile(path.join(BIMG_DIR, "scripts/bimg_decode.lua"))
dofile "bgfx.lua"
group "libs"
local function userdefines()
local defines = {}
local BGFX_CONFIG = os.getenv("BGFX_CONFIG")
@ -524,7 +522,13 @@ BGFX_CONFIG = userdefines()
bgfxProject("", "StaticLib", BGFX_CONFIG)
if _OPTIONS["with-shared-lib"] then
group "libs"
bgfxProject("-shared-lib", "SharedLib", BGFX_CONFIG)
end
if _OPTIONS["with-tools"] then
group "libs"
dofile(path.join(BIMG_DIR, "scripts/bimg_encode.lua"))
end
@ -598,11 +602,6 @@ or _OPTIONS["with-combined-examples"] then
end
end
if _OPTIONS["with-shared-lib"] then
group "libs"
bgfxProject("-shared-lib", "SharedLib", BGFX_CONFIG)
end
if _OPTIONS["with-tools"] then
group "tools"
dofile "shaderc.lua"