2016-09-22 16:40:31 +08:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
|
|
|
|
2016-09-27 21:38:07 +08:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS := bluedroid/bta/include \
|
|
|
|
bluedroid/bta/sys/include \
|
|
|
|
bluedroid/btcore/include \
|
|
|
|
bluedroid/device/include \
|
|
|
|
bluedroid/gki/include \
|
|
|
|
bluedroid/hci/include \
|
|
|
|
bluedroid/osi/include \
|
2016-11-02 17:42:26 +08:00
|
|
|
bluedroid/utils/include \
|
2016-10-12 03:38:26 -04:00
|
|
|
bluedroid/profiles/core/include \
|
2016-10-24 20:07:19 +08:00
|
|
|
bluedroid/profiles/esp/blufi/include \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid/profiles/esp/include \
|
|
|
|
bluedroid/profiles/std/battery/include \
|
|
|
|
bluedroid/profiles/std/dis/include \
|
|
|
|
bluedroid/profiles/std/hid/include \
|
|
|
|
bluedroid/profiles/std/rfcomm/include \
|
|
|
|
bluedroid/profiles/std/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 \
|
2016-11-02 17:42:26 +08:00
|
|
|
bluedroid/stack/avct/include \
|
|
|
|
bluedroid/stack/avrc/include \
|
|
|
|
bluedroid/stack/avdt/include \
|
|
|
|
bluedroid/stack/a2dp/include \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid/stack/include \
|
2016-11-15 14:32:22 +08:00
|
|
|
bluedroid/utils/include \
|
2016-11-05 20:40:07 +08:00
|
|
|
bluedroid/api/include \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid/include \
|
|
|
|
include
|
2016-09-22 16:40:31 +08:00
|
|
|
|
|
|
|
CFLAGS += -Wno-error=unused-label -Wno-error=return-type -Wno-error=missing-braces -Wno-error=pointer-sign -Wno-error=parentheses
|
|
|
|
|
2016-11-03 16:28:04 +08:00
|
|
|
LIBS := btdm_app coexist
|
2016-09-22 16:40:31 +08:00
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS := -lbt -L$(abspath lib) \
|
|
|
|
$(addprefix -l,$(LIBS)) \
|
|
|
|
$(LINKER_SCRIPTS)
|
|
|
|
|
2016-09-27 21:38:07 +08:00
|
|
|
COMPONENT_SRCDIRS := bluedroid/bta/dm \
|
|
|
|
bluedroid/bta/gatt \
|
|
|
|
bluedroid/bta/hh \
|
2016-10-21 15:12:22 +08:00
|
|
|
bluedroid/bta/sdp \
|
2016-11-02 19:40:46 +08:00
|
|
|
bluedroid/bta/av \
|
|
|
|
bluedroid/bta/ar \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid/bta/sys \
|
|
|
|
bluedroid/bta \
|
|
|
|
bluedroid/btcore \
|
|
|
|
bluedroid/btif \
|
|
|
|
bluedroid/device \
|
|
|
|
bluedroid/gki \
|
|
|
|
bluedroid/hci \
|
|
|
|
bluedroid/main \
|
|
|
|
bluedroid/osi \
|
2016-10-12 03:38:26 -04:00
|
|
|
bluedroid/profiles/core \
|
2016-10-24 17:08:37 +08:00
|
|
|
bluedroid/profiles/esp/blufi \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid/profiles/esp/ble_button \
|
2016-10-11 08:05:58 -04:00
|
|
|
bluedroid/profiles/esp/wechat_AirSync \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid/profiles/esp \
|
|
|
|
bluedroid/profiles/std/battery \
|
|
|
|
bluedroid/profiles/std/dis \
|
|
|
|
bluedroid/profiles/std/hid \
|
|
|
|
bluedroid/profiles/std/hid_le \
|
|
|
|
bluedroid/profiles/std/rfcomm \
|
2016-10-26 11:25:24 +08:00
|
|
|
bluedroid/profiles/std/sdp \
|
2016-10-28 15:48:27 +08:00
|
|
|
bluedroid/profiles/std/gap \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid/profiles/std \
|
|
|
|
bluedroid/profiles \
|
|
|
|
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 \
|
2016-11-02 17:42:26 +08:00
|
|
|
bluedroid/stack/avct \
|
|
|
|
bluedroid/stack/avrc \
|
|
|
|
bluedroid/stack/avdt \
|
|
|
|
bluedroid/stack/a2dp \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid/stack \
|
2016-11-15 14:32:22 +08:00
|
|
|
bluedroid/utils \
|
2016-11-05 20:40:07 +08:00
|
|
|
bluedroid/api \
|
2016-09-27 21:38:07 +08:00
|
|
|
bluedroid \
|
|
|
|
.
|
2016-09-22 16:40:31 +08:00
|
|
|
|
|
|
|
include $(IDF_PATH)/make/component_common.mk
|
|
|
|
|
|
|
|
ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
|
|
|
|
$(COMPONENT_LIBRARY): $(ALL_LIB_FILES)
|
|
|
|
|
2016-09-26 15:59:39 +10:00
|
|
|
# automatically trigger a git submodule update if BT library is missing
|
2016-10-04 16:33:18 +11:00
|
|
|
$(eval $(call SubmoduleCheck,$(ALL_LIB_FILES),$(COMPONENT_PATH)/lib))
|