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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name = 'upy-minimal'
#################################
# MicroPython Generated Headers #
#################################
version_h = custom_target(
'mpversion.h',
output: 'mpversion.h',
command: [
micropython_gen_version,
python3,
micropython_dir,
'@OUTPUT@',
],
)
modules_h = custom_target(
'moduledefs.h',
output: 'moduledefs.h',
input: micropython_sources,
command: [micropython_gen_modules, '@OUTPUT@', '@INPUT@'],
)
qstr_h = custom_target(
'qstrdefs.generated.h',
output: 'qstrdefs.generated.h',
input: [modules_h, version_h, micropython_sources],
command: [micropython_gen_qstr, meson.current_source_dir(), '@OUTPUT@', '@INPUT@'],
)
###################
# MicroPython Lib #
###################
upy = static_library(
'micropython',
micropython_sources,
micropython_additional_sources,
modules_h,
qstr_h,
version_h,
include_directories: micropython_includes,
)
executable(
name + '.elf',
'main.c',
'uart.c',
'systick.c',
qstr_h,
include_directories: micropython_includes,
dependencies: [libcard10, max32665_startup],
link_with: upy,
link_args: [
'-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map',
],
)