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'
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')
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
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)
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',
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,
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
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()
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
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'
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'
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