Bug 1304131 - list xpidl.stub as the first output for header.py; r?gps
Since xpidllex.py and xpidlyacc.py are created deep in the
other-licenses/ply code, we can't easily pass in our FileAvoidWrite
handle from the mozbuild action. As a result, when ply writes out
xpidllex.py, the mozbuild action overwrites the contents of the file
with a new 0-length xpidllex.py. This causes future xpidl invocations to
write out a new xpidllex.py rather than using the pre-built one.
MozReview-Commit-ID: NOC1Wr3MZO
--- a/xpcom/idl-parser/xpidl/moz.build
+++ b/xpcom/idl-parser/xpidl/moz.build
@@ -4,20 +4,20 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
PYTHON_UNIT_TESTS += [
'runtests.py',
]
GENERATED_FILES += [
- ('xpidllex.py', 'xpidlyacc.py'),
+ ('xpidl.stub', 'xpidllex.py', 'xpidlyacc.py'),
]
-GENERATED_FILES[('xpidllex.py', 'xpidlyacc.py')].script = 'header.py:main'
+GENERATED_FILES[('xpidl.stub', 'xpidllex.py', 'xpidlyacc.py')].script = 'header.py:main'
SDK_FILES.bin += [
'!xpidllex.py',
'!xpidlyacc.py',
'header.py',
'typelib.py',
'xpidl.py',
]