summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-09-21 22:13:53 +0200
committerChristian Persch <chpe@src.gnome.org>2022-09-21 22:13:53 +0200
commit3cffe18b25a4c04e9ee0c7e090f349805d43c680 (patch)
treeedc5e3c3a25a4a114f7b417dcc9a818053b2d637
parent391cd322f0c176d052da5417d3e372cf861c5b06 (diff)
downloadvte-3cffe18b25a4c04e9ee0c7e090f349805d43c680.tar.gz
lib: Add gresources to vte/gtk4
-rw-r--r--src/meson.build13
-rw-r--r--src/vte-gtk4.gresource.xml21
2 files changed, 33 insertions, 1 deletions
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>