meson.build 715 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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',
schneider's avatar
schneider committed
27
28
  '--specs=nano.specs',
  '-u _printf_float',
29
30
31
  language: 'c',
)

32
33
# python3 = import('python').find_installation('python3')
python3 = 'python3'
Rahix's avatar
Rahix committed
34

35
subdir('lib/')
36
subdir('bootloader/')
Rahix's avatar
Rahix committed
37
38

subdir('epicardium/')
Rahix's avatar
Rahix committed
39
40
subdir('pycardium/')

41
subdir('hw-tests/')