2016-09-22 08:40:31 +00:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
2017-01-10 05:04:04 +00:00
|
|
|
ifdef CONFIG_BT_ENABLED
|
2016-09-22 08:40:31 +00:00
|
|
|
|
2017-03-07 17:20:33 +00:00
|
|
|
COMPONENT_SRCDIRS := .
|
|
|
|
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS := include
|
|
|
|
|
|
|
|
LIBS := btdm_app
|
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS := -lbt -L $(COMPONENT_PATH)/lib \
|
|
|
|
$(addprefix -l,$(LIBS))
|
|
|
|
|
|
|
|
# re-link program if BT binary libs change
|
|
|
|
COMPONENT_ADD_LINKER_DEPS := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
|
|
|
|
|
|
|
|
COMPONENT_SUBMODULES += lib
|
|
|
|
|
2018-08-30 03:24:34 +00:00
|
|
|
ifeq ($(GCC_NOT_5_2_0), 1)
|
2018-08-28 10:18:59 +00:00
|
|
|
# TODO: annotate fallthroughs in Bluedroid code with comments
|
|
|
|
CFLAGS += -Wno-implicit-fallthrough
|
2018-08-30 03:24:34 +00:00
|
|
|
endif
|
2018-08-28 10:18:59 +00:00
|
|
|
|
2017-03-07 17:20:33 +00:00
|
|
|
ifdef CONFIG_BLUEDROID_ENABLED
|
|
|
|
|
2020-02-05 08:08:29 +00:00
|
|
|
COMPONENT_SRCDIRS += common/osi \
|
|
|
|
common/btc/core
|
|
|
|
|
2018-04-08 04:10:50 +00:00
|
|
|
COMPONENT_PRIV_INCLUDEDIRS += bluedroid/bta/include \
|
|
|
|
bluedroid/bta/ar/include \
|
|
|
|
bluedroid/bta/av/include \
|
2018-05-21 03:33:30 +00:00
|
|
|
bluedroid/bta/hf_client/include \
|
2018-04-08 04:10:50 +00:00
|
|
|
bluedroid/bta/dm/include \
|
|
|
|
bluedroid/bta/gatt/include \
|
|
|
|
bluedroid/bta/hh/include \
|
|
|
|
bluedroid/bta/jv/include \
|
|
|
|
bluedroid/bta/sdp/include \
|
|
|
|
bluedroid/bta/sys/include \
|
|
|
|
bluedroid/btcore/include \
|
|
|
|
bluedroid/device/include \
|
|
|
|
bluedroid/gki/include \
|
|
|
|
bluedroid/hci/include \
|
|
|
|
bluedroid/utils/include \
|
|
|
|
bluedroid/external/sbc/decoder/include \
|
|
|
|
bluedroid/external/sbc/encoder/include \
|
|
|
|
bluedroid/btc/core/include \
|
|
|
|
bluedroid/btc/profile/esp/blufi/include \
|
|
|
|
bluedroid/btc/profile/esp/include \
|
|
|
|
bluedroid/btc/profile/std/gatt/include \
|
|
|
|
bluedroid/btc/profile/std/gap/include \
|
|
|
|
bluedroid/btc/profile/std/a2dp/include \
|
|
|
|
bluedroid/btc/profile/std/include \
|
|
|
|
bluedroid/btc/include \
|
|
|
|
bluedroid/btif/include \
|
|
|
|
bluedroid/stack/btm/include \
|
|
|
|
bluedroid/stack/btu/include \
|
|
|
|
bluedroid/stack/gap/include \
|
|
|
|
bluedroid/stack/gatt/include \
|
|
|
|
bluedroid/stack/hcic/include \
|
|
|
|
bluedroid/stack/l2cap/include \
|
|
|
|
bluedroid/stack/sdp/include \
|
|
|
|
bluedroid/stack/smp/include \
|
|
|
|
bluedroid/stack/avct/include \
|
|
|
|
bluedroid/stack/avrc/include \
|
|
|
|
bluedroid/stack/avdt/include \
|
|
|
|
bluedroid/stack/a2dp/include \
|
|
|
|
bluedroid/stack/rfcomm/include \
|
|
|
|
bluedroid/stack/include \
|
|
|
|
bluedroid/utils/include \
|
2020-02-05 08:08:29 +00:00
|
|
|
bluedroid/common/include \
|
|
|
|
common/btc/include \
|
|
|
|
common/osi/include \
|
|
|
|
common/include
|
2016-09-22 08:40:31 +00:00
|
|
|
|
2018-04-08 04:10:50 +00:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS += bluedroid/api/include/api
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS += bluedroid/bta/dm \
|
|
|
|
bluedroid/bta/gatt \
|
|
|
|
bluedroid/bta/hh \
|
|
|
|
bluedroid/bta/sdp \
|
|
|
|
bluedroid/bta/av \
|
|
|
|
bluedroid/bta/ar \
|
|
|
|
bluedroid/bta/sys \
|
|
|
|
bluedroid/bta/jv \
|
2018-05-21 03:33:30 +00:00
|
|
|
bluedroid/bta/hf_client \
|
2018-04-08 04:10:50 +00:00
|
|
|
bluedroid/bta \
|
|
|
|
bluedroid/btcore \
|
|
|
|
bluedroid/btif \
|
|
|
|
bluedroid/device \
|
|
|
|
bluedroid/gki \
|
|
|
|
bluedroid/hci \
|
|
|
|
bluedroid/main \
|
|
|
|
bluedroid/osi \
|
|
|
|
bluedroid/external/sbc/decoder/srce \
|
|
|
|
bluedroid/external/sbc/encoder/srce \
|
|
|
|
bluedroid/btc/core \
|
|
|
|
bluedroid/btc/profile/esp/blufi \
|
|
|
|
bluedroid/btc/profile/std/gap \
|
|
|
|
bluedroid/btc/profile/std/gatt \
|
|
|
|
bluedroid/btc/profile/std/a2dp \
|
|
|
|
bluedroid/btc/profile/std/avrc \
|
|
|
|
bluedroid/btc/profile/std/spp \
|
2018-05-21 03:33:30 +00:00
|
|
|
bluedroid/btc/profile/std/hf_client \
|
2018-04-08 04:10:50 +00:00
|
|
|
bluedroid/btc/profile \
|
|
|
|
bluedroid/stack/btm \
|
|
|
|
bluedroid/stack/btu \
|
|
|
|
bluedroid/stack/gap \
|
|
|
|
bluedroid/stack/gatt \
|
|
|
|
bluedroid/stack/hcic \
|
|
|
|
bluedroid/stack/include \
|
|
|
|
bluedroid/stack/l2cap \
|
|
|
|
bluedroid/stack/sdp \
|
|
|
|
bluedroid/stack/smp \
|
|
|
|
bluedroid/stack/avct \
|
|
|
|
bluedroid/stack/avrc \
|
|
|
|
bluedroid/stack/avdt \
|
|
|
|
bluedroid/stack/a2dp \
|
|
|
|
bluedroid/stack/rfcomm \
|
|
|
|
bluedroid/stack \
|
|
|
|
bluedroid/utils \
|
|
|
|
bluedroid/api \
|
|
|
|
bluedroid
|
2018-08-28 09:31:48 +00:00
|
|
|
|
2018-08-30 03:24:34 +00:00
|
|
|
ifeq ($(GCC_NOT_5_2_0), 1)
|
2018-08-28 09:31:48 +00:00
|
|
|
bluedroid/bta/sdp/bta_sdp_act.o: CFLAGS += -Wno-unused-const-variable
|
|
|
|
bluedroid/btc/core/btc_config.o: CFLAGS += -Wno-unused-const-variable
|
|
|
|
bluedroid/stack/btm/btm_sec.o: CFLAGS += -Wno-unused-const-variable
|
|
|
|
bluedroid/stack/smp/smp_keys.o: CFLAGS += -Wno-unused-const-variable
|
2018-08-30 03:24:34 +00:00
|
|
|
endif
|
2018-08-28 09:31:48 +00:00
|
|
|
|
2019-11-01 08:08:47 +00:00
|
|
|
ifdef CONFIG_BLE_MESH
|
|
|
|
|
2020-02-05 08:08:29 +00:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS += common/osi/include
|
2019-11-01 08:08:47 +00:00
|
|
|
COMPONENT_SRCDIRS += esp_ble_mesh/mesh_core/bluedroid_host
|
|
|
|
|
2020-02-05 08:08:29 +00:00
|
|
|
endif
|
2019-11-01 08:08:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_BLE_MESH
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS += esp_ble_mesh/mesh_common/include \
|
2020-06-08 09:23:17 +00:00
|
|
|
esp_ble_mesh/mesh_common/tinycrypt/include \
|
2019-11-01 08:08:47 +00:00
|
|
|
esp_ble_mesh/mesh_core \
|
|
|
|
esp_ble_mesh/mesh_core/include \
|
|
|
|
esp_ble_mesh/mesh_core/storage \
|
|
|
|
esp_ble_mesh/btc/include \
|
|
|
|
esp_ble_mesh/mesh_models/common/include \
|
|
|
|
esp_ble_mesh/mesh_models/client/include \
|
|
|
|
esp_ble_mesh/mesh_models/server/include \
|
|
|
|
esp_ble_mesh/api/core/include \
|
|
|
|
esp_ble_mesh/api/models/include \
|
|
|
|
esp_ble_mesh/api
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS += esp_ble_mesh/mesh_common \
|
2020-06-24 01:43:33 +00:00
|
|
|
esp_ble_mesh/mesh_common/tinycrypt/src \
|
2019-11-01 08:08:47 +00:00
|
|
|
esp_ble_mesh/mesh_core \
|
|
|
|
esp_ble_mesh/mesh_core/storage \
|
|
|
|
esp_ble_mesh/btc \
|
2020-10-09 01:27:49 +00:00
|
|
|
esp_ble_mesh/mesh_models/common \
|
2019-11-01 08:08:47 +00:00
|
|
|
esp_ble_mesh/mesh_models/client \
|
|
|
|
esp_ble_mesh/mesh_models/server \
|
|
|
|
esp_ble_mesh/api/core \
|
|
|
|
esp_ble_mesh/api/models
|
2017-01-10 05:04:04 +00:00
|
|
|
endif
|
2020-02-05 08:08:29 +00:00
|
|
|
|
|
|
|
ifdef CONFIG_NIMBLE_ENABLED
|
|
|
|
ifdef CONFIG_BLE_MESH
|
|
|
|
COMPONENT_PRIV_INCLUDEDIRS += common/btc/include \
|
|
|
|
common/include
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS += common/osi \
|
|
|
|
common/btc/core \
|
|
|
|
esp_ble_mesh/mesh_core/nimble_host
|
|
|
|
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS += common/osi/include
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|