-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
52 lines (45 loc) · 1.72 KB
/
meson.build
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
# -----------------------------------------------------------------------------
#
# This file is part of the µOS++ distribution.
# (https://github.com/micro-os-plus/)
# Copyright (c) 2022 Liviu Ionescu
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
#
# If a copy of the license was not distributed with this file, it can
# be obtained from https://opensource.org/licenses/MIT/.
#
# -----------------------------------------------------------------------------
# This file is intended to be consumed by applications with:
#
# `subdir('xpacks/micro-os-plus-semihosting')`
#
# The result is a dependency that can be referred as:
#
# `dependencies: [micro_os_plus_semihosting_dependency],`
# Note: the meson configuration is provided only as a proof of concept,
# for production it might need some refinements.
# -----------------------------------------------------------------------------
message('Processing xPack @micro-os-plus/semihosting...')
# https://mesonbuild.com/Reference-manual_functions.html#declare_dependency
micro_os_plus_semihosting_dependency = declare_dependency(
include_directories: include_directories(
'include',
),
sources: files(
'src/semihosting-startup.cpp',
'src/semihosting-syscalls.cpp',
'src/semihosting-trace.cpp'
),
dependencies: [
micro_os_plus_architecture_dependency,
micro_os_plus_diag_trace_dependency,
],
)
message('+ -I include')
message('+ src/semihosting-startup.cpp')
message('+ src/semihosting-syscalls.cpp')
message('+ src/semihosting-trace.cpp')
message('> micro_os_plus_semihosting_dependency')
# -----------------------------------------------------------------------------