mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
Add update-orc-dist target
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/168>
This commit is contained in:
parent
45a09d4a81
commit
ebf79cf723
1 changed files with 8 additions and 1 deletions
|
@ -87,10 +87,11 @@ if build_system == 'windows'
|
||||||
subproject('win-nasm')
|
subproject('win-nasm')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subproject('orc', required: get_option('orc'))
|
orc_subproject = subproject('orc', required: get_option('orc'))
|
||||||
|
|
||||||
subprojects_names = []
|
subprojects_names = []
|
||||||
plugins_doc_caches = []
|
plugins_doc_caches = []
|
||||||
|
orc_update_targets = []
|
||||||
all_plugins = []
|
all_plugins = []
|
||||||
foreach sp : subprojects
|
foreach sp : subprojects
|
||||||
project_name = sp[0]
|
project_name = sp[0]
|
||||||
|
@ -115,6 +116,8 @@ foreach sp : subprojects
|
||||||
endif
|
endif
|
||||||
all_plugins += plugins
|
all_plugins += plugins
|
||||||
|
|
||||||
|
orc_update_targets += subproj.get_variable('orc_update_targets', [])
|
||||||
|
|
||||||
subprojects_names += [project_name]
|
subprojects_names += [project_name]
|
||||||
cmdres = run_command(python3, '-c', symlink.format(project_name, meson.current_source_dir()))
|
cmdres = run_command(python3, '-c', symlink.format(project_name, meson.current_source_dir()))
|
||||||
if cmdres.returncode() == 0
|
if cmdres.returncode() == 0
|
||||||
|
@ -308,3 +311,7 @@ update = find_program('git-update')
|
||||||
run_target('git-update', command : [update])
|
run_target('git-update', command : [update])
|
||||||
run_target('update', command : [update,
|
run_target('update', command : [update,
|
||||||
'--builddir=@0@'.format(meson.current_build_dir())])
|
'--builddir=@0@'.format(meson.current_build_dir())])
|
||||||
|
|
||||||
|
if orc_subproject.found()
|
||||||
|
alias_target('update-orc-dist', orc_update_targets)
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue