| 1 |
m_list = configure_file(input: 'marshaller.list', |
| 2 |
output: 'm.list', |
| 3 |
copy: true) |
| 4 |
|
| 5 |
idx = 0 |
| 6 |
mlists = ['marshaller.list', files('marshaller.list'), m_list] |
| 7 |
|
| 8 |
foreach mlist : mlists |
| 9 |
marshallers = gnome.genmarshal('marshaller-@0@'.format(idx), |
| 10 |
sources : mlist, |
| 11 |
install_header : true, |
| 12 |
install_dir : get_option('includedir') / 'subdir-@0@'.format(idx), |
| 13 |
extra_args : ['-UG_ENABLE_DEBUG', '--prototypes']) |
| 14 |
|
| 15 |
marshaller_c = marshallers[0] |
| 16 |
marshaller_h = marshallers[1] |
| 17 |
|
| 18 |
cdata = configuration_data() |
| 19 |
cdata.set_quoted('MARSHALLER_HEADER', 'marshaller-@[email protected]'.format(idx)) |
| 20 |
|
| 21 |
main_c = configure_file(input: 'main.c.in', |
| 22 |
output: 'main-@[email protected]'.format(idx), |
| 23 |
configuration: cdata) |
| 24 |
|
| 25 |
genmarshalexe = executable('genmarshalprog-@0@'.format(idx), |
| 26 |
main_c, marshaller_c, marshaller_h, |
| 27 |
dependencies : gobj) |
| 28 |
test('genmarshal test @0@'.format(idx), genmarshalexe) |
| 29 |
idx += 1 |
| 30 |
endforeach |
| 31 |
|
| 32 |
foreach mlist : mlists |
| 33 |
marshallers = gnome.genmarshal('marshaller-@0@'.format(idx), |
| 34 |
sources : [mlist], |
| 35 |
install_header : true, |
| 36 |
install_dir : get_option('includedir') / 'subdir-@0@'.format(idx), |
| 37 |
extra_args : ['-UG_ENABLE_DEBUG', '--prototypes']) |
| 38 |
|
| 39 |
marshaller_c = marshallers[0] |
| 40 |
marshaller_h = marshallers[1] |
| 41 |
|
| 42 |
cdata = configuration_data() |
| 43 |
cdata.set_quoted('MARSHALLER_HEADER', 'marshaller-@[email protected]'.format(idx)) |
| 44 |
|
| 45 |
main_c = configure_file(input: 'main.c.in', |
| 46 |
output: 'main-@[email protected]'.format(idx), |
| 47 |
configuration: cdata) |
| 48 |
|
| 49 |
genmarshalexe = executable('genmarshalprog-@0@'.format(idx), |
| 50 |
main_c, marshaller_c, marshaller_h, |
| 51 |
dependencies : gobj) |
| 52 |
test('genmarshal test @0@'.format(idx), genmarshalexe) |
| 53 |
idx += 1 |
| 54 |
endforeach |