premake-core
premake-core copied to clipboard
vpath does not create <Extensions> line in vcxproj.filters files
What's your question? Is there any way (if there is any) that vpath generates, inside vcxproj.filters, the following line?
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
Anything else we should know? I saw this comment on the source code (vs2010_vcxproj_filters.lua), so I don't know if it is implemented yet. It would be nice to have this line because at least in VS2019 it shows the files in the filters (virtual directories)
--
-- The first portion of the filters file assigns unique IDs to each
-- directory or virtual group. Would be cool if we could automatically
-- map vpaths like "**.h" to an <Extensions>h</Extensions> element.
--
There isn't any way to do that currently.
Hmm…I guess we'd need to path.getbasename() on the virtual path and see if ends with "*" or "**", and then roll those up?