Hi all,
set_sources_assignment_filter() is something of a misfeature in GN (ideally you wouldn't use it), but it's unlikely Chromium in particular will ever get around to actually using it, and the feature is in fact kinda handy for simplifying things.
However, it can have a weird side effect, in that if you define the filter list such that you filter on directory names (e.g., "win/*"), you can end up filtering out stuff you might not have wanted to filter out (e.g., everything if your checkout lives under /src/win/, or if you have a build output directory called //out/win).
I haven't been able to think of a reason you'd want sources_assignment_filter to apply to path components outside of the source tree, or for the components in the output directory, so what if we just changed the code to ignore those?
Does anyone see a downside to such a change, apart from it being non-backwards-compatible?
-- Dirk