Zack Weinberg wrote:
On 2013-11-20 12:37 PM, Benoit Jacob wrote:
Talking about ideas for further extending the impact of
UNIFIED_SOURCES, it seems that the biggest limitation at the moment
is that sources can't be unified between different moz.build's.
Because of that, source directories that consist of many small
sub-directories do not benefit much from UNIFIED_SOURCES at the
moment. I would love to have the ability to declare in a moz.build
that UNIFIED_SOURCES from here downwards, including subdirectories,
are to be unified with each other. Does that sound reasonable?
... Maybe this should be treated as an excuse to reduce directory nesting?
There used to be a limitation that source files had to be in the VPATH.
This limitation obviously does not apply to unified sources (the
compiler will use the -I path to find the source.) so you shouldn't have
a problem setting UNIFIED_SOURCES in a parent moz.build file. Indeed, we
can probably avoid setting VPATH altogether (possibly speeding up make).
--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform