diff options
| author | ruki <[email protected]> | 2023-11-16 23:08:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-16 23:08:28 +0800 |
| commit | a40a02042b1020d3e35db9bc24249ade30df5fb0 (patch) | |
| tree | d8ac35e254134266feacbcdd851bff2aeec18b9b /core/src | |
| parent | 41de52de7a82e4ed8ef7e0b86ebed344e69820ea (diff) | |
add installfiles in xmake.lua
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/demo/xmake.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index fa290a2a9..b13415931 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -50,6 +50,21 @@ target("demo") end end + -- add install files + if is_plat("windows") then + add_installfiles("$(projectdir)/../(*.md)") + add_installfiles("$(projectdir)/../(xmake/**.lua)") + add_installfiles("$(projectdir)/../(xmake/scripts/**)") + add_installfiles("$(projectdir)/../(xmake/templates/**)") + add_installfiles("$(projectdir)/../scripts/xrepo.bat") + add_installfiles("$(projectdir)/../scripts/xrepo.ps1") + else + add_installfiles("$(projectdir)/../(xmake/**.lua)", {prefixdir = "share"}) + add_installfiles("$(projectdir)/../(xmake/scripts/**)", {prefixdir = "share"}) + add_installfiles("$(projectdir)/../(xmake/templates/**)", {prefixdir = "share"}) + 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 "")) |
