2016-11-09 20:37:09 +03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
|
|
|
# This exists to paper over differences between gyp's `action` definitions
|
|
|
|
# and moz.build `GENERATED_FILES` semantics.
|
|
|
|
|
|
|
|
import buildconfig
|
2017-06-06 10:59:42 +03:00
|
|
|
import os
|
2016-11-09 20:37:09 +03:00
|
|
|
import subprocess
|
|
|
|
|
|
|
|
def main(output, *inputs):
|
2017-06-06 10:59:42 +03:00
|
|
|
env=dict(os.environ)
|
|
|
|
env['PERL'] = buildconfig.substs['PERL']
|
|
|
|
output.write(subprocess.check_output([buildconfig.substs['PYTHON'],
|
|
|
|
inputs[0], inputs[2]], env=env))
|
2016-11-09 20:37:09 +03:00
|
|
|
return None
|