X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgst-plugins-bad%2Fmeson.build;h=d79cb64bcfd906945abd0c2d40e621af89ff1eb0;hb=31b5243e1dde294a413c30fd026a93140f78cbee;hp=7cab556e0c2b34b3aa0c4a1889c40aabcc1cc374;hpb=86a93d746dfb37322cb5dfa517c2913edb9d54d6;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-plugins-bad/meson.build b/subprojects/gst-plugins-bad/meson.build index 7cab556..d79cb64 100644 --- a/subprojects/gst-plugins-bad/meson.build +++ b/subprojects/gst-plugins-bad/meson.build @@ -1,6 +1,6 @@ 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' ]) @@ -14,11 +14,17 @@ gst_version_micro = version_arr[2].to_int() 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 @@ -29,7 +35,9 @@ libversion = '@0@.@1@.0'.format(soversion, curversion) 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') @@ -313,9 +321,9 @@ gstglegl_dep = dependency('', required : false) 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') @@ -484,6 +492,8 @@ pkgconfig.generate( description : 'Streaming media framework, bad plugins libraries', ) +gpl_allowed = get_option('gpl').allowed() + subdir('gst-libs') subdir('gst') subdir('sys') @@ -510,7 +520,7 @@ if have_orcc ] 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 @@ -526,15 +536,10 @@ subdir('scripts') # 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') @@ -543,21 +548,18 @@ endif 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: ', ')