-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcomponents.cmake
124 lines (106 loc) · 3.34 KB
/
components.cmake
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Copyright 2024 NXP
# SPDX-License-Identifier: BSD-3-Clause
if (CONFIG_MCUX_COMPONENT_middleware.audio_voice.maestro.element.decoder.aac.enable)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/decoders/aac
SOURCES aac_extractmetadata.c
TOOLCHAINS armgcc mcux
)
mcux_add_macro(
CC "-DAAC_DEC=1"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.audio_voice.maestro.element.decoder.flac.enable)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/decoders/flac
SOURCES flac_extractmetadata.c
TOOLCHAINS armgcc iar mcux
)
mcux_add_macro(
CC "-DFLAC_DEC=1"
TOOLCHAINS armgcc iar mcux
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.audio_voice.maestro.element.decoder.mp3.enable)
mcux_add_include(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/decoders
INCLUDES mp3
TOOLCHAINS armgcc iar mcux
)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/decoders
SOURCES mp3/*.h
mp3/*.c
TOOLCHAINS armgcc iar mcux
)
mcux_add_macro(
CC "-DMP3_DEC=1"
TOOLCHAINS armgcc iar mcux
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.audio_voice.maestro.element.decoder.wav.enable)
mcux_add_include(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/decoders
INCLUDES wav
TOOLCHAINS armgcc iar mcux
)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/decoders
SOURCES wav/*.h
wav/*.c
TOOLCHAINS armgcc iar mcux
)
mcux_add_macro(
CC "-DWAV_DEC=1"
TOOLCHAINS armgcc iar mcux
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.audio_voice.maestro.element.decoder.opus_ogg.enable)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/decoders
SOURCES opus/opus_extractmetadata.c
)
mcux_add_macro(
CC "-DOGG_OPUS_DEC=1"
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.audio_voice.maestro.element.encoder.opus.enable)
mcux_add_include(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/encoders
INCLUDES opus
)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/audio_voice/maestro/components/encoders
SOURCES opus/opusenc_cei.c
opus/opusenc_cei.h
)
mcux_add_macro(
CC "-DOPUS_ENCODE=1\
-DSTREAMER_ENABLE_CEI_OPUS=1"
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.audio_voice.maestro.element.audio_proc.asrc.enable)
mcux_add_macro(
CC "-DASRC_PROC=1"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.audio_voice.maestro.element.audio_proc.ssrc.enable)
mcux_add_macro(
CC "-DSSRC_PROC=1"
TOOLCHAINS armgcc iar mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_middleware.audio_voice.components.voice_seeker)
mcux_add_macro(
CC "-DVOICE_SEEKER_PROC=1"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_middleware.audio_voice.components.vit)
mcux_add_macro(
CC "-DVIT_PROC=1"
TOOLCHAINS armgcc mcux
)
endif()