summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorusernameak <[email protected]>2026-06-06 21:07:10 +0200
committerruki <[email protected]>2026-07-07 23:04:45 +0800
commit147fdfa379133d0d7d7f075ac9b4905401ff7126 (patch)
tree0f1d9e15d3093d9dab799a699ed6549684b9e5be /xmake/plugins
parent83369f6bea88b1820329d2a2addbbf640aa792aa (diff)
vsxmake: custom source types in solution explorer
This allows seeing source files added by add_files but not directly supported by xmake (e.g. when support is provided by a custom rule)
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/project/vsxmake/vsxmake.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/plugins/project/vsxmake/vsxmake.lua b/xmake/plugins/project/vsxmake/vsxmake.lua
index cd61dfcbf..6084d6b84 100644
--- a/xmake/plugins/project/vsxmake/vsxmake.lua
+++ b/xmake/plugins/project/vsxmake/vsxmake.lua
@@ -150,6 +150,12 @@ function _buildparams(info, target, default)
elseif args.filecs then -- for c#
local files = info._targets[target].sourcefiles
table.insert(r, _filter_files(files, {".cs"}))
+ elseif args.filenone then -- for custom build steps
+ local files = info._targets[target].sourcefiles
+ table.insert(r, _filter_files(files, nil, {
+ ".c", ".cpp", ".cc", ".cxx", ".mpp", ".mxx", ".cppm", ".ixx",
+ ".cu", ".obj", ".o", ".rc", ".ui", ".qrc", ".ts", ".cs"
+ }))
elseif args.incc then
local files = table.join(info._targets[target].headerfiles or {}, info._targets[target].extrafiles)
table.insert(r, _filter_files(files, nil, {".natvis"}))