mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
6d01f694ab
We want the ability to read data from any moz.build file without needing a full build configuration (running configure). This will enable tools to consume metadata by merely having a copy of the source code and nothing more. This commit creates the EmptyConfig object. It is a config object that - as its name implies - is empty. It will be used for reading moz.build files in "no config" mode. Many moz.build files make assumptions that variables in CONFIG are defined and that they are strings. We create the EmptyValue type that behaves like an empty unicode string. Since moz.build files also do some type checking, we carve an exemption for EmptyValue, just like we do for None. We add a test to verify that reading moz.build files in "no config" mode works. This required some minor changes to existing moz.build files to make them work in the new execution mode. --HG-- extra : rebase_source : f701417f83dfa4e196e39182f8d0a6fea46c6fbb extra : source : af07351bf2d6e85293ae3edf0fe4ae6cbc0ce246 |
||
---|---|---|
.. | ||
makefiles/autodeps | ||
ref-simple | ||
src-simple | ||
chrome.manifest.flat | ||
test_mozbuild_reading.py | ||
test.manifest.flat | ||
test.manifest.jar | ||
test.manifest.symlink | ||
unit-expandlibs.py | ||
unit-mozunit.py | ||
unit-nsinstall.py | ||
unit-printprereleasesuffix.py | ||
unitMozZipFile.py |