mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 16:26:17 +01:00
30b25a6fd9
configure_file preserves the attributes, so the templates need to be executable for the (installed) outputs to be executable. https://bugzilla.gnome.org/show_bug.cgi?id=787671
42 lines
1.1 KiB
Meson
42 lines
1.1 KiB
Meson
gdbus_codegen_files = [
|
|
'__init__.py',
|
|
'codegen.py',
|
|
'codegen_main.py',
|
|
'codegen_docbook.py',
|
|
'dbustypes.py',
|
|
'parser.py',
|
|
'utils.py',
|
|
]
|
|
|
|
gdbus_codegen_conf = configuration_data()
|
|
gdbus_codegen_conf.set('VERSION', glib_version)
|
|
gdbus_codegen_conf.set('PYTHON', python.path())
|
|
gdbus_codegen_conf.set('DATADIR', glib_datadir)
|
|
|
|
# Install gdbus-codegen executable
|
|
gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
|
|
output : 'gdbus-codegen',
|
|
install : true,
|
|
install_dir : get_option('bindir'),
|
|
configuration : gdbus_codegen_conf
|
|
)
|
|
|
|
codegen_dir = join_paths(get_option('datadir'), 'glib-2.0/codegen')
|
|
|
|
configure_file(input : 'config.py.in',
|
|
output : 'config.py',
|
|
install : true,
|
|
install_dir : codegen_dir,
|
|
configuration : gdbus_codegen_conf
|
|
)
|
|
|
|
blank_conf = configuration_data()
|
|
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
|
|
configure_file(input : f, output : f,
|
|
install : true,
|
|
install_dir : codegen_dir,
|
|
configuration : blank_conf)
|
|
endforeach
|