diff options
| -rw-r--r-- | core/src/demo/xmake.lua | 2 | ||||
| -rw-r--r-- | core/src/xmake/engine.c | 3 |
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 |
