summaryrefslogtreecommitdiff
path: root/core/src/demo/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/demo/xmake.lua')
-rw-r--r--core/src/demo/xmake.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua
index 02466b31f..a45c82693 100644
--- a/core/src/demo/xmake.lua
+++ b/core/src/demo/xmake.lua
@@ -68,3 +68,22 @@ target("demo")
add_installfiles("$(projectdir)/../scripts/xrepo.sh", {prefixdir = "bin", filename = "xrepo"})
end
+ before_installcmd(function (target, batchcmds, opt)
+ -- we need to avoid some old files interfering with xmake's module import.
+ 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")
+ end
+ end)
+