diff --git a/xmake.lua b/xmake.lua index e831018..77c8e2f 100644 --- a/xmake.lua +++ b/xmake.lua @@ -21,7 +21,7 @@ add_rules("mode.debug", "mode.release") -- ============================================== option("examples") - set_default(true) + set_default(false) set_showmenu(true) set_description("Build example programs") option_end() @@ -84,7 +84,7 @@ includes("xmake/engine.lua") define_extra2d_engine() -- 示例程序目标(作为子项目) -if has_config("examples") then +if is_config("examples","true") then includes("examples/hello_world", {rootdir = "examples/hello_world"}) includes("examples/spatial_index_demo", {rootdir = "examples/spatial_index_demo"}) includes("examples/collision_demo", {rootdir = "examples/collision_demo"})