test cases/unit/73 dep files/meson.build
raw| 1 | project('test', 'c') |
| 2 | |
| 3 | python = find_program('python3') |
| 4 | |
| 5 | lib = library('foo', 'foo.c') |
| 6 | |
| 7 | # The library does not yet exist but we can already use its path during |
| 8 | # configuration. This should not trigger a reconfigure when the library is |
| 9 | # rebuilt. |
| 10 | configure_file( |
| 11 | output: 'out.txt', |
| 12 | capture: true, |
| 13 | command: [python, '-c', 'import sys; print(sys.argv[1])', lib.full_path()], |
| 14 | ) |
| 15 | |
| 16 | message('Project configured') |