зеркало из https://github.com/mozilla/gecko-dev.git
bed3a06f2a
The inputs to scripts for GENERATED_FILES are restricted to filenames only. We have several examples in the tree, however, where a script takes non-filename arguments. For converting those cases to use GENERATED_FILES, we first need to provide some way of "injecting" non-filename arguments into the script. This commit adds a method for doing that, by extending the .script flag on GENERATED_FILES to include an optional method name: f = GENERATED_FILES['foo'] f.script = 'script.py:make_foo' will invoke the make_foo function found in script.py instead of the function named main. |
||
---|---|---|
.. | ||
dumbmake | ||
mozbuild | ||
mozpack | ||
TODO | ||
setup.py |