meson: use meson.current_source_dir() instead of @CURRENT_SOURCE_DIR@

@CURRENT_SOURCE_DIR@ is not listed as a valid string substitution
for custom targets in the Meson reference, and in practice
it does not get substituted when using the vs2019 backend.
This commit is contained in:
Myaamori 2020-11-24 01:29:24 +00:00
parent b2e7bb2a7c
commit 5f32fdff11

View File

@ -299,7 +299,7 @@ else
build_by_default: true, build_by_default: true,
input: rl, input: rl,
output: hh, output: hh,
command: [ragel_helper, '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'], command: [ragel_helper, '@OUTPUT@', meson.current_source_dir(), '@INPUT@'],
) )
endforeach endforeach
endif endif
@ -311,7 +311,7 @@ custom_target('harfbuzz.cc',
hb_graphite2_sources + hb_uniscribe_sources + hb_gdi_sources + hb_graphite2_sources + hb_uniscribe_sources + hb_gdi_sources +
hb_directwrite_sources + hb_coretext_sources, hb_directwrite_sources + hb_coretext_sources,
command: [find_program('gen-harfbuzzcc.py'), command: [find_program('gen-harfbuzzcc.py'),
'@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'], '@OUTPUT@', meson.current_source_dir(), '@INPUT@'],
) )
incsrc = include_directories('.') incsrc = include_directories('.')