Skip to content
Snippets Groups Projects
Verified Commit 393f95a1 authored by rahix's avatar rahix
Browse files

build: Introduce meson as the new build-system


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 8a17c522
No related branches found
No related tags found
1 merge request!3Rahix/new build
project(
'card10-firmware',
'c',
default_options: [
'buildtype=minsize',
'c_lto=true',
'c_std=c99',
'b_staticpic=false',
'b_asneeded=false',
],
)
assert(
meson.is_cross_build(),
'card10-firmware can only be cross-compiled for card10.\n' +
'Please use `--cross-file card10-cross.ini`.',
)
add_global_arguments(
meson.get_cross_property('target_defs'),
language: 'c',
)
add_global_link_arguments(
'-Wl,--gc-sections',
'-lm',
language: 'c',
)
subdir('lib/')
subdir('hw-tests/')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment