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 committed 2024-09-21 23:39:10 +02:00
1 parent ff47926d6a
commit 71f2220991
7 files changed
+20 -21

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
defaults_js = custom_target('defaults.js',
input: join_paths(source_root, 'player', 'javascript', 'defaults.js'),
input: 'defaults.js',
output: 'defaults.js.inc',
command: [file2string, '@INPUT@', '@OUTPUT@'],
command: [file2string, '@INPUT@', '@OUTPUT@', '@SOURCE_ROOT@'],
)
sources += defaults_js