summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vsxmake/vsxmake.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-17 18:01:47 +0800
committerOpportunityLiu <[email protected]>2019-07-19 11:48:32 +0800
commit5f0af08bc708259905d8bb5921fbe0b354b56f5c (patch)
tree4547d8c595da4ad856bee0d5154e0015773830b7 /xmake/plugins/project/vsxmake/vsxmake.lua
parent4aa3db8ef3c5814c4ac5751a53435f6c6e824e66 (diff)
add custom files
Diffstat (limited to 'xmake/plugins/project/vsxmake/vsxmake.lua')
-rw-r--r--xmake/plugins/project/vsxmake/vsxmake.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/plugins/project/vsxmake/vsxmake.lua b/xmake/plugins/project/vsxmake/vsxmake.lua
index cf91eb40e..424d30256 100644
--- a/xmake/plugins/project/vsxmake/vsxmake.lua
+++ b/xmake/plugins/project/vsxmake/vsxmake.lua
@@ -32,6 +32,8 @@ local template_fil = path.join(template_root, "vcxproj.filters", "#target#.vcxpr
local template_usr = path.join(template_root, "#target#.vcxproj.user")
local template_props = path.join(template_root, "Xmake.Custom.props")
local template_targets = path.join(template_root, "Xmake.Custom.targets")
+local template_files = path.join(template_root, "Xmake.Custom.files")
+local template_filefil = path.join(template_root, "Xmake.Custom.files.filters")
function _filter_files(files, exts)
local extset = hashset.from(exts)
@@ -153,6 +155,8 @@ function make(version)
-- add project custom file
_trycp(template_props, proj_dir)
_trycp(template_targets, proj_dir)
+ _trycp(template_files, proj_dir)
+ _trycp(template_filefil, proj_dir)
-- add project user file
_trycp(template_usr, proj_dir, target .. ".vcxproj.user")
end