1ifneq ($(GEN_SDK_LIB),1) 2obj-y := audioplayers/ common/ main/ key/ pwl/ battery/ factory/ cmd/ mic/ 3 4ifeq ($(HAAS_OTA_ENABLED),1) 5obj-y += ota/ 6endif 7 8ifeq ($(MASTER_APP_SUPPORT),1) 9obj-y += master/ 10endif 11 12ifeq ($(APP_TEST_AUDIO),1) 13obj-y += apptester/ 14endif 15 16ifeq ($(BTUSB_AUDIO_MODE),1) 17obj-y += usbaudio/ 18endif 19ifeq ($(BT_USB_AUDIO_DUAL_MODE),1) 20obj-y += btusbaudio/ 21obj-y += usbaudio/ 22endif 23 24ifeq ($(APP_TEST_SDMMC),1) 25obj-y += sdmmc/ 26endif 27 28ifeq ($(ANC_APP),1) 29obj-y += anc/ 30endif 31 32ifeq ($(VOICE_DETECTOR_EN),1) 33obj-y += voice_detector/ 34endif 35 36ifeq ($(ALIOS_APP_SUPPORT),1) 37obj-y += alios/ 38endif 39 40ifeq ($(AIS_APP_SUPPORT),1) 41obj-y += ais/ 42endif 43 44ifeq ($(AIA_APP_SUPPORT),1) 45obj-y += aia/ 46endif 47 48ifeq ($(MASTER_APP_SUPPORT),1) 49obj-y += master/ 50endif 51 52else 53 54cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 55 56LIB_NAME := libapps 57obj-y := 58ifneq ($(SDK),1) 59 60src_obj := audioplayers/ common/ main/ key/ pwl/ battery/ factory/ cmd/ mic/ 61 62ifeq ($(APP_TEST_AUDIO),1) 63src_obj += apptester/ 64endif 65 66ifeq ($(BTUSB_AUDIO_MODE),1) 67src_obj += usbaudio/ 68endif 69 70ifeq ($(APP_TEST_SDMMC),1) 71src_obj += sdmmc/ 72endif 73 74ifeq ($(ANC_APP),1) 75src_obj += anc/ 76endif 77 78ifeq ($(VOICE_DETECTOR_EN),1) 79src_obj += voice_detector/ 80endif 81 82ifeq ($(BT_USB_AUDIO_DUAL_MODE),1) 83src_obj += btusbaudio/ 84endif 85 86ifeq ($(ALIOS_APP_SUPPORT),1) 87#src_obj += alios/ 88endif 89 90ifeq ($(AIS_APP_SUPPORT),1) 91#src_obj += ais/ 92endif 93 94ifeq ($(AIA_APP_SUPPORT),1) 95#src_obj += aia/ 96endif 97 98$(LIB_NAME)-y := $(src_obj) 99endif 100 101ifeq ($(ALIOS_APP_SUPPORT),1) 102obj-y += alios/ 103endif 104 105ifeq ($(AIS_APP_SUPPORT),1) 106obj-y += ais/ 107endif 108 109ifeq ($(AIA_APP_SUPPORT),1) 110obj-y += aia/ 111endif 112 113ifeq ($(MASTER_APP_SUPPORT),1) 114obj-y += master/ 115endif 116 117obj-y += $(LIB_NAME).a 118 119endif 120 121subdir-ccflags-y += -Iapps/apptester \ 122 -Iapps/audioplayers \ 123 -Iapps/common \ 124 -Iapps/sdmmc \ 125 -Iapps/main \ 126 -Iapps/cmd \ 127 -Iapps/key \ 128 -Iapps/pwl \ 129 -Iapps/ota \ 130 -Iapps/master \ 131 -Iapps/battery \ 132 -Iservices/voicepath \ 133 -Iservices/ble_app/app_datapath \ 134 -Iutils/list \ 135 -Iutils/heap \ 136 -Iservices/cp_server \ 137 -Iservices/multimedia/audio/process/filters/include 138ifeq ($(BT_USB_AUDIO_DUAL_MODE),1) 139subdir-ccflags-y += -Iapps/btusbaudio 140endif 141 142ifeq ($(A2DP_LDAC_ON),1) 143subdir-ccflags-y += -Ithirdparty/audio_codec_lib/ldac/inc 144endif 145 146subdir-ccflags-y += -Iplatform/hal -Iplatform/cmsis -Iplatform/cmsis/inc -Inet/include/ -Inet/include/byteorder -Inet/include/os -Inet/include/unaligned 147subdir-ccflags-y += -Inet -Inet/net80211 -Inet/core -Inet/lib -Inet/net_os -Iutils/hwtimer_list -Iplatform/drivers/ana 148subdir-ccflags-y += -Inet/lwip/src/include/ 149subdir-ccflags-y += -Iservices/wifi_app/wifi_voice 150ifeq ($(SUPPORT_IR),1) 151subdir-ccflags-y += -Iplatform/hal/ir/inc 152endif 153