diff options
author | JCWasmx86 <JCWasmx86@t-online.de> | 2023-08-15 19:38:28 +0200 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2023-08-17 14:25:53 +0100 |
commit | f10bb133145f3a89d996c4dc4769f5000d2772ba (patch) | |
tree | 06166489fc7c09fda0c96e41797622c940c7474e | |
parent | 9b15842ec198ad47365cf44bb6c23dfc4c37107d (diff) | |
download | glib-f10bb133145f3a89d996c4dc4769f5000d2772ba.tar.gz |
gio: Add gresource.dtd
This allows linting of .gresource.xml files e.g. in the editor.
-rw-r--r-- | gio/gresource.dtd | 14 | ||||
-rw-r--r-- | gio/meson.build | 4 |
2 files changed, 18 insertions, 0 deletions
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 @@ +<!-- + SPDX-License-Identifier: LGPL-2.1-or-later + SPDX-FileCopyrightText: 2023 JCWasmx86 +--> + +<!ELEMENT gresources (gresource)* > + +<!ELEMENT gresource (file)* > +<!ATTLIST gresource prefix CDATA #IMPLIED > + +<!ELEMENT file (#PCDATA) > +<!ATTLIST file alias CDATA #IMPLIED + compressed (true|false) #IMPLIED + preprocess (xml-stripblanks|to-pixdata|json-stripblanks) #IMPLIED > 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. |