meson: use relative file paths for file2string

This fixes "Generated from" comments to not include local source path in
generated files.
This commit is contained in:
Kacper Michajłow
2024-09-21 19:21:02 +02:00
parent ff47926d6a
commit 71f2220991
7 changed files with 20 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
osd_font = custom_target('osd_font.otf',
input: join_paths(source_root, 'sub', 'osd_font.otf'),
input: 'osd_font.otf',
output: 'osd_font.otf.inc',
command: [file2string, '@INPUT@', '@OUTPUT@'],
command: [file2string, '@INPUT@', '@OUTPUT@', '@SOURCE_ROOT@'],
)
sources += osd_font