mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 23:15:38 +00:00
Bug 1604557 - use GeneratedFile template in media/libdav1d/; r=padenot
The template is slightly nicer and involves a little less repetition. Differential Revision: https://phabricator.services.mozilla.com/D57490 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
80b40a0ec0
commit
705e153788
@ -137,29 +137,28 @@ bitdepth_basenames = [
|
||||
'recon_tmpl.c'
|
||||
]
|
||||
|
||||
GENERATED_FILES += [
|
||||
'16bd_%s' % p for p in bitdepth_basenames
|
||||
]
|
||||
generated_files = []
|
||||
|
||||
for f in bitdepth_basenames:
|
||||
a = GENERATED_FILES['16bd_%s' % f]
|
||||
a.script = 'generate_source.py:add_define'
|
||||
a.inputs = [relative_path + f]
|
||||
a.flags = ['BITDEPTH', '16']
|
||||
file_bd16 = '16bd_%s' % f
|
||||
file_bd8 = '8bd_%s' % f
|
||||
|
||||
GENERATED_FILES += [
|
||||
'8bd_%s' % p for p in bitdepth_basenames
|
||||
]
|
||||
GeneratedFile(file_bd16,
|
||||
script='generate_source.py',
|
||||
entry_point='add_define',
|
||||
inputs=[relative_path + f],
|
||||
flags=['BITDEPTH', '16'])
|
||||
GeneratedFile(file_bd8,
|
||||
script='generate_source.py',
|
||||
entry_point='add_define',
|
||||
inputs=[relative_path + f],
|
||||
flags=['BITDEPTH', '8'])
|
||||
|
||||
for f in bitdepth_basenames:
|
||||
a = GENERATED_FILES['8bd_%s' % f]
|
||||
a.script = 'generate_source.py:add_define'
|
||||
a.inputs = [relative_path + f]
|
||||
a.flags = ['BITDEPTH', '8']
|
||||
generated_files += [file_bd16, file_bd8]
|
||||
|
||||
SOURCES += [
|
||||
'!%s' % p for p in GENERATED_FILES if p.endswith('.c')
|
||||
]
|
||||
for p in generated_files:
|
||||
if p.endswith('.c'):
|
||||
SOURCES += ['!%s' % p]
|
||||
|
||||
EXPORTS.dav1d.src += [
|
||||
'../../third_party/dav1d/src/cdef.h',
|
||||
|
Loading…
x
Reference in New Issue
Block a user