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.
21 lines
596 B
21 lines
596 B
12 years ago
|
project('find program', 'c')
|
||
|
|
||
9 years ago
|
if build_machine.system() == 'windows'
|
||
12 years ago
|
# Things Windows does not provide:
|
||
|
# - an executable to copy files without prompting
|
||
|
# - working command line quoting
|
||
|
# - anything that you might actually need
|
||
|
# Because of these reasons we only check that
|
||
|
# the program can be found.
|
||
12 years ago
|
cp = find_program('xcopy')
|
||
12 years ago
|
else
|
||
8 years ago
|
cp = find_program('donotfindme', 'cp')
|
||
12 years ago
|
gen = generator(cp, \
|
||
11 years ago
|
output : '@BASENAME@.c', \
|
||
12 years ago
|
arguments : ['@INPUT@', '@OUTPUT@'])
|
||
12 years ago
|
|
||
12 years ago
|
generated = gen.process('source.in')
|
||
|
e = executable('prog', generated)
|
||
12 years ago
|
test('external exe', e)
|
||
12 years ago
|
endif
|