You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
544 B
Meson
15 lines
544 B
Meson
project('blob-object', 'c', default_options: ['c_std=c17', 'warning_level=3'])
|
|
|
|
compiler = meson.get_compiler('c')
|
|
if compiler.get_id() == 'clang' or compiler.get_id() == 'gcc'
|
|
# MSVC does not support VLAs for us to disable them.
|
|
add_global_arguments('-Werror=vla', language: 'c')
|
|
endif
|
|
|
|
if target_machine.system() == 'windows'
|
|
add_global_arguments('-DUNICODE', '-D_CRT_SECURE_NO_WARNINGS', language: 'c')
|
|
else
|
|
# the ELF blob maker is not portable currently
|
|
subproject('blob-object-elf')
|
|
endif
|
|
subproject('blob-object-coff') |