diff options
author | JCWasmx86 <JCWasmx86@t-online.de> | 2023-08-16 18:58:48 +0200 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2023-08-17 14:26:34 +0100 |
commit | 0b4a9db4a7f123c0c5740801b9b3822e5e503b72 (patch) | |
tree | 386d4d1e7de9c6daed3a5ff071cd629d3f3f2fee | |
parent | f10bb133145f3a89d996c4dc4769f5000d2772ba (diff) | |
download | glib-0b4a9db4a7f123c0c5740801b9b3822e5e503b72.tar.gz |
gio: Add dtdsdir pointing to the directory of gresource.xml
This allows third party projects to look up the location of installed
DTDs without having to hard-code it.
-rw-r--r-- | gio/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gio/meson.build b/gio/meson.build index abe2f8498..75686bb3e 100644 --- a/gio/meson.build +++ b/gio/meson.build @@ -863,6 +863,7 @@ else endif schemas_subdir = join_paths('glib-2.0', 'schemas') +dtds_subdir = join_paths('glib-2.0', 'dtds') libgio_dep = declare_dependency(link_with : libgio, dependencies : [libgmodule_dep, libgobject_dep, gioenumtypes_dep], @@ -870,6 +871,7 @@ libgio_dep = declare_dependency(link_with : libgio, variables : [ 'schemasdir=' + join_paths(glib_datadir, schemas_subdir), 'giomoduledir=' + glib_giomodulesdir, + 'dtdsdir=' + join_paths(glib_datadir, dtds_subdir) ], ) @@ -878,6 +880,7 @@ pkg.generate(libgio, variables : [ 'datadir=' + '${prefix}' / get_option('datadir'), 'schemasdir=' + '${datadir}' / schemas_subdir, + 'dtdsdir=' + '${datadir}' / dtds_subdir, 'bindir=' + '${prefix}' / get_option('bindir'), 'giomoduledir=' + pkgconfig_giomodulesdir, 'gio=' + '${bindir}' / 'gio', @@ -1021,7 +1024,7 @@ glib_compile_resources = executable('glib-compile-resources', 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_dir: get_option('datadir') / dtds_subdir, install_tag: 'devel', ) |