glib/gio/gdbus-2.0/codegen/meson.build

36 lines
1.0 KiB
Meson
Raw Normal View History

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())
# Install gdbus-codegen executable
# FIXME: Set permissions
gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
output : 'gdbus-codegen',
install : true,
install_dir : 'bin', configuration : gdbus_codegen_conf)
configure_file(input : 'config.py.in',
output : 'config.py',
install : true,
install_dir : 'share/glib-2.0/codegen', 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 : 'share/glib-2.0/codegen',
configuration : blank_conf)
endforeach