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