[fractal/fractal-next] Add sourceview5 as deps
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] Add sourceview5 as deps
- Date: Fri, 30 Apr 2021 18:58:09 +0000 (UTC)
commit 8f2017cebd0eaa40e785682bd7b53959f27391d9
Author: Julian Sparber <julian sparber net>
Date: Thu Apr 22 12:22:03 2021 +0200
Add sourceview5 as deps
Cargo.lock | 33 ++++++++++++++++++++++++++++++
Cargo.toml | 5 +++++
build-aux/org.gnome.FractalNext.Devel.json | 18 ++++++++++++++++
meson.build | 3 ++-
4 files changed, 58 insertions(+), 1 deletion(-)
---
diff --git a/Cargo.lock b/Cargo.lock
index 7c29d3a4..c3b1738d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -582,6 +582,7 @@ dependencies = [
"once_cell",
"secret-service",
"serde_json",
+ "sourceview5",
"tokio",
"tracing-subscriber",
"url",
@@ -2689,6 +2690,38 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "sourceview5"
+version = "0.1.0"
+source =
"git+https://gitlab.gnome.org/World/Rust/sourceview5-rs.git?branch=main#85fd0d9ed2c6a00b8540a330310e521817ab27c7"
+dependencies = [
+ "bitflags",
+ "gdk-pixbuf",
+ "gdk4",
+ "gio",
+ "glib",
+ "gtk4",
+ "libc",
+ "pango",
+ "sourceview5-sys",
+]
+
+[[package]]
+name = "sourceview5-sys"
+version = "0.1.0"
+source =
"git+https://gitlab.gnome.org/World/Rust/sourceview5-rs.git?branch=main#85fd0d9ed2c6a00b8540a330310e521817ab27c7"
+dependencies = [
+ "gdk-pixbuf-sys",
+ "gdk4-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "gtk4-sys",
+ "libc",
+ "pango-sys",
+ "system-deps",
+]
+
[[package]]
name = "standback"
version = "0.2.17"
diff --git a/Cargo.toml b/Cargo.toml
index 7856bcb3..f7dbc58f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,6 +17,11 @@ secret-service = "2.0"
html2pango = "0.4"
chrono = "0.4"
+[dependencies.sourceview]
+branch = "main"
+package = "sourceview5"
+git = "https://gitlab.gnome.org/World/Rust/sourceview5-rs.git"
+
[dependencies.gtk]
package = "gtk4"
git = "https://github.com/gtk-rs/gtk4-rs"
diff --git a/build-aux/org.gnome.FractalNext.Devel.json b/build-aux/org.gnome.FractalNext.Devel.json
index a7ddb14e..29730038 100644
--- a/build-aux/org.gnome.FractalNext.Devel.json
+++ b/build-aux/org.gnome.FractalNext.Devel.json
@@ -47,6 +47,24 @@
}
]
},
+ {
+ "name" : "gtksourceview",
+ "buildsystem" : "meson",
+ "builddir" : true,
+ "config-opts" : [
+ "-Dgtk_doc=false",
+ "-Dsysprof=false",
+ "-Dgir=false",
+ "-Dvapi=false",
+ "-Dinstall_tests=false"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/gtksourceview.git"
+ }
+ ]
+ },
{
"name": "fractal",
"buildsystem": "meson",
diff --git a/meson.build b/meson.build
index b608324d..9e99d192 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@ project('fractal',
'rust',
version: '0.0.1',
license: 'MIT',
- meson_version: '>= 0.50')
+ meson_version: '>= 0.53')
i18n = import('i18n')
gnome = import('gnome')
@@ -12,6 +12,7 @@ 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('gtksourceview-5', version: '>= 5.0.0' )
glib_compile_resources = find_program('glib-compile-resources', required: true)
glib_compile_schemas = find_program('glib-compile-schemas', required: true)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]