diff options
Diffstat (limited to '3rdparty/bgfx/scripts/genie.lua')
-rw-r--r-- | 3rdparty/bgfx/scripts/genie.lua | 87 |
1 files changed, 48 insertions, 39 deletions
diff --git a/3rdparty/bgfx/scripts/genie.lua b/3rdparty/bgfx/scripts/genie.lua index fe21f0eaa14..2e915603fef 100644 --- a/3rdparty/bgfx/scripts/genie.lua +++ b/3rdparty/bgfx/scripts/genie.lua @@ -43,6 +43,11 @@ newoption { description = "Enable building tools.", } +newoption { + trigger = "with-examples", + description = "Enable building examples.", +} + solution "bgfx" configurations { "Debug", @@ -355,48 +360,52 @@ end dofile "bgfx.lua" -group "examples" -dofile "example-common.lua" - group "libs" bgfxProject("", "StaticLib", {}) -group "examples" -exampleProject("00-helloworld") -exampleProject("01-cubes") -exampleProject("02-metaballs") -exampleProject("03-raymarch") -exampleProject("04-mesh") -exampleProject("05-instancing") -exampleProject("06-bump") -exampleProject("07-callback") -exampleProject("08-update") -exampleProject("09-hdr") -exampleProject("10-font") -exampleProject("11-fontsdf") -exampleProject("12-lod") -exampleProject("13-stencil") -exampleProject("14-shadowvolumes") -exampleProject("15-shadowmaps-simple") -exampleProject("16-shadowmaps") -exampleProject("17-drawstress") -exampleProject("18-ibl") -exampleProject("19-oit") -exampleProject("20-nanovg") -exampleProject("21-deferred") -exampleProject("22-windows") -exampleProject("23-vectordisplay") -exampleProject("24-nbody") -exampleProject("26-occlusion") -exampleProject("27-terrain") -exampleProject("28-wireframe") -exampleProject("29-debugdraw") -exampleProject("30-picking") -exampleProject("31-rsm") - --- C99 source doesn't compile under WinRT settings -if not premake.vstudio.iswinrt() then - exampleProject("25-c99") +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") + exampleProject("01-cubes") + exampleProject("02-metaballs") + exampleProject("03-raymarch") + exampleProject("04-mesh") + exampleProject("05-instancing") + exampleProject("06-bump") + exampleProject("07-callback") + exampleProject("08-update") + exampleProject("09-hdr") + exampleProject("10-font") + exampleProject("11-fontsdf") + exampleProject("12-lod") + exampleProject("13-stencil") + exampleProject("14-shadowvolumes") + exampleProject("15-shadowmaps-simple") + exampleProject("16-shadowmaps") + exampleProject("17-drawstress") + exampleProject("18-ibl") + exampleProject("19-oit") + exampleProject("20-nanovg") + exampleProject("21-deferred") + exampleProject("22-windows") + exampleProject("23-vectordisplay") + exampleProject("24-nbody") + exampleProject("26-occlusion") + exampleProject("27-terrain") + exampleProject("28-wireframe") + exampleProject("29-debugdraw") + exampleProject("30-picking") + exampleProject("31-rsm") + + -- C99 source doesn't compile under WinRT settings + if not premake.vstudio.iswinrt() then + exampleProject("25-c99") + end end if _OPTIONS["with-shared-lib"] then |