mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
meson: cleanup pkg-config variables definitions
Use more readable and shorter syntax
This commit is contained in:
parent
ade79bcb50
commit
c2e46b3789
@ -877,18 +877,20 @@ libgio_dep = declare_dependency(link_with : libgio,
|
||||
|
||||
pkg.generate(libgio,
|
||||
requires : ['glib-2.0', 'gobject-2.0'],
|
||||
variables : ['datadir=' + join_paths('${prefix}', get_option('datadir')),
|
||||
'schemasdir=' + join_paths('${datadir}', schemas_subdir),
|
||||
'bindir=' + join_paths('${prefix}', get_option('bindir')),
|
||||
'giomoduledir=' + pkgconfig_giomodulesdir,
|
||||
'gio=' + join_paths('${bindir}', 'gio'),
|
||||
'gio_querymodules=@0@'.format(pkgconfig_multiarch_bindir / 'gio-querymodules'),
|
||||
'glib_compile_schemas=@0@'.format(pkgconfig_multiarch_bindir / 'glib-compile-schemas'),
|
||||
'glib_compile_resources=' + join_paths('${bindir}', 'glib-compile-resources'),
|
||||
'gdbus=' + join_paths('${bindir}', 'gdbus'),
|
||||
'gdbus_codegen=' + join_paths('${bindir}', 'gdbus-codegen'),
|
||||
'gresource=' + join_paths('${bindir}', 'gresource'),
|
||||
'gsettings=' + join_paths('${bindir}', 'gsettings')],
|
||||
variables : [
|
||||
'datadir=' + '${prefix}' / get_option('datadir'),
|
||||
'schemasdir=' + '${datadir}' / schemas_subdir,
|
||||
'bindir=' + '${prefix}' / get_option('bindir'),
|
||||
'giomoduledir=' + pkgconfig_giomodulesdir,
|
||||
'gio=' + '${bindir}' / 'gio',
|
||||
'gio_querymodules=' + pkgconfig_multiarch_bindir / 'gio-querymodules',
|
||||
'glib_compile_schemas=' + pkgconfig_multiarch_bindir / 'glib-compile-schemas',
|
||||
'glib_compile_resources=' + '${bindir}' / 'glib-compile-resources',
|
||||
'gdbus=' + '${bindir}' /'gdbus',
|
||||
'gdbus_codegen=' + '${bindir}' / 'gdbus-codegen',
|
||||
'gresource=' + '${bindir}' / 'gresource',
|
||||
'gsettings=' + '${bindir}' / 'gsettings',
|
||||
],
|
||||
version : glib_version,
|
||||
install_dir : glib_pkgconfigreldir,
|
||||
filebase : 'gio-2.0',
|
||||
|
@ -440,14 +440,15 @@ pkg.generate(libglib,
|
||||
libraries_private : [win32_ldflags],
|
||||
subdirs : ['glib-2.0'],
|
||||
extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
|
||||
variables : ['bindir=' + join_paths('${prefix}', get_option('bindir')),
|
||||
'datadir=' + join_paths('${prefix}', get_option('datadir')),
|
||||
'glib_genmarshal=' + join_paths('${bindir}', 'glib-genmarshal'),
|
||||
'gobject_query=' + join_paths('${bindir}', 'gobject-query'),
|
||||
'glib_mkenums=' + join_paths('${bindir}', 'glib-mkenums'),
|
||||
'glib_valgrind_suppressions=' + join_paths('${datadir}',
|
||||
valgrind_suppression_file_install_subdir,
|
||||
fs.name(valgrind_suppression_file)),
|
||||
variables : [
|
||||
'bindir=' + '${prefix}' / get_option('bindir'),
|
||||
'datadir=' + '${prefix}' / get_option('datadir'),
|
||||
'glib_genmarshal=' + '${bindir}' / 'glib-genmarshal',
|
||||
'gobject_query=' + '${bindir}' / 'gobject-query',
|
||||
'glib_mkenums=' + '${bindir}' / 'glib-mkenums',
|
||||
'glib_valgrind_suppressions=' + '${datadir}' /
|
||||
valgrind_suppression_file_install_subdir /
|
||||
fs.name(valgrind_suppression_file),
|
||||
],
|
||||
version : glib_version,
|
||||
install_dir : glib_pkgconfigreldir,
|
||||
|
Loading…
Reference in New Issue
Block a user