Meson: Fix srcdir pointing to root source dir instead of current subdir

This commit is contained in:
Xavier Claessens 2018-12-08 12:49:20 -05:00
parent 22f3ecdb12
commit ed5f23d69a
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
fuzzer_cargs = [ fuzzer_cargs = [
'-DSRCDIR="@0@"'.format(meson.source_root()), '-DSRCDIR="@0@"'.format(meson.current_source_dir()),
'-DTEST_RUN', '-DTEST_RUN',
] ]

View File

@ -9,7 +9,7 @@ psl_ascii_dafsa = custom_target('psl_ascii.dafsa',
command : [python, psl_make_dafsa, '--output-format=binary', '--encoding=ascii', '@INPUT@', '@OUTPUT@']) command : [python, psl_make_dafsa, '--output-format=binary', '--encoding=ascii', '@INPUT@', '@OUTPUT@'])
tests_cargs = [ tests_cargs = [
'-DSRCDIR="@0@"'.format(meson.source_root()), '-DSRCDIR="@0@"'.format(meson.current_source_dir()),
'-DPSL_FILE="@0@"'.format(psl_file), '-DPSL_FILE="@0@"'.format(psl_file),
'-DPSL_TESTFILE="@0@"'.format(psl_test_file), '-DPSL_TESTFILE="@0@"'.format(psl_test_file),
'-DPSL_DAFSA="@0@"'.format(psl_dafsa.full_path()), '-DPSL_DAFSA="@0@"'.format(psl_dafsa.full_path()),