Browse Source

Fixed project groups.

Branimir Karadžić 4 years ago
parent
commit
00df353f0b
1 changed files with 7 additions and 8 deletions
  1. 7 8
      scripts/genie.lua

+ 7 - 8
scripts/genie.lua

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