See https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/85.0.54
parent
79d13ce783
commit
bd64692f63
4 changed files with 51 additions and 7 deletions
@ -0,0 +1,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') |
Loading…
Reference in new issue