meson: require matching GStreamer dep versions for unstable development releases

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/929

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1244>
This commit is contained in:
Tim-Philipp Müller 2021-10-25 11:37:45 +01:00 committed by GStreamer Marge Bot
parent d2dac4185b
commit f034ec3e14
8 changed files with 65 additions and 14 deletions

View file

@ -10,10 +10,12 @@ version_arr = gst_version.split('.')
gst_version_major = version_arr[0].to_int()
gst_version_minor = version_arr[1].to_int()
gst_version_micro = version_arr[2].to_int()
if gst_version_minor.is_even()
gst_version_is_stable = gst_version_minor.is_even()
gst_version_is_dev = gst_version_minor.is_odd() and gst_version_micro < 90
if gst_version_is_stable
TESTSUITE_VERSION = '@0@.@1@'.format(gst_version_major, gst_version_minor)
else
TESTSUITE_VERSION = 'master'
TESTSUITE_VERSION = 'master' # FIXME: main?
endif
apiversion = '1.0'
@ -27,7 +29,12 @@ osxversion = curversion + 1
prefix = get_option('prefix')
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
cc = meson.get_compiler('c')

View file

@ -16,6 +16,8 @@ gst_version_micro = version_arr[2].to_int()
else
gst_version_nano = 0
endif
gst_version_is_stable = gst_version_minor.is_even()
gst_version_is_dev = gst_version_minor.is_odd() and gst_version_micro < 90
apiversion = '1.0'
soversion = 0
@ -26,7 +28,12 @@ libversion = '@0@.@1@.0'.format(soversion, curversion)
osxversion = curversion + 1
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
cc = meson.get_compiler('c')
mathlib = cc.find_library('m', required : false)

View file

@ -14,6 +14,8 @@ gst_version_micro = version_arr[2].to_int()
else
gst_version_nano = 0
endif
gst_version_is_stable = gst_version_minor.is_even()
gst_version_is_dev = gst_version_minor.is_odd() and gst_version_micro < 90
api_version = '1.0'
libavfilter_dep = dependency('libavfilter', version: '>= 7.16.100',
@ -79,7 +81,12 @@ foreach h : check_headers
endif
endforeach
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
gst_dep = dependency('gstreamer-1.0', version : gst_req,
fallback : ['gstreamer', 'gst_dep'])
gstbase_dep = dependency('gstreamer-base-1.0', version : gst_req,

View file

@ -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

View file

@ -14,6 +14,7 @@ if version_arr.length() == 4
else
gst_version_nano = 0
endif
gst_version_is_stable = gst_version_minor.is_even()
gst_version_is_dev = gst_version_minor % 2 == 1 and gst_version_micro < 90
host_system = host_machine.system()
@ -28,7 +29,12 @@ endif
glib_req = '>= 2.56.0'
orc_req = '>= 0.4.24'
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

View file

@ -14,13 +14,19 @@ 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'
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'

View file

@ -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'

View file

@ -13,10 +13,16 @@ 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'
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