| 1 |
project('cups test', 'c') |
| 2 |
|
| 3 |
cups_dep = dependency('cups', version : '>=1.4', required: false) |
| 4 |
|
| 5 |
if not cups_dep.found() |
| 6 |
error('MESON_SKIP_TEST cups not found.') |
| 7 |
endif |
| 8 |
|
| 9 |
e = executable('cups_prog', 'cups_prog.c', dependencies : cups_dep) |
| 10 |
|
| 11 |
test('cupstest', e) |
| 12 |
|
| 13 |
# ensure we can find the cups dependency via the legacy and modern config-tool |
| 14 |
# options |
| 15 |
depCC = dependency('cups', version : '>=1.4', method : 'cups-config') |
| 16 |
depCT = dependency('cups', version : '>=1.4', method : 'config-tool') |
| 17 |
depCM = dependency('cups', version : '>=1.4', method : 'cmake') |
| 18 |
|
| 19 |
# check we can apply a version constraint |
| 20 |
dependency('cups', version: '>=@0@'.format(depCT.version()), method: 'pkg-config', required: false) |
| 21 |
dependency('cups', version: '>=@0@'.format(depCT.version()), method: 'config-tool') |