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