The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
423 B
17 lines
423 B
5 years ago
|
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')
|