| 1 |
project('test') |
| 2 |
|
| 3 |
subproject('sub') |
| 4 |
sometool = find_program('sometool') |
| 5 |
|
| 6 |
custom_target('something1', |
| 7 |
output: 'something1', |
| 8 |
input: [sometool], |
| 9 |
command: [find_program('customtarget.py'), '@INPUT@', '@OUTPUT@'], |
| 10 |
build_by_default: true) |
| 11 |
|
| 12 |
custom_target('something2', |
| 13 |
output: 'something2', |
| 14 |
input: files('foo.py'), |
| 15 |
command: [find_program('customtarget.py'), '@INPUT@', '@OUTPUT@'], |
| 16 |
depends: sometool, |
| 17 |
build_by_default: true) |
| 18 |
|
| 19 |
custom_target('something3', |
| 20 |
output: 'something3', |
| 21 |
input: files('foo.py'), |
| 22 |
command: [find_program('customtarget.py'), '@INPUT@', '@OUTPUT@'], |
| 23 |
depends: find_program('foo.py'), |
| 24 |
build_by_default: true) |
| 25 |
|
| 26 |
custom_target('something4', |
| 27 |
output: 'something4', |
| 28 |
input: [find_program('foo.py')], |
| 29 |
command: [find_program('customtarget.py'), '@INPUT@', '@OUTPUT@'], |
| 30 |
build_by_default: true) |
| 31 |
|
| 32 |
test('mytest1', |
| 33 |
find_program('test.py'), |
| 34 |
args: [find_program('foo.py')], |
| 35 |
depends: [sometool]) |
| 36 |
|
| 37 |
test('mytest2', |
| 38 |
find_program('test.py'), |
| 39 |
args: [sometool], |
| 40 |
depends: [find_program('foo.py')]) |