mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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.
This commit is contained in:
parent
f10bb13314
commit
0b4a9db4a7
@ -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',
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user