summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vstudio/impl/vsutils.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-06-12 09:05:02 +0800
committerGitHub <[email protected]>2025-06-12 09:05:02 +0800
commitaa951bad4efc83de89bdf82ee9430a89e951fe37 (patch)
tree0ba82c107972174568df774c356fd8881b2e3052 /xmake/plugins/project/vstudio/impl/vsutils.lua
parent773407f7df280a5fc50d2aa6419875297e711bb2 (diff)
parentc02d24431fd3392a19064760f7627738d72b3ef6 (diff)
Merge pull request #6538 from xmake-io/vsxmake
Improve vsxmake generator with namespaces
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vsutils.lua')
-rw-r--r--xmake/plugins/project/vstudio/impl/vsutils.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vsutils.lua b/xmake/plugins/project/vstudio/impl/vsutils.lua
index 9abf7a7b9..265a7c7aa 100644
--- a/xmake/plugins/project/vstudio/impl/vsutils.lua
+++ b/xmake/plugins/project/vstudio/impl/vsutils.lua
@@ -52,3 +52,7 @@ function vsarch(arch)
return arch
end
+-- translate file path (with namespace characters '::', it's invalid path characters on windows)
+function translate_path(filepath)
+ return (filepath:gsub("::", "#"))
+end