summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-22 00:49:52 +0800
committerruki <[email protected]>2024-08-22 00:49:52 +0800
commit23ba59af617a498bb47efee4f2901befd94c7ed6 (patch)
treea42b5496c831e0f066f6a82349d87d713edf7416 /core/src
parent906fa7a6d77e20190ebe943361e53c595237e52e (diff)
add bin2c xmake.xmz
Diffstat (limited to 'core/src')
-rw-r--r--core/src/demo/xmake.lua2
-rw-r--r--core/src/xmake/engine.c3
2 files changed, 5 insertions, 0 deletions
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 <image.h>
#endif
+#ifdef XM_EMBED_ENABLE
+# include "xmake.xmz.h"
+#endif
/* //////////////////////////////////////////////////////////////////////////////////////
* macros