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('MAJOR_VERSION', major_version) 14gdbus_codegen_conf.set('MINOR_VERSION', minor_version) 15gdbus_codegen_conf.set('PYTHON', python_name) 16gdbus_codegen_conf.set('DATADIR', glib_datadir) 17 18# Install gdbus-codegen executable 19gdbus_codegen = configure_file(input : 'gdbus-codegen.in', 20 output : 'gdbus-codegen', 21 install_dir : get_option('bindir'), 22 configuration : gdbus_codegen_conf 23) 24 # Provide tools for others when we're a subproject and they use the Meson GNOME module 25meson.override_find_program('gdbus-codegen', gdbus_codegen) 26 27codegen_dir = join_paths(glib_datadir, 'glib-2.0', 'codegen') 28 29gdbus_codegen_built_files = [] 30gdbus_codegen_built_files += configure_file(input : 'config.py.in', 31 output : 'config.py', 32 install_dir : codegen_dir, 33 configuration : gdbus_codegen_conf) 34 35foreach f : gdbus_codegen_files 36 # Copy these into the builddir so that gdbus-codegen can be used uninstalled 37 # and then install it too so that it can be used after installation 38 gdbus_codegen_built_files += configure_file(input : f, output : f, 39 install_dir : codegen_dir, 40 copy : true) 41endforeach 42