mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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
|
||||
|
||||
@@ -3,9 +3,9 @@ lua_files = ['defaults.lua', 'assdraw.lua', 'options.lua', 'osc.lua',
|
||||
'input.lua', 'fzy.lua', 'select.lua']
|
||||
foreach file: lua_files
|
||||
lua_file = custom_target(file,
|
||||
input: join_paths(source_root, 'player', 'lua', file),
|
||||
input: file,
|
||||
output: file + '.inc',
|
||||
command: [file2string, '@INPUT@', '@OUTPUT@'],
|
||||
command: [file2string, '@INPUT@', '@OUTPUT@', '@SOURCE_ROOT@'],
|
||||
)
|
||||
sources += lua_file
|
||||
endforeach
|
||||
|
||||
Reference in New Issue
Block a user