mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
dd17beb681
Allow a project to use gstreamer-full as a static library and link to create a binary without dependencies. Introduce the option 'gst-full-target-type' to select the build type, dynamic(default) or static. In gstreamer-full/static build configuration gstreamer (gst.c) needs the symbol gst_init_static_plugins which is defined in gstreamer-full. All the tests and examples are linking with gstreamer but the symbol gst_init_static_plugins is only defined in the gstreamer-full library. gstreamer-full can not be built first as it needs to know what plugins will be built. One option would be to build all the examples and tests after gstreamer-full as the tools. Disable tools build in subprojects too as it will be built at the end of build process. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4128>
45 lines
1.1 KiB
Meson
45 lines
1.1 KiB
Meson
if get_option('examples').disabled() or static_build
|
|
subdir_done()
|
|
endif
|
|
|
|
examples = [
|
|
'test-appsrc',
|
|
'test-appsrc2',
|
|
'test-auth',
|
|
'test-auth-digest',
|
|
'test-launch',
|
|
'test-mp4',
|
|
'test-multicast2',
|
|
'test-multicast',
|
|
'test-netclock',
|
|
'test-netclock-client',
|
|
'test-ogg',
|
|
'test-onvif-backchannel',
|
|
'test-onvif-client',
|
|
'test-onvif-server',
|
|
'test-readme',
|
|
'test-record-auth',
|
|
'test-record',
|
|
'test-replay-server',
|
|
'test-sdp',
|
|
'test-uri',
|
|
'test-video',
|
|
'test-video-rtx',
|
|
]
|
|
|
|
foreach example : examples
|
|
executable(example, '@0@.c'.format(example),
|
|
c_args : rtspserver_args,
|
|
include_directories : rtspserver_incs,
|
|
dependencies : [gst_dep, gstapp_dep, gstnet_dep, gst_rtsp_server_dep],
|
|
install: false)
|
|
endforeach
|
|
|
|
cgroup_dep = dependency('libcgroup', version : '>= 0.26', required : false)
|
|
if cgroup_dep.found()
|
|
executable('test-cgroups', 'test-cgroups.c',
|
|
c_args : rtspserver_args,
|
|
include_directories : rtspserver_incs,
|
|
dependencies : [gst_dep, gstnet_dep, gst_rtsp_server_dep, cgroup_dep],
|
|
install: false)
|
|
endif
|