1gdbus_codegen_files = [ 2 '__init__.py', 3 'codegen.py', 4 'codegen_main.py', 5 'codegen_docbook.py', 6 'dbustypes.py', 7 'parser.py', 8 'utils.py', 9] 10 11gdbus_codegen_conf = configuration_data() 12gdbus_codegen_conf.set('VERSION', glib_version) 13gdbus_codegen_conf.set('PYTHON', python_name) 14gdbus_codegen_conf.set('DATADIR', glib_datadir) 15 16# Install gdbus-codegen executable 17gdbus_codegen = configure_file(input : 'gdbus-codegen.in', 18 output : 'gdbus-codegen', 19 install_dir : get_option('bindir'), 20 configuration : gdbus_codegen_conf 21) 22 # Provide tools for others when we're a subproject and they use the Meson GNOME module 23meson.override_find_program('gdbus-codegen', gdbus_codegen) 24 25codegen_dir = join_paths(glib_datadir, 'glib-2.0', 'codegen') 26 27gdbus_codegen_built_files = [] 28gdbus_codegen_built_files += configure_file(input : 'config.py.in', 29 output : 'config.py', 30 install_dir : codegen_dir, 31 configuration : gdbus_codegen_conf) 32 33foreach f : gdbus_codegen_files 34 # Copy these into the builddir so that gdbus-codegen can be used uninstalled 35 # and then install it too so that it can be used after installation 36 gdbus_codegen_built_files += configure_file(input : f, output : f, 37 install_dir : codegen_dir, 38 copy : true) 39endforeach 40