diff options
Diffstat (limited to 'core/src/demo/xmake.lua')
| -rw-r--r-- | core/src/demo/xmake.lua | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index a45c82693..f519dd88a 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -70,20 +70,21 @@ target("demo") before_installcmd(function (target, batchcmds, opt) -- we need to avoid some old files interfering with xmake's module import. + local package = opt.package if target:is_plat("windows") then - batchcmds:rmdir("actions") - batchcmds:rmdir("core") - batchcmds:rmdir("includes") - batchcmds:rmdir("languages") - batchcmds:rmdir("modules") - batchcmds:rmdir("platforms") - batchcmds:rmdir("plugins") - batchcmds:rmdir("repository") - batchcmds:rmdir("rules") - batchcmds:rmdir("templates") - batchcmds:rmdir("scripts") - batchcmds:rmdir("themes") - batchcmds:rmdir("toolchains") + batchcmds:rmdir(package:installdir("actions")) + batchcmds:rmdir(package:installdir("core")) + batchcmds:rmdir(package:installdir("includes")) + batchcmds:rmdir(package:installdir("languages")) + batchcmds:rmdir(package:installdir("modules")) + batchcmds:rmdir(package:installdir("platforms")) + batchcmds:rmdir(package:installdir("plugins")) + batchcmds:rmdir(package:installdir("repository")) + batchcmds:rmdir(package:installdir("rules")) + batchcmds:rmdir(package:installdir("templates")) + batchcmds:rmdir(package:installdir("scripts")) + batchcmds:rmdir(package:installdir("themes")) + batchcmds:rmdir(package:installdir("toolchains")) end end) |
