X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgst-plugins-ugly%2Fmeson.build;h=a98be6acaaade21c7872b84a2738c9e7b6adcd37;hb=7003e894659ee2df52676cf048d052d1654df21c;hp=1c9a85853bf0679af226d431807b694bb4e0bc1a;hpb=9e1891f9e38dca9f232fa364e7ac396d7f0b07e5;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-plugins-ugly/meson.build b/subprojects/gst-plugins-ugly/meson.build index 1c9a858..a98be6a 100644 --- a/subprojects/gst-plugins-ugly/meson.build +++ b/subprojects/gst-plugins-ugly/meson.build @@ -1,6 +1,6 @@ project('gst-plugins-ugly', 'c', - version : '1.19.2', - meson_version : '>= 0.54', + version : '1.20.0', + meson_version : '>= 0.59', default_options : [ 'warning_level=1', 'buildtype=debugoptimized' ]) @@ -14,12 +14,18 @@ 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 have_cxx = add_languages('cpp', native: false, required: false) glib_req = '>= 2.56.0' -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' @@ -194,8 +200,8 @@ endif # TIZEN_OPTION if get_option('tv-profile') - core_conf.set('TIZEN_TV_PROFILE', 1) - core_conf.set('TIZEN_FEATURE_TRUSTZONE', 1) + core_conf.set('TIZEN_PROFILE_TV', true) + core_conf.set('TIZEN_FEATURE_TRUSTZONE', true) endif # TIZEN_OPTION end @@ -286,7 +292,10 @@ if get_option('default_library') == 'shared' plugins_pkgconfig_install_dir = disabler() endif +gpl_allowed = get_option('gpl').allowed() + python3 = import('python').find_installation() + subdir('gst') subdir('ext') subdir('tests') @@ -302,32 +311,24 @@ 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-ugly.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-ugly.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 configure_file(output : 'config.h', configuration : cdata) -run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")') - -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: ', ')