Branimir Karadžić 9 lat temu
rodzic
commit
3e0767cecc
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5 4
      scripts/genie.lua

+ 5 - 4
scripts/genie.lua

@@ -360,13 +360,14 @@ end
 
 dofile "bgfx.lua"
 
--- Always build 'example-common' because 'texturev' uses it as well.
-group "examples"
-dofile "example-common.lua"
-
 group "libs"
 bgfxProject("", "StaticLib", {})
 
+if _OPTIONS["with-examples"] or _OPTIONS["with-tools"] then
+	group "examples"
+	dofile "example-common.lua"
+end
+
 if _OPTIONS["with-examples"] then
 	group "examples"
 	exampleProject("00-helloworld")