mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +00:00
build: Specify required GTK version
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
parent
933655e8e0
commit
7cf7fc02d6
5 changed files with 11 additions and 4 deletions
|
@ -32,6 +32,11 @@ project(
|
|||
]
|
||||
)
|
||||
|
||||
gtk_version = '4.8'
|
||||
gtk_version_arr = gtk_version.split('.')
|
||||
gtk_major = gtk_version_arr[0]
|
||||
gtk_minor = gtk_version_arr[1]
|
||||
|
||||
calls_id = 'org.gnome.Calls'
|
||||
calls_homepage = 'https://gitlab.gnome.org/GNOME/calls'
|
||||
calls_name = meson.project_name()
|
||||
|
@ -111,6 +116,8 @@ test_c_args = [
|
|||
'-Wunused-variable',
|
||||
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_64',
|
||||
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_70',
|
||||
'-DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_@0@_@1@'.format(gtk_major, gtk_minor),
|
||||
'-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_@0@_@1@'.format(gtk_major, gtk_minor),
|
||||
# see https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/332
|
||||
'-DEDS_DISABLE_DEPRECATED',
|
||||
# in preparation for the switch to Gtk4 we should make sure not to use deprecated symbols
|
||||
|
|
|
@ -44,7 +44,7 @@ i18n_plugin = i18n.merge_file(
|
|||
|
||||
dummy_deps = [
|
||||
dependency('gobject-2.0'),
|
||||
dependency('gtk4'),
|
||||
dependency('gtk4', version: '>= @0@'.format(gtk_version)),
|
||||
dependency('libpeas-1.0'),
|
||||
]
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ i18n_plugin = i18n.merge_file(
|
|||
|
||||
mm_deps = [
|
||||
dependency('gobject-2.0'),
|
||||
dependency('gtk4'),
|
||||
dependency('gtk4', version: '>= @0@'.format(gtk_version)),
|
||||
dependency('ModemManager'),
|
||||
dependency('mm-glib', version: '>= 1.12.0'),
|
||||
dependency('libpeas-1.0'),
|
||||
|
|
|
@ -43,7 +43,7 @@ i18n_plugin = i18n.merge_file(
|
|||
|
||||
ofono_deps = [
|
||||
dependency('gobject-2.0'),
|
||||
dependency('gtk4'),
|
||||
dependency('gtk4', version: '>= @0@'.format(gtk_version)),
|
||||
dependency('libpeas-1.0'),
|
||||
]
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ src_include = include_directories('.')
|
|||
calls_includes = [ top_include, src_include ]
|
||||
|
||||
calls_deps = [ dependency('gobject-2.0', version: '>= 2.58'),
|
||||
dependency('gtk4'),
|
||||
dependency('gtk4', version: '>= @0@'.format(gtk_version)),
|
||||
dependency('libadwaita-1', version: '>= 1.2'),
|
||||
dependency('libfeedback-0.0'),
|
||||
dependency('libpeas-1.0'),
|
||||
|
|
Loading…
Reference in a new issue