[vte] lib: Add gresources to vte/gtk4



commit 3cffe18b25a4c04e9ee0c7e090f349805d43c680
Author: Christian Persch <chpe src gnome org>
Date:   Wed Sep 21 22:13:53 2022 +0200

    lib: Add gresources to vte/gtk4

 src/meson.build            | 13 ++++++++++++-
 src/vte-gtk4.gresource.xml | 21 +++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index 9253a4a5..b3f934a2 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -343,7 +343,18 @@ if get_option('gtk3')
 endif
 
 if get_option('gtk4')
-  libvte_gtk4_sources = libvte_common_sources + libvte_gtk4_public_headers + libvte_gtk4_enum_sources + 
graphene_glue_sources
+
+  libvte_gtk4_resources_data = files(
+  )
+
+  libvte_gtk4_resources_sources = gnome.compile_resources(
+    'vteresources-gtk4.cc',
+    'vte-gtk4.gresource.xml',
+    c_name: 'vte',
+    dependencies: libvte_gtk4_resources_data,
+  )
+
+  libvte_gtk4_sources = libvte_common_sources + libvte_gtk4_public_headers + libvte_gtk4_enum_sources + 
libvte_gtk4_resources_sources + graphene_glue_sources
   libvte_gtk4_cppflags = libvte_common_cppflags + gtk4_version_cppflags + ['-DVTE_GTK=4',]
   libvte_gtk4_deps = libvte_common_deps + [gtk4_dep,]
   libvte_gtk4_public_deps = libvte_common_public_deps + [gtk4_dep,]
diff --git a/src/vte-gtk4.gresource.xml b/src/vte-gtk4.gresource.xml
new file mode 100644
index 00000000..5eb238a7
--- /dev/null
+++ b/src/vte-gtk4.gresource.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright © 2022 Christian Persch
+
+  This program is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program.  If not, see <https://www.gnu.org/licenses/>.
+-->
+<gresources>
+  <gresource prefix="/org/gnome/vte">
+  </gresource>
+</gresources>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]