mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
meson: make version numbers ints and fix int/string comparison
WARNING: Trying to compare values of different types (str, int). The result of this is undefined and will become a hard error in a future Meson release.
This commit is contained in:
parent
891425d537
commit
dc32346562
1 changed files with 5 additions and 5 deletions
10
meson.build
10
meson.build
|
@ -6,11 +6,11 @@ project('gst-plugins-good', 'c',
|
|||
|
||||
gst_version = meson.project_version()
|
||||
version_arr = gst_version.split('.')
|
||||
gst_version_major = version_arr[0]
|
||||
gst_version_minor = version_arr[1]
|
||||
gst_version_micro = version_arr[2]
|
||||
if version_arr.length() == 4
|
||||
gst_version_nano = version_arr[3]
|
||||
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 version_arr.length() == 4
|
||||
gst_version_nano = version_arr[3].to_int()
|
||||
else
|
||||
gst_version_nano = 0
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue