| 1 |
project('subproject', 'c', |
| 2 |
version : '1.0.0', |
| 3 |
license : ['sublicense1', 'sublicense2'], |
| 4 |
license_files: ['sublicense1.txt', 'sublicense2.txt'], |
| 5 |
) |
| 6 |
|
| 7 |
if not meson.is_subproject() |
| 8 |
error('Claimed to be master project even though we are a subproject.') |
| 9 |
endif |
| 10 |
|
| 11 |
assert(meson.project_name() == 'subproject', 'Incorrect subproject name') |
| 12 |
|
| 13 |
if meson.project_version() != '1.0.0' |
| 14 |
error('Incorrect version string in subproject.') |
| 15 |
endif |
| 16 |
|
| 17 |
i = include_directories('include') |
| 18 |
l = shared_library('sublib', 'sublib.c', include_directories : i, install : false, |
| 19 |
c_args : '-DBUILDING_SUB=2') |
| 20 |
t = executable('simpletest', 'simpletest.c', include_directories : i, link_with : l) |
| 21 |
test('plain', t) |