project('gst-plugins-bad', 'c', 'cpp',
- version : '1.19.2',
- meson_version : '>= 0.54',
+ version : '1.19.90',
+ meson_version : '>= 0.59',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
else
gst_version_nano = 0
endif
-gst_version_is_dev = gst_version_minor % 2 == 1 and gst_version_micro < 90
+gst_version_is_stable = gst_version_minor.is_even()
+gst_version_is_dev = gst_version_minor.is_odd() and gst_version_micro < 90
glib_req = '>= 2.56.0'
orc_req = '>= 0.4.17'
-gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
+
+if gst_version_is_stable
+ gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
+else
+ gst_req = '>= ' + gst_version
+endif
api_version = '1.0'
soversion = 0
osxversion = curversion + 1
plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
+static_build = get_option('default_library') == 'static'
plugins = []
+libraries = []
cc = meson.get_compiler('c')
cxx = meson.get_compiler('cpp')
if gstgl_dep.found()
if gstgl_dep.type_name() == 'pkgconfig'
- gst_gl_apis = gstgl_dep.get_pkgconfig_variable('gl_apis').split()
- gst_gl_winsys = gstgl_dep.get_pkgconfig_variable('gl_winsys').split()
- gst_gl_platforms = gstgl_dep.get_pkgconfig_variable('gl_platforms').split()
+ gst_gl_apis = gstgl_dep.get_variable('gl_apis').split()
+ gst_gl_winsys = gstgl_dep.get_variable('gl_winsys').split()
+ gst_gl_platforms = gstgl_dep.get_variable('gl_platforms').split()
else
gstbase = subproject('gst-plugins-base')
gst_gl_apis = gstbase.get_variable('enabled_gl_apis')
description : 'Streaming media framework, bad plugins libraries',
)
+gpl_allowed = get_option('gpl').allowed()
+
subdir('gst-libs')
subdir('gst')
subdir('sys')
]
endforeach
- if meson.version().version_compare('>= 0.52') and orc_update_targets.length() > 0
+ if orc_update_targets.length() > 0
update_orc_dist_target = alias_target('update-orc-dist', orc_update_targets)
endif
endif
# Set release date
if gst_version_nano == 0
extract_release_date = find_program('scripts/extract-release-date-from-doap-file.py')
- run_result = run_command(extract_release_date, gst_version, files('gst-plugins-bad.doap'))
- if run_result.returncode() == 0
- release_date = run_result.stdout().strip()
- cdata.set_quoted('GST_PACKAGE_RELEASE_DATETIME', release_date)
- message('Package release date: ' + release_date)
- else
- # Error out if our release can't be found in the .doap file
- error(run_result.stderr())
- endif
+ run_result = run_command(extract_release_date, gst_version, files('gst-plugins-bad.doap'), check: true)
+ release_date = run_result.stdout().strip()
+ cdata.set_quoted('GST_PACKAGE_RELEASE_DATETIME', release_date)
+ message('Package release date: ' + release_date)
endif
if glib_dep.version().version_compare('< 2.67.4')
configure_file(output : 'config.h', configuration : cdata)
-run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')
-
subdir('docs')
-if meson.version().version_compare('>= 0.54')
- plugin_names = []
- foreach plugin: plugins
- # FIXME: Use str.subtring() when we can depend on Meson 0.56
- split = plugin.name().split('gst')
- if split.length() == 2
- plugin_names += [split[1]]
- else
- warning('Need substring API in meson >= 0.56 to properly parse plugin name: ' + plugin.name())
- plugin_names += [plugin.name()]
- endif
- endforeach
- summary({'Plugins':plugin_names}, list_sep: ', ')
-endif
+plugin_names = []
+foreach plugin: plugins
+ if plugin.name().startswith('gst')
+ plugin_names += [plugin.name().substring(3)]
+ else
+ plugin_names += [plugin.name()]
+ endif
+endforeach
+
+summary({
+ 'Plugins': plugin_names,
+ '(A)GPL license allowed': gpl_allowed,
+}, list_sep: ', ')