mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
build: Bump GLib dependency to 2.50 and add guards
libfprint already uses G_DEBUG_HERE in a lot of places which requires GLib 2.50. Also add the appropriate defines so that usage of newer API will result in warnings.
This commit is contained in:
@@ -27,7 +27,9 @@ common_cflags = cc.get_supported_arguments([
|
|||||||
'-Wstrict-prototypes',
|
'-Wstrict-prototypes',
|
||||||
'-Werror-implicit-function-declaration',
|
'-Werror-implicit-function-declaration',
|
||||||
'-Wno-pointer-sign',
|
'-Wno-pointer-sign',
|
||||||
'-Wshadow'
|
'-Wshadow',
|
||||||
|
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_50',
|
||||||
|
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_50',
|
||||||
])
|
])
|
||||||
|
|
||||||
# maintaining compatibility with the previous libtool versioning
|
# maintaining compatibility with the previous libtool versioning
|
||||||
@@ -39,7 +41,7 @@ revision = 0
|
|||||||
libversion = '@0@.@1@.@2@'.format(soversion, current, revision)
|
libversion = '@0@.@1@.@2@'.format(soversion, current, revision)
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
glib_dep = dependency('glib-2.0', version: '>= 2.28')
|
glib_dep = dependency('glib-2.0', version: '>= 2.50')
|
||||||
libusb_dep = dependency('libusb-1.0', version: '>= 0.9.1')
|
libusb_dep = dependency('libusb-1.0', version: '>= 0.9.1')
|
||||||
mathlib_dep = cc.find_library('m', required: false)
|
mathlib_dep = cc.find_library('m', required: false)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user