mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-27 18:10:03 +01:00
Merge branch '1919-relative-paths' into 'master'
build: Rework path construction to reliably add prefix Closes #1919 See merge request GNOME/glib!1369
This commit is contained in:
commit
f0e7bc16ab
@ -24,7 +24,7 @@ gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
|
||||
# Provide tools for others when we're a subproject and they use the Meson GNOME module
|
||||
meson.override_find_program('gdbus-codegen', gdbus_codegen)
|
||||
|
||||
codegen_dir = join_paths(get_option('datadir'), 'glib-2.0/codegen')
|
||||
codegen_dir = join_paths(glib_datadir, 'glib-2.0', 'codegen')
|
||||
|
||||
gdbus_codegen_built_files = []
|
||||
gdbus_codegen_built_files += configure_file(input : 'config.py.in',
|
||||
|
@ -805,9 +805,10 @@ libgio = library('gio-2.0',
|
||||
link_args : [noseh_link_args, glib_link_flags],
|
||||
)
|
||||
|
||||
giomodulesdir = get_option('gio_module_dir')
|
||||
if giomodulesdir == ''
|
||||
giomodulesdir = join_paths('${libdir}', 'gio', 'modules')
|
||||
if get_option('gio_module_dir') != ''
|
||||
pkgconfig_giomodulesdir = join_paths('${prefix}', get_option('gio_module_dir'))
|
||||
else
|
||||
pkgconfig_giomodulesdir = join_paths('${libdir}', 'gio', 'modules')
|
||||
endif
|
||||
|
||||
schemas_subdir = join_paths('glib-2.0', 'schemas')
|
||||
@ -818,7 +819,7 @@ pkg.generate(libgio,
|
||||
variables : ['datadir=' + join_paths('${prefix}', get_option('datadir')),
|
||||
'schemasdir=' + join_paths('${datadir}', schemas_subdir),
|
||||
'bindir=' + join_paths('${prefix}', get_option('bindir')),
|
||||
'giomoduledir=' + giomodulesdir,
|
||||
'giomoduledir=' + pkgconfig_giomodulesdir,
|
||||
'gio=' + join_paths('${bindir}', 'gio'),
|
||||
'gio_querymodules=' + join_paths('${bindir}', 'gio-querymodules'),
|
||||
'glib_compile_schemas=' + join_paths('${bindir}', 'glib-compile-schemas'),
|
||||
|
@ -338,6 +338,6 @@ gnulib_lib = static_library('gnulib', gnulib_sources,
|
||||
dependencies : [libm],
|
||||
include_directories : [configinc, glibinc, include_directories ('.')],
|
||||
pic : true,
|
||||
c_args : ['-DGCC_LINT=1', '-DLIBDIR="@0@"'.format(get_option('libdir')), '-DGLIB_COMPILATION', '-DG_LOG_DOMAIN="GLib"' ] + glib_hidden_visibility_args + extra_gnulib_args)
|
||||
c_args : ['-DGCC_LINT=1', '-DLIBDIR="@0@"'.format(glib_libdir), '-DGLIB_COMPILATION', '-DG_LOG_DOMAIN="GLib"' ] + glib_hidden_visibility_args + extra_gnulib_args)
|
||||
|
||||
gnulib_libm_dependency = [libm]
|
||||
|
@ -117,11 +117,7 @@ _g_locale_get_charset_aliases (void)
|
||||
const char *base = "charset.alias";
|
||||
char *file_name;
|
||||
|
||||
/* Make it possible to override the charset.alias location. This is
|
||||
necessary for running the testsuite before "make install". */
|
||||
dir = getenv ("CHARSETALIASDIR");
|
||||
if (dir == NULL || dir[0] == '\0')
|
||||
dir = relocate (GLIB_CHARSETALIAS_DIR);
|
||||
dir = relocate (GLIB_CHARSETALIAS_DIR);
|
||||
|
||||
/* Concatenate dir and base into freshly allocated file_name. */
|
||||
{
|
||||
|
@ -1,9 +1,4 @@
|
||||
charsetalias_dir = get_option('charsetalias_dir')
|
||||
if charsetalias_dir == ''
|
||||
charsetalias_dir = get_option('libdir')
|
||||
endif
|
||||
|
||||
charset_lib = static_library('charset', 'localcharset.c',
|
||||
include_directories : configinc,
|
||||
pic : true,
|
||||
c_args : [ '-DGLIB_CHARSETALIAS_DIR="@0@"'.format(charsetalias_dir) ] + glib_hidden_visibility_args)
|
||||
c_args : [ '-DGLIB_CHARSETALIAS_DIR="@0@"'.format(glib_charsetaliasdir) ] + glib_hidden_visibility_args)
|
||||
|
13
meson.build
13
meson.build
@ -63,13 +63,20 @@ glib_libexecdir = join_paths(glib_prefix, get_option('libexecdir'))
|
||||
glib_datadir = join_paths(glib_prefix, get_option('datadir'))
|
||||
glib_pkgdatadir = join_paths(glib_datadir, 'glib-2.0')
|
||||
glib_includedir = join_paths(glib_prefix, get_option('includedir'))
|
||||
glib_giomodulesdir = get_option('gio_module_dir')
|
||||
if glib_giomodulesdir == ''
|
||||
if get_option('gio_module_dir') != ''
|
||||
glib_giomodulesdir = join_paths(glib_prefix, get_option('gio_module_dir'))
|
||||
else
|
||||
glib_giomodulesdir = join_paths(glib_libdir, 'gio', 'modules')
|
||||
endif
|
||||
|
||||
glib_pkgconfigreldir = join_paths(glib_libdir, 'pkgconfig')
|
||||
|
||||
if get_option('charsetalias_dir') != ''
|
||||
glib_charsetaliasdir = join_paths(glib_prefix, get_option('charsetalias_dir'))
|
||||
else
|
||||
glib_charsetaliasdir = glib_libdir
|
||||
endif
|
||||
|
||||
installed_tests_metadir = join_paths(glib_datadir, 'installed-tests', meson.project_name())
|
||||
installed_tests_execdir = join_paths(glib_libexecdir, 'installed-tests', meson.project_name())
|
||||
installed_tests_enabled = get_option('installed_tests')
|
||||
@ -2216,7 +2223,7 @@ if get_option('man')
|
||||
'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
|
||||
'@INPUT@',
|
||||
]
|
||||
man1_dir = get_option('mandir') + '/man1'
|
||||
man1_dir = join_paths(glib_prefix, get_option('mandir'), 'man1')
|
||||
endif
|
||||
|
||||
gnome = import('gnome')
|
||||
|
Loading…
x
Reference in New Issue
Block a user