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.
26 lines
637 B
26 lines
637 B
11 years ago
|
# This test is on its own because it is special.
|
||
|
# To run the test you need the prebuilt object
|
||
|
# file for the given platform.
|
||
|
#
|
||
|
# Combined with cross compilation this would make
|
||
|
# the state space explode so let's just keep this
|
||
|
# in its own subdir so it's not run during cross
|
||
|
# compilation tests.
|
||
|
|
||
|
project('prebuilt object', 'c')
|
||
|
|
||
9 years ago
|
if host_machine.system() == 'windows'
|
||
11 years ago
|
prebuilt = 'prebuilt.obj'
|
||
11 years ago
|
else
|
||
11 years ago
|
prebuilt = 'prebuilt.o'
|
||
11 years ago
|
endif
|
||
11 years ago
|
|
||
|
# Remember: do not put source.c in this
|
||
11 years ago
|
# declaration. run_tests.py generates the
|
||
|
# prebuilt object before running this test.
|
||
|
|
||
11 years ago
|
e = executable('prog', 'main.c',
|
||
11 years ago
|
objects : prebuilt)
|
||
11 years ago
|
|
||
|
test('objtest', e)
|