Skip to content

Commit 8e136f3

Browse files
committed
update xmake version
1 parent 1a9d573 commit 8e136f3

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/lni/main.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@
2323
*/
2424
extern "C"{
2525
#include <xmake/xmake.h>
26+
27+
extern tb_byte_t const _binary_luafiles_xmz_start[];
28+
extern tb_byte_t const _binary_luafiles_xmz_end[];
2629
}
2730
#include <LIEF/LIEF.hpp>
2831

29-
/* //////////////////////////////////////////////////////////////////////////////////////
30-
* private implemention
31-
*/
32-
33-
static tb_byte_t const g_luafiles_data[] = {
34-
#include "luafiles.xmz.h"
35-
};
36-
3732
static tb_int_t lni_test_hello(lua_State* lua) {
3833
lua_pushliteral(lua, "hello xmake!");
3934
return 1;
@@ -222,7 +217,8 @@ static tb_void_t lni_initalizer(xm_engine_ref_t engine, lua_State* lua)
222217
, {tb_null, tb_null}
223218
};
224219
xm_engine_register(engine, "macho", lni_macho_funcs);
225-
xm_engine_add_embedfiles(engine, g_luafiles_data, sizeof(g_luafiles_data));
220+
xm_engine_add_embedfiles(engine, _binary_luafiles_xmz_start,
221+
(tb_size_t)(_binary_luafiles_xmz_end - _binary_luafiles_xmz_start));
226222
}
227223

228224
/* //////////////////////////////////////////////////////////////////////////////////////

xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set_xmakever("2.9.9")
1+
set_xmakever("3.0.8")
22

33
add_rules("mode.debug", "mode.release")
44
add_requires("libxmake", "lief 0.11.5")

0 commit comments

Comments
 (0)