project('gst-plugins-bad', 'c', 'cpp',
- version : '1.17.0.1',
- meson_version : '>= 0.48',
+ version : '1.17.1.1',
+ meson_version : '>= 0.49',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
cc = meson.get_compiler('c')
cxx = meson.get_compiler('cpp')
+have_objc = add_languages('objc', native: false, required: false)
+
cdata = configuration_data()
if cc.get_id() == 'msvc'
export_define = '__declspec(dllexport) extern'
elif cc.has_argument('-fvisibility=hidden')
add_project_arguments('-fvisibility=hidden', language: 'c')
+ add_project_arguments('-fvisibility=hidden', language: 'cpp')
+ if have_objc
+ add_project_arguments('-fvisibility=hidden', language: 'objc')
+ endif
export_define = 'extern __attribute__ ((visibility ("default")))'
else
export_define = 'extern'
cdata.set_quoted('VERSION', gst_version)
cdata.set_quoted('PACKAGE', 'gst-plugins-bad')
cdata.set_quoted('PACKAGE_VERSION', gst_version)
-cdata.set_quoted('PACKAGE_BUGREPORT', 'http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer')
+cdata.set_quoted('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/new')
cdata.set_quoted('PACKAGE_NAME', 'GStreamer Bad Plug-ins')
cdata.set_quoted('GETTEXT_PACKAGE', 'gst-plugins-bad-1.0')
cdata.set_quoted('GST_API_VERSION', api_version)
endif
if ['darwin', 'ios'].contains(host_system)
- add_languages('objc')
+ if not have_objc
+ error('Building on MacOS/iOS/etc requires an ObjC compiler')
+ endif
if host_system == 'ios'
cdata.set('HAVE_IOS', 1)
endif
# cdata.set('HAVE_VIDEOTOOLBOX_10_9_6', 1)
# endif
endif
+have_objcpp = add_languages('objcpp', native: false, required: false)
have_orcc = false
orcc_args = []
message('Orc Compiler not found or disabled, will use backup C code')
cdata.set('DISABLE_ORC', 1)
endif
+cdata.set('GST_ENABLE_EXTRA_CHECKS', not get_option('extra-checks').disabled())
gnustl_dep = declare_dependency()
if host_system == 'android'