build: Specifify glib versions

This avoids deprecation warnings due to GTimeVal used in
libebook-contacts.h

See https://tecnocode.co.uk/2019/08/24/gtimeval-deprecation-in-glib-2-61-2/

It's already fixed in newer eds so we can drop
this once we move to a newer stack.
This commit is contained in:
Guido Günther
2020-05-19 10:44:59 +02:00
parent 09cbdf4181
commit f7185ea70e
2 changed files with 6 additions and 1 deletions

View File

@@ -58,6 +58,11 @@ config_data.set_quoted('PACKAGE_URL', calls_homepage)
config_data.set_quoted('PACKAGE_VERSION', calls_version)
config_data.set('PACKAGE_URL_RAW', calls_homepage)
add_project_arguments([
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_58',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_60',
], language: 'c')
subdir('po')
subdir('src')
subdir('plugins')