2016-12-20 23:37:24 +01:00
|
|
|
gdbus_codegen_files = [
|
|
|
|
'__init__.py',
|
|
|
|
'codegen.py',
|
|
|
|
'codegen_main.py',
|
|
|
|
'codegen_docbook.py',
|
2022-01-19 14:55:29 +01:00
|
|
|
'codegen_rst.py',
|
2016-12-20 23:37:24 +01:00
|
|
|
'dbustypes.py',
|
|
|
|
'parser.py',
|
|
|
|
'utils.py',
|
|
|
|
]
|
|
|
|
|
|
|
|
gdbus_codegen_conf = configuration_data()
|
|
|
|
gdbus_codegen_conf.set('VERSION', glib_version)
|
2020-01-27 11:36:03 +01:00
|
|
|
gdbus_codegen_conf.set('MAJOR_VERSION', major_version)
|
|
|
|
gdbus_codegen_conf.set('MINOR_VERSION', minor_version)
|
2018-07-18 17:03:22 +02:00
|
|
|
gdbus_codegen_conf.set('PYTHON', python_name)
|
2017-09-12 12:16:57 +02:00
|
|
|
gdbus_codegen_conf.set('DATADIR', glib_datadir)
|
2016-12-20 23:37:24 +01:00
|
|
|
|
|
|
|
# Install gdbus-codegen executable
|
|
|
|
gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
|
|
|
|
output : 'gdbus-codegen',
|
2016-12-09 20:30:22 +01:00
|
|
|
install_dir : get_option('bindir'),
|
2022-09-09 19:56:35 +02:00
|
|
|
install_tag : 'bin-devel',
|
2016-12-09 20:30:22 +01:00
|
|
|
configuration : gdbus_codegen_conf
|
|
|
|
)
|
2018-07-19 12:23:37 +02:00
|
|
|
# Provide tools for others when we're a subproject and they use the Meson GNOME module
|
|
|
|
meson.override_find_program('gdbus-codegen', gdbus_codegen)
|
2016-12-09 20:30:22 +01:00
|
|
|
|
2020-02-07 17:34:13 +01:00
|
|
|
codegen_dir = join_paths(glib_datadir, 'glib-2.0', 'codegen')
|
2016-12-20 23:37:24 +01:00
|
|
|
|
2022-11-24 13:09:55 +01:00
|
|
|
gdbus_codegen_built_files = []
|
|
|
|
gdbus_codegen_built_files += configure_file(input : 'config.py.in',
|
2017-10-11 12:36:58 +02:00
|
|
|
output : 'config.py',
|
|
|
|
install_dir : codegen_dir,
|
2022-09-18 22:51:55 +02:00
|
|
|
install_tag : 'bin-devel',
|
2017-10-11 12:36:58 +02:00
|
|
|
configuration : gdbus_codegen_conf)
|
2016-12-20 23:37:24 +01:00
|
|
|
|
|
|
|
foreach f : gdbus_codegen_files
|
|
|
|
# Copy these into the builddir so that gdbus-codegen can be used uninstalled
|
|
|
|
# and then install it too so that it can be used after installation
|
2022-11-24 13:09:55 +01:00
|
|
|
gdbus_codegen_built_files += configure_file(input : f, output : f,
|
|
|
|
install_dir : codegen_dir,
|
|
|
|
install_tag : 'bin-devel',
|
|
|
|
copy : true)
|
2016-12-20 23:37:24 +01:00
|
|
|
endforeach
|