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.
20 lines
727 B
20 lines
727 B
project('linkcustom', 'c') |
|
|
|
# This would require passing the static linker to the build script or having |
|
# it detect it by itself. I'm too lazy to implement it now and it is not |
|
# really needed for testing that custom targets work. It is the responsibility |
|
# of the custom target to produce things in the correct format. |
|
assert(not meson.is_cross(), 'MESON_SKIP_TEST cross checking not implemented.') |
|
|
|
cc = meson.get_compiler('c') |
|
genprog = find_program('custom_stlib.py') |
|
|
|
clib = custom_target('linkcustom', |
|
output: 'libflob.a', |
|
command: [genprog, |
|
'-o', '@OUTPUT@', |
|
'--private-dir', '@PRIVATE_DIR@'] + cc.cmd_array()) |
|
|
|
#exe = executable('prog', 'prog.c', link_with: clib) |
|
#test('linkcustom', exe) |
|
|