Skip to content

Commit

Permalink
enhance add_filegroups to support combining folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Domain committed Jun 1, 2022
1 parent 1191707 commit 480f9ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xmake/plugins/project/vsxmake/getinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,16 @@ function _make_filter(filepath, target, vcxprojdir)
filter = path.normalize(filegroup)
else
-- file tree mode (default)
filter = path.normalize(path.join(filegroup, path.directory(fileitem)))
if filegroup == "" then
filter = path.normalize(path.directory(fileitem))
else
filter = path.normalize(path.join(filegroup, path.directory(fileitem)))
end
end
if filter and filter == '.' then
filter = nil
end
break
return filter
end
end
end
Expand Down

0 comments on commit 480f9ca

Please sign in to comment.