This commit is contained in:
Branimir Karadžić 2017-06-25 22:54:17 -07:00
parent 5badc8545a
commit ea52cda470
1 changed files with 11 additions and 3 deletions

View File

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