From f10bb133145f3a89d996c4dc4769f5000d2772ba Mon Sep 17 00:00:00 2001 From: JCWasmx86 Date: Tue, 15 Aug 2023 19:38:28 +0200 Subject: [PATCH] gio: Add gresource.dtd This allows linting of .gresource.xml files e.g. in the editor. --- gio/gresource.dtd | 14 ++++++++++++++ gio/meson.build | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 gio/gresource.dtd diff --git a/gio/gresource.dtd b/gio/gresource.dtd new file mode 100644 index 000000000..7b79fad35 --- /dev/null +++ b/gio/gresource.dtd @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/gio/meson.build b/gio/meson.build index b19c59fa0..abe2f8498 100644 --- a/gio/meson.build +++ b/gio/meson.build @@ -1020,6 +1020,10 @@ glib_compile_resources = executable('glib-compile-resources', # intl.lib is not compatible with SAFESEH link_args : noseh_link_args, dependencies : [libgio_dep, libgobject_dep, libgmodule_dep, libglib_dep, gvdb_dep]) +install_data('gresource.dtd', + install_dir: get_option('datadir') / 'glib-2.0/dtds', + install_tag: 'devel', +) # Cannot override those programs in cross compilation case because they are # native executables that cannot be run on the build machine.