genmarshal Only wrap body prototypes in C++ guards
[glib.git] / gio / gdbus-2.0 / codegen / meson.build
blob0e9ffbdfade70779c837f971e10c63e93e953ab8
1 gdbus_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',
11 gdbus_codegen_conf = configuration_data()
12 gdbus_codegen_conf.set('VERSION', glib_version)
13 gdbus_codegen_conf.set('PYTHON', python.path())
15 # Install gdbus-codegen executable
16 # FIXME: Set permissions
17 gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
18   output : 'gdbus-codegen',
19   install : true,
20   install_dir : get_option('bindir'),
21   configuration : gdbus_codegen_conf
24 codegen_dir = join_paths(get_option('datadir'), 'glib-2.0/codegen')
26 configure_file(input : 'config.py.in',
27   output : 'config.py',
28   install : true,
29   install_dir : codegen_dir,
30   configuration : gdbus_codegen_conf
33 blank_conf = configuration_data()
34 foreach f : gdbus_codegen_files
35   # Copy these into the builddir so that gdbus-codegen can be used uninstalled
36   # and then install it too so that it can be used after installation
37   configure_file(input : f, output : f,
38     install : true,
39     install_dir : codegen_dir,
40     configuration : blank_conf)
41 endforeach