Allow to disable example building
This commit is contained in:
parent
057eb1b350
commit
d783418a63
|
|
@ -1,5 +1,3 @@
|
||||||
target("DeferredShading")
|
target("DeferredShading")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraGraphics")
|
add_deps("NazaraGraphics")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
target("DopplerEffect")
|
target("DopplerEffect")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraAudio", "NazaraPlatform")
|
add_deps("NazaraAudio", "NazaraPlatform")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
target("GraphicsTest")
|
target("GraphicsTest")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraGraphics")
|
add_deps("NazaraGraphics")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
target("PBR")
|
target("PBR")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraGraphics")
|
add_deps("NazaraGraphics")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
target("Physics2DDemo")
|
target("Physics2DDemo")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraGraphics", "NazaraPhysics2D")
|
add_deps("NazaraGraphics", "NazaraPhysics2D")
|
||||||
add_packages("entt")
|
add_packages("entt")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
target("PhysicsDemo")
|
target("PhysicsDemo")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraGraphics", "NazaraPhysics3D")
|
add_deps("NazaraGraphics", "NazaraPhysics3D")
|
||||||
add_packages("entt")
|
add_packages("entt")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
target("PlayMusic")
|
target("PlayMusic")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraAudio")
|
add_deps("NazaraAudio")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
target("RenderTest")
|
target("RenderTest")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraRenderer")
|
add_deps("NazaraRenderer")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
target("Std140Debug")
|
target("Std140Debug")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraOpenGLRenderer")
|
add_deps("NazaraOpenGLRenderer")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
target("Tut00_EmptyProject")
|
target("Tut00_EmptyProject")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraAudio", "NazaraGraphics", "NazaraNetwork", "NazaraPhysics2D", "NazaraPhysics3D", "NazaraRenderer", "NazaraUtility")
|
add_deps("NazaraAudio", "NazaraGraphics", "NazaraNetwork", "NazaraPhysics2D", "NazaraPhysics3D", "NazaraRenderer", "NazaraUtility")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
target("Tut01_HelloWorld")
|
target("Tut01_HelloWorld")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraGraphics")
|
add_deps("NazaraGraphics")
|
||||||
add_packages("entt")
|
add_packages("entt")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
target("Tut02_Events")
|
target("Tut02_Events")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraGraphics")
|
add_deps("NazaraGraphics")
|
||||||
add_packages("entt")
|
add_packages("entt")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
target("WidgetDemo")
|
target("WidgetDemo")
|
||||||
set_group("Examples")
|
|
||||||
set_kind("binary")
|
|
||||||
add_deps("NazaraGraphics", "NazaraPhysics3D", "NazaraWidgets")
|
add_deps("NazaraGraphics", "NazaraPhysics3D", "NazaraWidgets")
|
||||||
add_packages("entt")
|
add_packages("entt")
|
||||||
add_files("main.cpp")
|
add_files("main.cpp")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
option("examples")
|
||||||
|
set_default(true)
|
||||||
|
set_showmenu(true)
|
||||||
|
set_description("Build examples")
|
||||||
|
|
||||||
|
option_end()
|
||||||
|
|
||||||
|
if has_config("examples") then
|
||||||
|
-- Common config
|
||||||
|
set_group("Examples")
|
||||||
|
set_kind("binary")
|
||||||
|
|
||||||
|
includes("*/xmake.lua")
|
||||||
|
end
|
||||||
Loading…
Reference in New Issue