2016-09-22 04:40:31 -04:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
|
|
|
|
2016-09-27 09:38:07 -04: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-10-12 03:38:26 -04:00
|
|
|
bluedroid/profiles/core/include \
|
2016-10-24 08:07:19 -04:00
|
|
|
bluedroid/profiles/esp/blufi/include \
|
2016-09-27 09:38:07 -04:00
|
|
|
bluedroid/profiles/esp/include \
|
|
|
|
bluedroid/profiles/std/avrc/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 \
|
|
|
|
bluedroid/stack/include \
|
2016-10-31 09:40:01 -04:00
|
|
|
bluedroid/stack_api/include \
|
2016-09-27 09:38:07 -04:00
|
|
|
bluedroid/include \
|
|
|
|
include
|
2016-09-22 04:40:31 -04:00
|
|
|
|
|
|
|
CFLAGS += -Wno-error=unused-label -Wno-error=return-type -Wno-error=missing-braces -Wno-error=pointer-sign -Wno-error=parentheses
|
|
|
|
|
2016-11-03 04:28:04 -04:00
|
|
|
LIBS := btdm_app coexist
|
2016-09-22 04:40:31 -04:00
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS := -lbt -L$(abspath lib) \
|
|
|
|
$(addprefix -l,$(LIBS)) \
|
|
|
|
$(LINKER_SCRIPTS)
|
|
|
|
|
2016-09-27 09:38:07 -04:00
|
|
|
COMPONENT_SRCDIRS := bluedroid/bta/dm \
|
|
|
|
bluedroid/bta/gatt \
|
|
|
|
bluedroid/bta/hh \
|
2016-10-21 03:12:22 -04:00
|
|
|
bluedroid/bta/sdp \
|
2016-09-27 09:38:07 -04: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 05:08:37 -04:00
|
|
|
bluedroid/profiles/esp/blufi \
|
2016-09-27 09:38:07 -04:00
|
|
|
bluedroid/profiles/esp/ble_button \
|
2016-10-11 08:05:58 -04:00
|
|
|
bluedroid/profiles/esp/wechat_AirSync \
|
2016-09-27 09:38:07 -04:00
|
|
|
bluedroid/profiles/esp \
|
|
|
|
bluedroid/profiles/std/avrc \
|
|
|
|
bluedroid/profiles/std/battery \
|
|
|
|
bluedroid/profiles/std/dis \
|
|
|
|
bluedroid/profiles/std/hid \
|
|
|
|
bluedroid/profiles/std/hid_le \
|
|
|
|
bluedroid/profiles/std/rfcomm \
|
2016-10-25 23:25:24 -04:00
|
|
|
bluedroid/profiles/std/sdp \
|
2016-10-28 03:48:27 -04:00
|
|
|
bluedroid/profiles/std/gap \
|
2016-09-27 09:38:07 -04: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 \
|
|
|
|
bluedroid/stack \
|
2016-10-31 09:40:01 -04:00
|
|
|
bluedroid/stack_api \
|
2016-09-27 09:38:07 -04:00
|
|
|
bluedroid \
|
|
|
|
.
|
2016-09-22 04:40:31 -04: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 01:59:39 -04:00
|
|
|
# automatically trigger a git submodule update if BT library is missing
|
2016-10-04 01:33:18 -04:00
|
|
|
$(eval $(call SubmoduleCheck,$(ALL_LIB_FILES),$(COMPONENT_PATH)/lib))
|