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.
30 lines
684 B
30 lines
684 B
project('through configure') |
|
|
|
if not add_languages('nasm', required: false) |
|
error('MESON_SKIP_TEST: nasm not found') |
|
endif |
|
|
|
if not host_machine.cpu_family().startswith('x86') |
|
assert(not add_languages('nasm', required: false)) |
|
error('MESON_SKIP_TEST: nasm only supported for x86 and x86_64') |
|
endif |
|
|
|
if meson.backend().startswith('vs') |
|
error('MESON_SKIP_TEST: VS backend does not recognise NASM yet') |
|
endif |
|
|
|
section = host_machine.system() == 'macos' ? '.rodata' : '.rdata' |
|
|
|
sources = configure_file( |
|
input: 'dummy.asm.in', |
|
output: 'dummy.asm', |
|
configuration: { |
|
'section': section |
|
} |
|
) |
|
|
|
dummy = library( |
|
'dummy', |
|
sources, |
|
vs_module_defs: 'dummy.def', |
|
)
|
|
|