-# FIXME: Create a 'libraries' list in each subproject like we do for 'plugins'
-libraries_map = {
- # name: [subproject_name, variable_name]
- 'gstreamer': ['gstreamer', 'libgst'],
- 'base': ['gstreamer', 'gst_base'],
- 'check': ['gstreamer', 'gst_check'],
- 'controller': ['gstreamer', 'gst_controller'],
- 'net': ['gstreamer', 'gst_net'],
-
- 'allocators': ['gst-plugins-base', 'gstallocators'],
- 'app': ['gst-plugins-base', 'gstapp'],
- 'audio': ['gst-plugins-base', 'gstaudio'],
- 'fft': ['gst-plugins-base', 'gstfft'],
- 'pbutils': ['gst-plugins-base', 'pbutils'],
- 'riff': ['gst-plugins-base', 'gstriff'],
- 'rtp': ['gst-plugins-base', 'gst_rtp'],
- 'rtsp': ['gst-plugins-base', 'gst_rtsp'],
- 'sdp': ['gst-plugins-base', 'gstsdp'],
- 'tag': ['gst-plugins-base', 'gsttag'],
- 'video': ['gst-plugins-base', 'gstvideo'],
- 'gl': ['gst-plugins-base', 'gstgl'],
-
- 'bad-audio': ['gst-plugins-bad', 'gstbadaudio'],
- 'bad-transcoder': ['gst-plugins-bad', 'gst_transcoder'],
- 'codecparsers': ['gst-plugins-bad', 'gstcodecparsers'],
- 'insertbin': ['gst-plugins-bad', 'gstinsertbin'],
- 'mpegts': ['gst-plugins-bad', 'gstmpegts'],
- 'player': ['gst-plugins-bad', 'gstplayer'],
- 'sctp': ['gst-plugins-bad', 'libgstsctp'],
- 'webrtc': ['gst-plugins-bad', 'gstwebrtc'],
- 'vulkan': ['gst-plugins-bad', 'gstvulkan'],
-
- 'rtsp-server': ['gst-rtsp-server', 'gst_rtsp_server'],
-}
-
-if get_option('default_library') == 'static'
- if not get_option('introspection').disabled()
- error('GObject Introspection is not supported in static builds. Please use -Dintrospection=disabled')
- endif
+if building_full
+ cdata = configuration_data()
+ cdata.set_quoted('GST_API_VERSION', apiversion)
+ cdata.set_quoted('GETTEXT_PACKAGE', 'gstreamer-full-1.0')
+ cdata.set_quoted('PACKAGE_VERSION', gst_version)
+ cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('package-origin'))
+ configure_file(output : 'config.h', configuration : cdata)
+ configinc = include_directories('.')
+ gst_c_args = ['-DHAVE_CONFIG_H']
+