diff options
| author | ruki <[email protected]> | 2023-11-16 23:15:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-16 23:15:11 +0800 |
| commit | c2e703fa10554c03d9d5a5121788a7beb8a1ad57 (patch) | |
| tree | b44f92c91c316784d67297f3413e891dd3b42371 | |
| parent | a40a02042b1020d3e35db9bc24249ade30df5fb0 (diff) | |
improve xmake.lua
| -rw-r--r-- | core/src/demo/xmake.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index b13415931..c52a5f4eb 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -10,6 +10,8 @@ target("demo") -- make as a binary set_kind("binary") + set_basename("xmake") + set_targetdir("$(buildir)") -- add definitions add_defines("__tb_prefix__=\"xmake\"") @@ -52,7 +54,8 @@ target("demo") -- add install files if is_plat("windows") then - add_installfiles("$(projectdir)/../(*.md)") + add_installfiles("$(projectdir)/../(LICENSE.md)") + add_installfiles("$(projectdir)/../(NOTICE.md)") add_installfiles("$(projectdir)/../(xmake/**.lua)") add_installfiles("$(projectdir)/../(xmake/scripts/**)") add_installfiles("$(projectdir)/../(xmake/templates/**)") @@ -65,8 +68,3 @@ target("demo") add_installfiles("$(projectdir)/../scripts/xrepo.sh", {prefixdir = "bin"}) -- TODO rename xrepo.sh to xrepo end - -- copy target to the build directory - after_build(function (target) - os.cp(target:targetfile(), "$(buildir)/xmake" .. (is_plat("windows") and ".exe" or "")) - end) - |
