From 23ba59af617a498bb47efee4f2901befd94c7ed6 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 22 Aug 2024 00:49:52 +0800 Subject: add bin2c xmake.xmz --- core/src/demo/xmake.lua | 2 ++ core/src/xmake/engine.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index f0900402d..92e68aee1 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -98,5 +98,7 @@ target("demo") os.tryrm(archivefile) local rootdir = path.normalize(path.join(os.projectdir(), "..", "xmake")) archive(archivefile, rootdir, {recurse = true, curdir = rootdir}) + target:add("files", archivefile) + target:add("defines", "XM_EMBED_ENABLE=1") end end) diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index 6ca1d0899..524091adc 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -49,6 +49,9 @@ #ifdef TB_CONFIG_OS_HAIKU # include #endif +#ifdef XM_EMBED_ENABLE +# include "xmake.xmz.h" +#endif /* ////////////////////////////////////////////////////////////////////////////////////// * macros -- cgit v1.3.1