Open Bug 1179251 Opened 4 years ago Updated 2 years ago

Add a way to set backend config variables from moz.build

Categories

(Firefox Build System :: General, defect)

defect
Not set

Tracking

(firefox42 affected)

Tracking Status
firefox42 --- affected

People

(Reporter: ted, Unassigned)

References

(Blocks 1 open bug)

Details

We should add a way to set backend variables (make variables currently) directly from moz.build. The primary motivation here is bug 1164937--all the package naming stuff is in package-name.mk, so we can't do nice things using them during moz.build processing.

From that bug, my first inclination was something like:
BACKEND_VARIABLES['MOZ_PKG_PLATFORM'] = '{TARGET_OS}-{TARGET_CPU}'.format(CONFIG)

...but we could also consider making it allowable to add entries to the CONFIG dict, so simply:
CONFIG['MOZ_PKG_PLATFORM'] = '{TARGET_OS}-{TARGET_CPU}'.format(CONFIG)

If we did that we'd probably want to restrict it to add-only, rejecting attempts to overwrite existing values.
Alternately, we might just layer this on top of the configure.py work, effectively putting it in configure, but without the pain that that currently involves.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.