From f0b7e64eabbbf8298c8d7ab484e273d2040d3287 Mon Sep 17 00:00:00 2001 From: Veli Tasali Date: Tue, 4 May 2021 15:49:07 +0300 Subject: [PATCH] meson: Get libadwaita & gtksourceview as fallback --- meson.build | 12 ++++++++++-- subprojects/gtksourceview.wrap | 3 +++ subprojects/libadwaita.wrap | 3 +++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 subprojects/gtksourceview.wrap create mode 100644 subprojects/libadwaita.wrap diff --git a/meson.build b/meson.build index 88cc5c95..9a5bd944 100644 --- a/meson.build +++ b/meson.build @@ -12,8 +12,16 @@ base_id = 'org.gnome.FractalNext' dependency('glib-2.0', version: '>= 2.66') dependency('gio-2.0', version: '>= 2.66') dependency('gtk4', version: '>= 4.0.0') -dependency('libadwaita-1', version: '>= 1.1.0' ) -dependency('gtksourceview-5', version: '>= 5.0.0' ) +dependency( + 'libadwaita-1', version: '>= 1.1.0', + fallback: ['libadwaita', 'libadwaita_dep'], + default_options: ['tests=false', 'examples=false', 'vapi=false'] +) +dependency( + 'gtksourceview-5', version: '>= 5.0.0', + fallback: ['gtksourceview', 'gtksource_dep'], + default_options: ['gtk_doc=false', 'sysprof=false', 'gir=false', 'vapi=false', 'install_tests=false'] +) glib_compile_resources = find_program('glib-compile-resources', required: true) glib_compile_schemas = find_program('glib-compile-schemas', required: true) diff --git a/subprojects/gtksourceview.wrap b/subprojects/gtksourceview.wrap new file mode 100644 index 00000000..e3fcad37 --- /dev/null +++ b/subprojects/gtksourceview.wrap @@ -0,0 +1,3 @@ +[wrap-git] +url = https://gitlab.gnome.org/GNOME/gtksourceview.git +revision = head diff --git a/subprojects/libadwaita.wrap b/subprojects/libadwaita.wrap new file mode 100644 index 00000000..0585199d --- /dev/null +++ b/subprojects/libadwaita.wrap @@ -0,0 +1,3 @@ +[wrap-git] +url = https://gitlab.gnome.org/GNOME/libadwaita.git +revision = head