The way that's been discussed to fix this is to have the mozbuild frontend
figure out that if there's a file in EXPORTS, then it must either a) live
on disk, or b) be present in GENERATED_FILES, and do the right thing.  If
neither a) nor b) is true, then it is a configuration error.

The GENERATED_FILES mechanism is pretty clunky at the moment.  One way to
fix this is something like:

with GeneratedFile('...'):
  SCRIPT = 'make.py'
  INPUTS = [...]

This proposal gets rid of some of the duplication we have right now.  It
doesn't address your request for applying the same rule for multiple paths,
though--I'm not sure what a good way to address that would be, since
presumably for different outputs you'd want a different entry point in the
script or different inputs anyway...?

-Nathan

On Sat, Jul 4, 2015 at 1:54 PM, Yonggang Luo <[email protected]> wrote:

> Add this option can make generated files being exported
> And also, we can turning the key of GENERATED_FILES
> to be a list or a regexp for apply same rule for multiple
> paths.
> _______________________________________________
> dev-builds mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-builds
>
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to