mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 18:26:19 +01:00
Merge branch 'schemasdir' into 'master'
gio: Provide schemas directory information in pkg-config file See merge request GNOME/glib!274
This commit is contained in:
commit
b9cfbf0e62
@ -3,6 +3,8 @@ exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
datadir=@datadir@
|
||||
schemasdir=${datadir}/glib-2.0/schemas
|
||||
giomoduledir=@GIO_MODULE_DIR@
|
||||
glib_compile_schemas=glib-compile-schemas
|
||||
glib_compile_resources=glib-compile-resources
|
||||
|
@ -804,10 +804,14 @@ if giomodulesdir == ''
|
||||
giomodulesdir = join_paths('${libdir}', 'gio', 'modules')
|
||||
endif
|
||||
|
||||
schemas_subdir = join_paths('glib-2.0', 'schemas')
|
||||
|
||||
pkg.generate(libraries : libgio,
|
||||
libraries_private : [osx_ldflags],
|
||||
requires : ['glib-2.0', 'gobject-2.0'],
|
||||
variables : ['bindir=' + join_paths('${prefix}', get_option('bindir')),
|
||||
variables : ['datadir=' + join_paths('${prefix}', get_option('datadir')),
|
||||
'schemasdir=' + join_paths('${datadir}', schemas_subdir),
|
||||
'bindir=' + join_paths('${prefix}', get_option('bindir')),
|
||||
'giomoduledir=' + giomodulesdir,
|
||||
'glib_compile_schemas=' + join_paths('${bindir}', 'glib-compile-schemas'),
|
||||
'glib_compile_resources=' + join_paths('${bindir}', 'glib-compile-resources'),
|
||||
@ -945,7 +949,7 @@ executable('gsettings', 'gsettings-tool.c',
|
||||
link_args : noseh_link_args,
|
||||
dependencies : [libgio_dep, libgobject_dep, libgmodule_dep, libglib_dep])
|
||||
install_data('gschema.dtd',
|
||||
install_dir : join_paths(get_option('datadir'), 'glib-2.0/schemas'))
|
||||
install_dir : join_paths(get_option('datadir'), schemas_subdir))
|
||||
|
||||
install_data(['gschema.loc', 'gschema.its'],
|
||||
install_dir : join_paths(get_option('datadir'), 'gettext/its'))
|
||||
|
Loading…
Reference in New Issue
Block a user