[meson] execute find_program('gen-ragel-artifacts.py') only once
should rename the script also
This commit is contained in:
parent
5c8e1bd237
commit
60959b08e5
|
@ -292,14 +292,14 @@ ragel = find_program('ragel', required: false)
|
||||||
if not ragel.found()
|
if not ragel.found()
|
||||||
warning('You have to install ragel if you are going to develop HarfBuzz itself')
|
warning('You have to install ragel if you are going to develop HarfBuzz itself')
|
||||||
else
|
else
|
||||||
|
ragel_helper = find_program('gen-ragel-artifacts.py')
|
||||||
foreach rl : hb_base_ragel_sources
|
foreach rl : hb_base_ragel_sources
|
||||||
hh = rl.split('.')[0] + '.hh'
|
hh = rl.split('.')[0] + '.hh'
|
||||||
custom_target('@0@'.format(hh),
|
custom_target('@0@'.format(hh),
|
||||||
build_by_default: true,
|
build_by_default: true,
|
||||||
input: rl,
|
input: rl,
|
||||||
output: hh,
|
output: hh,
|
||||||
command: [find_program('gen-ragel-artifacts.py'),
|
command: [ragel_helper, '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||||
'@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue