From bcddad573a2317aaa9f831bdd87ec9e4bceb8a2a Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Wed, 11 Feb 2026 16:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=A4=BA=E4=BE=8B=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=9A=84=E6=9D=A1=E4=BB=B6=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"})