mirror of https://code.videolan.org/videolan/vlc
meson: create vlc-cache-gen & plugins.dat
This commit is contained in:
parent
a49403442e
commit
b53cc653ea
|
@ -39,4 +39,20 @@ if build_vlc and (host_system != 'darwin' or have_osx)
|
||||||
objc_args: [vlc_top_builddir_def, vlc_top_srcdir_def],
|
objc_args: [vlc_top_builddir_def, vlc_top_srcdir_def],
|
||||||
win_subsystem: 'windows'
|
win_subsystem: 'windows'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
vlc_cache_gen_dep = executable('vlc-cache-gen',
|
||||||
|
['cachegen.c'],
|
||||||
|
link_with: [vlc_libcompat, libvlc],
|
||||||
|
include_directories: [vlc_include_dirs],
|
||||||
|
)
|
||||||
|
|
||||||
|
plugins_dat = custom_target('plugins.dat',
|
||||||
|
# `vlc_cache_gen_dep.full_path()` doesn't work since the executable is not built yet.
|
||||||
|
# `vlc_cache_gen_dep` creates a build order dependency.
|
||||||
|
command: [vlc_cache_gen_dep, meson.global_build_root() / 'modules'],
|
||||||
|
# ninja command will be `ninja bin/plugins.dat`
|
||||||
|
output: 'plugins.dat',
|
||||||
|
build_by_default: true,
|
||||||
|
)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue