diff options
| author | ruki <[email protected]> | 2026-06-30 23:09:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-07-07 23:04:45 +0800 |
| commit | 4e518789d0509056bbdcd9165af03ea8bbfebfb8 (patch) | |
| tree | 4b1d1b94a291cd63af8cbda66853acb0af511201 | |
| parent | 65ee93162232d0399a1b9f08701c42bc04f3f9ab (diff) | |
move code styles
| -rw-r--r-- | xmake/plugins/project/vsxmake/vsxmake.lua | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/xmake/plugins/project/vsxmake/vsxmake.lua b/xmake/plugins/project/vsxmake/vsxmake.lua index 5cab05c54..99584e789 100644 --- a/xmake/plugins/project/vsxmake/vsxmake.lua +++ b/xmake/plugins/project/vsxmake/vsxmake.lua @@ -39,6 +39,21 @@ local template_targets = path.join(template_root, "Xmake.Custom.targets") local template_items = path.join(template_root, "Xmake.Custom.items") local template_itemfil = path.join(template_root, "Xmake.Custom.items.filters") +-- the source file extensions natively supported by the vsxmake project, keyed by the template import name +-- the `filenone` group collects everything else (e.g. files added by add_files but handled by a custom rule) +local _source_exts = { + filec = {".c"}, + filecxx = {".cpp", ".cc", ".cxx"}, + filempp = {".mpp", ".mxx", ".cppm", ".ixx"}, + filecu = {".cu"}, + fileobj = {".obj", ".o"}, + filerc = {".rc"}, + fileui = {".ui"}, + fileqrc = {".qrc"}, + filets = {".ts"}, + filecs = {".cs"} +} + function _filter_files(files, includeexts, excludeexts) local positive = not excludeexts local extset = hashset.from(positive and includeexts or excludeexts) @@ -53,22 +68,6 @@ function _filter_files(files, includeexts, excludeexts) return f end --- the source file extensions natively supported by the vsxmake project, keyed by the template import name --- the `filenone` group collects everything else (e.g. files added by add_files but handled by a custom rule) -local _source_exts = -{ - filec = {".c"} -, filecxx = {".cpp", ".cc", ".cxx"} -, filempp = {".mpp", ".mxx", ".cppm", ".ixx"} -, filecu = {".cu"} -, fileobj = {".obj", ".o"} -, filerc = {".rc"} -, fileui = {".ui"} -, fileqrc = {".qrc"} -, filets = {".ts"} -, filecs = {".cs"} -} - function _buildparams(info, target, default) local function getprop(match, opt) |
