mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
docs: disable in static build
Following gst-plugins-base, disable docs if static_build in: - gstreamer - gst-plugins-good - gst-plugins-ugly - gst-libav - gstreamer-vaapi Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2529>
This commit is contained in:
parent
ab9ce0500a
commit
6b1ffadb0c
9 changed files with 49 additions and 0 deletions
|
@ -9,6 +9,15 @@ if meson.is_cross_build()
|
|||
subdir_done()
|
||||
endif
|
||||
|
||||
if static_build
|
||||
if get_option('doc').enabled()
|
||||
error('Documentation enabled but not supported when building statically.')
|
||||
endif
|
||||
|
||||
message('Building statically, can\'t build the documentation')
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
required_hotdoc_extensions = ['gst-extension']
|
||||
if gst_dep.type_name() == 'internal'
|
||||
gst_proj = subproject('gstreamer')
|
||||
|
|
|
@ -30,6 +30,7 @@ libavutil_dep = dependency('libavutil', version: '>= 56.14.100',
|
|||
libav_deps = [libavfilter_dep, libavformat_dep, libavcodec_dep, libavutil_dep]
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
static_build = get_option('default_library') == 'static'
|
||||
|
||||
check_ffmpeg_src = '''#include <libavcodec/avcodec.h>
|
||||
#if LIBAVCODEC_VERSION_MICRO >= 100
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
build_hotdoc = false
|
||||
|
||||
if static_build
|
||||
if get_option('doc').enabled()
|
||||
error('Documentation enabled but not supported when building statically.')
|
||||
endif
|
||||
|
||||
message('Building statically, can\'t build the documentation')
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
if meson.is_cross_build()
|
||||
if get_option('doc').enabled()
|
||||
error('Documentation enabled but building the doc while cross building is not supported yet.')
|
||||
|
|
|
@ -32,6 +32,7 @@ api_version = '1.0'
|
|||
|
||||
plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
|
||||
plugins = []
|
||||
static_build = get_option('default_library') == 'static'
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
host_system = host_machine.system()
|
||||
|
|
|
@ -9,6 +9,15 @@ if meson.is_cross_build()
|
|||
subdir_done()
|
||||
endif
|
||||
|
||||
if static_build
|
||||
if get_option('doc').enabled()
|
||||
error('Documentation enabled but not supported when building statically.')
|
||||
endif
|
||||
|
||||
message('Building statically, can\'t build the documentation')
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
required_hotdoc_extensions = ['gst-extension']
|
||||
plugins_cache = join_paths(meson.current_source_dir(), 'gst_plugins_cache.json')
|
||||
if gst_dep.type_name() == 'internal'
|
||||
|
|
|
@ -29,6 +29,7 @@ endif
|
|||
|
||||
api_version = '1.0'
|
||||
|
||||
static_build = get_option('default_library') == 'static'
|
||||
plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
|
||||
plugins = []
|
||||
|
||||
|
|
|
@ -9,6 +9,15 @@ if meson.is_cross_build()
|
|||
subdir_done()
|
||||
endif
|
||||
|
||||
if static_build
|
||||
if get_option('doc').enabled()
|
||||
error('Documentation enabled but not supported when building statically.')
|
||||
endif
|
||||
|
||||
message('Building statically, can\'t build the documentation')
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
required_hotdoc_extensions = ['gi-extension', 'gst-extension']
|
||||
if gst_dep.type_name() == 'internal'
|
||||
gst_proj = subproject('gstreamer')
|
||||
|
|
|
@ -26,6 +26,7 @@ libdrm_req = '>= 2.4.98'
|
|||
gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
static_build = get_option('default_library') == 'static'
|
||||
|
||||
if cc.has_link_argument('-Wl,-Bsymbolic-functions')
|
||||
add_project_link_arguments('-Wl,-Bsymbolic-functions', language : 'c')
|
||||
|
|
|
@ -8,6 +8,15 @@ if meson.is_cross_build()
|
|||
subdir_done()
|
||||
endif
|
||||
|
||||
if static_build
|
||||
if get_option('doc').enabled()
|
||||
error('Documentation enabled but not supported when building statically.')
|
||||
endif
|
||||
|
||||
message('Building statically, can\'t build the documentation')
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
hotdoc_plugin_scanner = executable('gst-hotdoc-plugins-scanner',
|
||||
'gst-hotdoc-plugins-scanner.c',
|
||||
c_args : gst_c_args,
|
||||
|
|
Loading…
Reference in a new issue