forked from espressif/esp-adf-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component.mk
46 lines (35 loc) · 1.66 KB
/
component.mk
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
# "main" pseudo-component makefile.
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
COMPONENT_ADD_INCLUDEDIRS := esp_audio/include \
esp_codec/include/codec \
esp_codec/include/processing \
recorder_engine/include \
media_lib_sal/include \
media_lib_sal/include/port \
audio_misc/include \
esp_muxer/include
ifdef CONFIG_MEDIA_PROTOCOL_LIB_ENABLE
COMPONENT_ADD_INCLUDEDIRS += esp_media_protocols/include
endif
COMPONENT_SRCDIRS := . esp_codec audio_misc media_lib_sal media_lib_sal/port
LIBS := esp_processing esp_audio esp_codec esp_muxer
ifdef CONFIG_MEDIA_PROTOCOL_LIB_ENABLE
LIBS += esp_media_protocols
COMPONENT_SRCDIRS += esp_media_protocols
endif
ifdef CONFIG_REC_ENG_ENABLE_VAD_ONLY
LIBS += recorder_engine_vad
endif
ifdef CONFIG_REC_ENG_ENABLE_VAD_WWE
LIBS += recorder_engine_vad_wwe
endif
ifdef CONFIG_REC_ENG_ENABLE_VAD_WWE_AMR
LIBS += recorder_engine
endif
COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/esp_audio/lib/esp32 \
-L$(COMPONENT_PATH)/esp_codec/lib/esp32 \
-L$(COMPONENT_PATH)/recorder_engine/lib/esp32 \
-L$(COMPONENT_PATH)/esp_media_protocols/lib/esp32 \
-L$(COMPONENT_PATH)/esp_muxer/lib/esp32 \
$(addprefix -l,$(LIBS)) \
ALL_LIB_FILES += $(patsubst %,$(COMPONENT_PATH)/%/lib/esp32/lib%.a,$(LIBS))