diff options
| author | ruki <[email protected]> | 2017-08-14 11:27:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-08-14 11:29:30 +0800 |
| commit | dba45d143d8aff047da82cbe1a881056e6e4bc00 (patch) | |
| tree | 7b80d5de264c17b538a7c9d0fbb234ded39ac683 /core/src/demo/xmake.lua | |
| parent | 34706ba053dda9dd86902cacf42a6c1878c85234 (diff) | |
merge repo and require codes
Diffstat (limited to 'core/src/demo/xmake.lua')
| -rw-r--r-- | core/src/demo/xmake.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index 40d089f7f..520241669 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -2,7 +2,7 @@ target("demo") -- add deps - add_deps("xmake") + add_deps("sv", "luajit", "xmake") -- make as a binary set_kind("binary") @@ -19,10 +19,6 @@ target("demo") -- add includes directory add_includedirs("$(projectdir)", "$(projectdir)/src", "$(buildir)/luajit") - -- add links and directory - add_links("xmake", "luajit") - add_linkdirs("$(buildir)") - -- link readline if not is_plat("windows") then add_links("readline") @@ -33,9 +29,14 @@ target("demo") -- add the common source files add_files("**.c") + + -- for macosx + if is_plat("macosx") then + add_ldflags("-all_load", "-pagezero_size 10000", "-image_base 100000000") + end -- add the resource files (it will be enabled after publishing new version) if is_plat("windows") then add_files("*.rc") end - + |
