make a GeneratedFile template instead of all the boilerplate around GENERATED_FILES
Categories
(Firefox Build System :: General, task, P3)
Tracking
(firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: froydnj, Assigned: rstewart)
References
Details
(Keywords: in-triage)
Attachments
(1 file)
GENERATED_FILES
requires a fair amount of boilerplate:
https://searchfox.org/mozilla-central/source/config/moz.build#59-64
https://searchfox.org/mozilla-central/source/js/src/build/moz.build#32-37
Maybe it would be nicer to have an @template
like:
GeneratedFile(name, script, entry_point="main", flags, ...other arguments...)
and people could just use keyword arguments, and the template would handle a bunch of stuff behind the scenes? Would also be nice for getting rid of the "script.py:entry_point"
convention, which shouldn't really be exposed to the user.
The larger thing to explore here is moving moz.build files to mostly @template
invocations, which would be more compatible with a Starlark-like language.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Here's a decent example of how a template might achieve this: https://searchfox.org/mozilla-central/rev/45f30e1d19bde27bf07e47a0a5dd0962dd27ba18/build/test_templates.mozbuild#8
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Description
•