[gnome-software/wip/exalm/libadwaita-beta: 2/3] build: Depend on GTK 4.6 and add it as a subproject
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/exalm/libadwaita-beta: 2/3] build: Depend on GTK 4.6 and add it as a subproject
- Date: Tue, 25 Jan 2022 14:31:34 +0000 (UTC)
commit 4ab2f05543d0d271b5b2d58d74ddba1314b8a496
Author: Milan Crha <mcrha redhat com>
Date: Tue Jan 25 13:05:13 2022 +0500
build: Depend on GTK 4.6 and add it as a subproject
.gitignore | 1 +
meson.build | 11 ++++++++++-
subprojects/gtk.wrap | 5 +++++
3 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/.gitignore b/.gitignore
index 43222ec27..825ba8946 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
subprojects/appstream/
+subprojects/gtk/
subprojects/libadwaita/
subprojects/libglib-testing/
subprojects/libxmlb/
diff --git a/meson.build b/meson.build
index 0665d35a5..709056a37 100644
--- a/meson.build
+++ b/meson.build
@@ -125,7 +125,16 @@ gdk_pixbuf = dependency('gdk-pixbuf-2.0', version : '>= 2.32.0')
libxmlb = dependency('xmlb', version : '>= 0.1.7', fallback : ['libxmlb', 'libxmlb_dep'])
gio_unix = dependency('gio-unix-2.0', version : '>= 2.56.0')
gmodule = dependency('gmodule-2.0')
-gtk = dependency('gtk4', version : '>= 4.2')
+gtk = dependency('gtk4',
+ version : '>= 4.6',
+ fallback: ['gtk', 'gtk_dep'],
+ default_options: [
+ 'build-examples=false',
+ 'build-tests=false',
+ 'introspection=disabled',
+ 'demos=false',
+ ]
+ )
glib = dependency('glib-2.0', version : '>= 2.66.0')
json_glib = dependency('json-glib-1.0', version : '>= 1.2.0')
libm = cc.find_library('m', required: false)
diff --git a/subprojects/gtk.wrap b/subprojects/gtk.wrap
new file mode 100644
index 000000000..97120754d
--- /dev/null
+++ b/subprojects/gtk.wrap
@@ -0,0 +1,5 @@
+[wrap-git]
+directory=gtk
+url=https://gitlab.gnome.org/GNOME/gtk.git
+revision=4.6.0
+depth=1
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]