Branimir Karadžić 8 years ago
parent
commit
ea52cda470
1 changed files with 11 additions and 3 deletions
  1. 11 3
      scripts/genie.lua

+ 11 - 3
scripts/genie.lua

@@ -43,6 +43,11 @@ newoption {
 	description = "Enable building tools.",
 }
 
+newoption {
+	trigger = "with-combined-examples",
+	description = "Enable building examples (combined as single executable).",
+}
+
 newoption {
 	trigger = "with-examples",
 	description = "Enable building examples.",
@@ -416,15 +421,18 @@ if _OPTIONS["with-tools"] then
 	dofile(path.join(BIMG_DIR, "scripts/bimg_encode.lua"))
 end
 
-if _OPTIONS["with-examples"] or _OPTIONS["with-tools"] then
+if _OPTIONS["with-examples"]
+or _OPTIONS["with-combined-examples"]
+or _OPTIONS["with-tools"] then
 	group "examples"
 	dofile "example-common.lua"
 end
 
-if _OPTIONS["with-examples"] then
+if _OPTIONS["with-examples"]
+or _OPTIONS["with-combined-examples"] then
 	group "examples"
 
-	exampleProject(false
+	exampleProject(_OPTIONS["with-combined-examples"]
 		, "00-helloworld"
 		, "01-cubes"
 		, "02-metaballs"