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
|
2022-10-21 18:38:19 +00:00
|
|
|
index f0a256898..9c8497cd0 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
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -19,7 +19,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
|
2022-10-21 18:38:19 +00:00
|
|
|
index fdd2528df..cf359c7d7 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/gio/meson.build
|
|
|
|
+++ b/gio/meson.build
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -859,14 +859,15 @@ pkg.generate(libgio,
|
2020-04-24 23:36:52 +00:00
|
|
|
variables : ['datadir=' + join_paths('${prefix}', get_option('datadir')),
|
|
|
|
'schemasdir=' + join_paths('${datadir}', schemas_subdir),
|
|
|
|
'bindir=' + join_paths('${prefix}', get_option('bindir')),
|
|
|
|
+ 'devbindir=' + get_option('devbindir'),
|
|
|
|
'giomoduledir=' + pkgconfig_giomodulesdir,
|
|
|
|
'gio=' + join_paths('${bindir}', 'gio'),
|
2022-10-21 18:38:19 +00:00
|
|
|
- 'gio_querymodules=@0@'.format(pkgconfig_multiarch_bindir / 'gio-querymodules'),
|
|
|
|
- 'glib_compile_schemas=@0@'.format(pkgconfig_multiarch_bindir / 'glib-compile-schemas'),
|
2020-04-24 23:36:52 +00:00
|
|
|
- 'glib_compile_resources=' + join_paths('${bindir}', 'glib-compile-resources'),
|
2022-10-21 18:38:19 +00:00
|
|
|
+ 'gio_querymodules=@0@'.format('${devbindir}' / 'gio-querymodules'),
|
|
|
|
+ 'glib_compile_schemas=@0@'.format('${devbindir}' / 'glib-compile-schemas'),
|
2020-04-24 23:36:52 +00:00
|
|
|
+ 'glib_compile_resources=' + join_paths('${devbindir}', 'glib-compile-resources'),
|
|
|
|
'gdbus=' + join_paths('${bindir}', 'gdbus'),
|
|
|
|
- 'gdbus_codegen=' + join_paths('${bindir}', 'gdbus-codegen'),
|
|
|
|
- 'gresource=' + join_paths('${bindir}', 'gresource'),
|
|
|
|
+ 'gdbus_codegen=' + join_paths('${devbindir}', 'gdbus-codegen'),
|
|
|
|
+ 'gresource=' + join_paths('${devbindir}', 'gresource'),
|
|
|
|
'gsettings=' + join_paths('${bindir}', 'gsettings')],
|
|
|
|
version : glib_version,
|
|
|
|
install_dir : glib_pkgconfigreldir,
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -968,6 +969,7 @@ 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,
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -975,7 +977,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
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -985,7 +987,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,
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -994,6 +996,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
|
|
|
|
diff --git a/glib/meson.build b/glib/meson.build
|
2022-10-21 18:38:19 +00:00
|
|
|
index 1e6dc36be..6b5de6c86 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/glib/meson.build
|
|
|
|
+++ b/glib/meson.build
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -396,9 +396,10 @@ pkg.generate(libglib,
|
2020-04-24 23:36:52 +00:00
|
|
|
subdirs : ['glib-2.0'],
|
|
|
|
extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
|
|
|
|
variables : ['bindir=' + join_paths('${prefix}', get_option('bindir')),
|
|
|
|
- 'glib_genmarshal=' + join_paths('${bindir}', 'glib-genmarshal'),
|
|
|
|
- 'gobject_query=' + join_paths('${bindir}', 'gobject-query'),
|
|
|
|
- 'glib_mkenums=' + join_paths('${bindir}', 'glib-mkenums')],
|
|
|
|
+ 'devbindir=' + get_option('devbindir'),
|
|
|
|
+ 'glib_genmarshal=' + join_paths('${devbindir}', 'glib-genmarshal'),
|
|
|
|
+ 'gobject_query=' + join_paths('${devbindir}', 'gobject-query'),
|
|
|
|
+ 'glib_mkenums=' + join_paths('${devbindir}', 'glib-mkenums')],
|
|
|
|
version : glib_version,
|
|
|
|
install_dir : glib_pkgconfigreldir,
|
|
|
|
filebase : 'glib-2.0',
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -435,6 +436,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,
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -447,7 +449,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'
|
|
|
|
diff --git a/gobject/meson.build b/gobject/meson.build
|
2022-10-21 18:38:19 +00:00
|
|
|
index a994eb591..36b36b925 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/gobject/meson.build
|
|
|
|
+++ b/gobject/meson.build
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -79,7 +79,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
|
|
|
)
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -155,6 +155,7 @@ meson.override_dependency('gobject-2.0', libgobject_dep)
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
executable('gobject-query', 'gobject-query.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
|
|
|
dependencies : [libglib_dep, libgobject_dep])
|
|
|
|
|
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
2022-10-21 18:38:19 +00:00
|
|
|
index f13cbfdd5..f218db581 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/meson_options.txt
|
|
|
|
+++ b/meson_options.txt
|
|
|
|
@@ -3,6 +3,11 @@ option('runtime_libdir',
|
|
|
|
value : '',
|
|
|
|
description : 'install runtime libraries relative to libdir')
|
|
|
|
|
|
|
|
+option('devbindir',
|
|
|
|
+ type : 'string',
|
|
|
|
+ value : '',
|
|
|
|
+ description : 'bindir for development tools')
|
|
|
|
+
|
|
|
|
option('iconv',
|
|
|
|
type : 'combo',
|
|
|
|
choices : ['auto', 'libc', 'external'],
|
2022-10-21 18:38:19 +00:00
|
|
|
diff --git a/tools/meson.build b/tools/meson.build
|
|
|
|
index 0542fb89b..bfb10cd80 100644
|
|
|
|
--- 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)
|