2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/gio/gdbus-2.0/codegen/meson.build b/gio/gdbus-2.0/codegen/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
index 6d19cd4ba..0205e5074 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/gio/gdbus-2.0/codegen/meson.build
|
|
|
|
+++ b/gio/gdbus-2.0/codegen/meson.build
|
2023-04-12 12:48:02 +00:00
|
|
|
@@ -20,7 +20,7 @@ gdbus_codegen_conf.set('DATADIR', glib_datadir)
|
2020-04-24 23:36:52 +00:00
|
|
|
# Install gdbus-codegen executable
|
|
|
|
gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
|
|
|
|
output : 'gdbus-codegen',
|
|
|
|
- install_dir : get_option('bindir'),
|
|
|
|
+ install_dir : get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin-devel',
|
2020-04-24 23:36:52 +00:00
|
|
|
configuration : gdbus_codegen_conf
|
|
|
|
)
|
|
|
|
diff --git a/gio/meson.build b/gio/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
index 59c2b0fc0..87cbb8229 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/gio/meson.build
|
|
|
|
+++ b/gio/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -885,14 +885,15 @@ pkg.generate(libgio,
|
|
|
|
variables : [
|
2024-01-02 11:29:13 +00:00
|
|
|
'schemasdir=' + '${datadir}' / schemas_subdir,
|
2024-01-13 08:15:51 +00:00
|
|
|
'dtdsdir=' + '${datadir}' / dtds_subdir,
|
2024-01-02 11:29:13 +00:00
|
|
|
+ 'devbindir=' + get_option('devbindir'),
|
|
|
|
'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',
|
|
|
|
+ 'gio_querymodules=' + '${devbindir}' / 'gio-querymodules',
|
|
|
|
+ 'glib_compile_schemas=' + '${devbindir}' / 'glib-compile-schemas',
|
|
|
|
+ 'glib_compile_resources=' + '${devbindir}' / 'glib-compile-resources',
|
|
|
|
'gdbus=' + '${bindir}' /'gdbus',
|
|
|
|
- 'gdbus_codegen=' + '${bindir}' / 'gdbus-codegen',
|
|
|
|
- 'gresource=' + '${bindir}' / 'gresource',
|
|
|
|
+ 'gdbus_codegen=' + '${devbindir}' / 'gdbus-codegen',
|
|
|
|
+ 'gresource=' + '${devbindir}' / 'gresource',
|
|
|
|
'gsettings=' + '${bindir}' / 'gsettings',
|
|
|
|
],
|
2020-04-24 23:36:52 +00:00
|
|
|
version : glib_version,
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -995,6 +996,7 @@ gio_tool = executable('gio', gio_tool_sources,
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
executable('gresource', 'gresource-tool.c',
|
|
|
|
install : true,
|
|
|
|
+ install_dir : get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin',
|
2020-04-24 23:36:52 +00:00
|
|
|
# intl.lib is not compatible with SAFESEH
|
|
|
|
link_args : noseh_link_args,
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -1002,7 +1004,7 @@ executable('gresource', 'gresource-tool.c',
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
gio_querymodules = executable('gio-querymodules', 'gio-querymodules.c', 'giomodule-priv.c',
|
|
|
|
install : true,
|
2022-10-21 18:38:19 +00:00
|
|
|
- install_dir : multiarch_bindir,
|
2020-04-24 23:36:52 +00:00
|
|
|
+ install_dir : get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin',
|
2020-04-24 23:36:52 +00:00
|
|
|
c_args : gio_c_args,
|
|
|
|
# intl.lib is not compatible with SAFESEH
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -1012,7 +1014,7 @@ gio_querymodules = executable('gio-querymodules', 'gio-querymodules.c', 'giomodu
|
2020-04-24 23:36:52 +00:00
|
|
|
glib_compile_schemas = executable('glib-compile-schemas',
|
2022-10-21 18:38:19 +00:00
|
|
|
['glib-compile-schemas.c'],
|
2020-04-24 23:36:52 +00:00
|
|
|
install : true,
|
2022-10-21 18:38:19 +00:00
|
|
|
- install_dir : multiarch_bindir,
|
2020-04-24 23:36:52 +00:00
|
|
|
+ install_dir : get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin',
|
2020-04-24 23:36:52 +00:00
|
|
|
# intl.lib is not compatible with SAFESEH
|
|
|
|
link_args : noseh_link_args,
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -1021,6 +1023,7 @@ glib_compile_schemas = executable('glib-compile-schemas',
|
2020-04-24 23:36:52 +00:00
|
|
|
glib_compile_resources = executable('glib-compile-resources',
|
2022-10-21 18:38:19 +00:00
|
|
|
[gconstructor_as_data_h, 'glib-compile-resources.c'],
|
2020-04-24 23:36:52 +00:00
|
|
|
install : true,
|
|
|
|
+ install_dir : get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin-devel',
|
2020-04-24 23:36:52 +00:00
|
|
|
c_args : gio_c_args,
|
|
|
|
# intl.lib is not compatible with SAFESEH
|
2024-01-13 08:15:51 +00:00
|
|
|
diff --git a/gio/tests/meson.build b/gio/tests/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
index 232ecca5e..e292927ac 100644
|
2024-01-13 08:15:51 +00:00
|
|
|
--- a/gio/tests/meson.build
|
|
|
|
+++ b/gio/tests/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -1182,16 +1182,18 @@ if have_bash and have_pkg_config
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
gio_binaries = [
|
|
|
|
'gio',
|
|
|
|
- 'glib-compile-resources',
|
|
|
|
'gdbus',
|
|
|
|
- 'gdbus-codegen',
|
|
|
|
- 'gresource',
|
|
|
|
'gsettings',
|
|
|
|
]
|
|
|
|
- gio_multiarch_binaries = [
|
|
|
|
+ gio_dev_binaries = [
|
|
|
|
+ 'glib-compile-resources',
|
|
|
|
+ 'gdbus-codegen',
|
|
|
|
+ 'gresource',
|
|
|
|
'gio-querymodules',
|
|
|
|
'glib-compile-schemas',
|
|
|
|
]
|
|
|
|
+ gio_multiarch_binaries = [
|
|
|
|
+ ]
|
|
|
|
|
|
|
|
foreach binary: gio_binaries
|
|
|
|
pkg_config_tests += [
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -1200,6 +1202,13 @@ if have_bash and have_pkg_config
|
2024-01-13 08:15:51 +00:00
|
|
|
prefix / get_option('bindir') / binary)
|
|
|
|
]
|
|
|
|
endforeach
|
|
|
|
+ foreach binary: gio_dev_binaries
|
|
|
|
+ pkg_config_tests += [
|
|
|
|
+ 'test "$(pkg-config --variable=@0@ gio-2.0)" = "@1@"'.format(
|
|
|
|
+ binary.underscorify(),
|
|
|
|
+ prefix / get_option('devbindir') / binary)
|
|
|
|
+ ]
|
|
|
|
+ endforeach
|
|
|
|
|
|
|
|
foreach binary: gio_multiarch_binaries
|
|
|
|
pkg_config_tests += [
|
2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/glib/meson.build b/glib/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
index d2efebadc..eb9fa5b2f 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/glib/meson.build
|
|
|
|
+++ b/glib/meson.build
|
2024-01-02 11:29:13 +00:00
|
|
|
@@ -447,9 +447,10 @@ pkg.generate(libglib,
|
2024-05-15 15:35:15 +00:00
|
|
|
subdirs : ['glib-2.0'],
|
|
|
|
extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
|
2024-01-02 11:29:13 +00:00
|
|
|
variables : [
|
|
|
|
- 'glib_genmarshal=' + '${bindir}' / 'glib-genmarshal',
|
|
|
|
- 'gobject_query=' + '${bindir}' / 'gobject-query',
|
|
|
|
- 'glib_mkenums=' + '${bindir}' / 'glib-mkenums',
|
|
|
|
+ 'devbindir=' + get_option('devbindir'),
|
|
|
|
+ 'glib_genmarshal=' + '${devbindir}' / 'glib-genmarshal',
|
|
|
|
+ 'gobject_query=' + '${devbindir}' / 'gobject-query',
|
|
|
|
+ 'glib_mkenums=' + '${devbindir}' / 'glib-mkenums',
|
|
|
|
'glib_valgrind_suppressions=' + '${datadir}' /
|
|
|
|
valgrind_suppression_file_install_subdir /
|
|
|
|
fs.name(valgrind_suppression_file),
|
|
|
|
@@ -490,6 +491,7 @@ if host_system == 'windows'
|
2020-04-24 23:36:52 +00:00
|
|
|
else
|
|
|
|
gtester = executable('gtester', 'gtester.c',
|
|
|
|
install : true,
|
|
|
|
+ install_dir : get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin-devel',
|
2020-04-24 23:36:52 +00:00
|
|
|
c_args : ['-UG_DISABLE_ASSERT'],
|
|
|
|
include_directories : configinc,
|
2024-01-02 11:29:13 +00:00
|
|
|
@@ -505,7 +507,7 @@ report_conf.set('PYTHON', python_name)
|
2020-04-24 23:36:52 +00:00
|
|
|
configure_file(
|
|
|
|
input: 'gtester-report.in',
|
|
|
|
output: 'gtester-report',
|
|
|
|
- install_dir: get_option('bindir'),
|
|
|
|
+ install_dir: get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin-devel',
|
2020-04-24 23:36:52 +00:00
|
|
|
configuration: report_conf,
|
|
|
|
install_mode: 'rwxr-xr-x'
|
2024-01-13 08:15:51 +00:00
|
|
|
diff --git a/glib/tests/meson.build b/glib/tests/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
index f6efc593a..5522dcb96 100644
|
2024-01-13 08:15:51 +00:00
|
|
|
--- a/glib/tests/meson.build
|
|
|
|
+++ b/glib/tests/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -568,9 +568,9 @@ if have_bash and have_pkg_config
|
2024-01-13 08:15:51 +00:00
|
|
|
'test "$(pkg-config --variable=datadir glib-2.0)" = "@0@"'.format(
|
|
|
|
prefix / get_option('datadir')),
|
|
|
|
'test "$(pkg-config --variable=gobject_query glib-2.0)" = "@0@"'.format(
|
|
|
|
- prefix / get_option('bindir') / 'gobject-query'),
|
|
|
|
+ prefix / get_option('devbindir') / 'gobject-query'),
|
|
|
|
'test "$(pkg-config --variable=glib_mkenums glib-2.0)" = "@0@"'.format(
|
|
|
|
- prefix / get_option('bindir') / 'glib-mkenums'),
|
|
|
|
+ prefix / get_option('devbindir') / 'glib-mkenums'),
|
|
|
|
'test "$(pkg-config --variable=glib_valgrind_suppressions glib-2.0)" = "@0@"'.format(
|
|
|
|
prefix / get_option('datadir') /
|
|
|
|
valgrind_suppression_file_install_subdir / fs.name(valgrind_suppression_file)),
|
2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/gobject/meson.build b/gobject/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
index 2129aaf8a..da8462428 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/gobject/meson.build
|
|
|
|
+++ b/gobject/meson.build
|
2023-04-12 12:48:02 +00:00
|
|
|
@@ -94,7 +94,7 @@ foreach tool: python_tools
|
2020-04-24 23:36:52 +00:00
|
|
|
input : tool + '.in',
|
|
|
|
output : tool,
|
|
|
|
configuration : python_tools_conf,
|
|
|
|
- install_dir : glib_bindir,
|
|
|
|
+ install_dir : get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin-devel',
|
2020-04-24 23:36:52 +00:00
|
|
|
)
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
@@ -172,6 +172,7 @@ meson.override_dependency('gobject-2.0', libgobject_dep)
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
gobject_query = executable('gobject-query', 'gobject-query.c',
|
2020-04-24 23:36:52 +00:00
|
|
|
install : true,
|
|
|
|
+ install_dir : get_option('devbindir'),
|
2022-10-21 18:38:19 +00:00
|
|
|
install_tag : 'bin-devel',
|
2020-04-24 23:36:52 +00:00
|
|
|
dependencies : [libglib_dep, libgobject_dep])
|
|
|
|
|
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
2024-05-15 15:35:15 +00:00
|
|
|
index 69a2135bc..cfe14bb09 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/meson_options.txt
|
|
|
|
+++ b/meson_options.txt
|
2023-04-12 12:48:02 +00:00
|
|
|
@@ -4,6 +4,11 @@ option('runtime_libdir',
|
|
|
|
description : 'install runtime libraries relative to libdir',
|
|
|
|
deprecated: true)
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
+option('devbindir',
|
|
|
|
+ type : 'string',
|
|
|
|
+ value : '',
|
|
|
|
+ description : 'bindir for development tools')
|
|
|
|
+
|
2023-04-12 12:48:02 +00:00
|
|
|
option('charsetalias_dir',
|
|
|
|
type : 'string',
|
|
|
|
value : '',
|
2022-10-21 18:38:19 +00:00
|
|
|
diff --git a/tools/meson.build b/tools/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
index 257312ebf..f8315392b 100644
|
2022-10-21 18:38:19 +00:00
|
|
|
--- a/tools/meson.build
|
|
|
|
+++ b/tools/meson.build
|
|
|
|
@@ -8,7 +8,7 @@ if have_sh
|
|
|
|
gettextize_conf.set('datarootdir', glib_datadir)
|
|
|
|
gettextize_conf.set('datadir', glib_datadir)
|
|
|
|
configure_file(input : 'glib-gettextize.in',
|
|
|
|
- install_dir : glib_bindir,
|
|
|
|
+ install_dir : get_option('devbindir'),
|
|
|
|
install_tag : 'bin-devel',
|
|
|
|
output : 'glib-gettextize',
|
|
|
|
configuration : gettextize_conf)
|