From ea52cda47071f1891659e8da358b2bd9ae7282bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 25 Jun 2017 22:54:17 -0700 Subject: [PATCH] Cleanup. --- scripts/genie.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/genie.lua b/scripts/genie.lua index 98027bd4a..c954b88aa 100644 --- a/scripts/genie.lua +++ b/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"