From 60959b08e532c0c61d0c5c89507a983595079df1 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 14 Jul 2020 20:28:06 +0430 Subject: [PATCH] [meson] execute find_program('gen-ragel-artifacts.py') only once should rename the script also --- src/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meson.build b/src/meson.build index 2f247277d..6da8e839b 100644 --- a/src/meson.build +++ b/src/meson.build @@ -292,14 +292,14 @@ ragel = find_program('ragel', required: false) if not ragel.found() warning('You have to install ragel if you are going to develop HarfBuzz itself') else + ragel_helper = find_program('gen-ragel-artifacts.py') foreach rl : hb_base_ragel_sources hh = rl.split('.')[0] + '.hh' custom_target('@0@'.format(hh), build_by_default: true, input: rl, output: hh, - command: [find_program('gen-ragel-artifacts.py'), - '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'], + command: [ragel_helper, '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'], ) endforeach endif