1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5ifeq ($(BOARD_HAVE_BLUETOOTH_BCM),true)
6LOCAL_CFLAGS += \
7	-DBOARD_HAVE_BLUETOOTH_BCM
8endif
9LOCAL_CFLAGS += -DBUILDCFG $(bdroid_CFLAGS) -std=c99
10LOCAL_CLANG_CFLAGS += -Wno-error=gnu-variable-sized-type-not-at-end
11
12LOCAL_SRC_FILES:= \
13    ./dm/bta_dm_ci.c \
14    ./dm/bta_dm_act.c \
15    ./dm/bta_dm_pm.c \
16    ./dm/bta_dm_main.c \
17    ./dm/bta_dm_cfg.c \
18    ./dm/bta_dm_api.c \
19    ./dm/bta_dm_sco.c \
20    ./gatt/bta_gattc_api.c \
21    ./gatt/bta_gatts_act.c \
22    ./gatt/bta_gatts_main.c \
23    ./gatt/bta_gattc_utils.c \
24    ./gatt/bta_gattc_ci.c \
25    ./gatt/bta_gatts_api.c \
26    ./gatt/bta_gattc_main.c \
27    ./gatt/bta_gattc_act.c \
28    ./gatt/bta_gattc_cache.c \
29    ./gatt/bta_gatts_utils.c \
30    ./ag/bta_ag_sdp.c \
31    ./ag/bta_ag_sco.c \
32    ./ag/bta_ag_cfg.c \
33    ./ag/bta_ag_main.c \
34    ./ag/bta_ag_api.c \
35    ./ag/bta_ag_rfc.c \
36    ./ag/bta_ag_act.c \
37    ./ag/bta_ag_cmd.c \
38    ./ag/bta_ag_ci.c \
39    ./ag/bta_ag_at.c \
40    ./hf_client/bta_hf_client_act.c \
41    ./hf_client/bta_hf_client_api.c \
42    ./hf_client/bta_hf_client_main.c \
43    ./hf_client/bta_hf_client_rfc.c \
44    ./hf_client/bta_hf_client_at.c \
45    ./hf_client/bta_hf_client_sdp.c \
46    ./hf_client/bta_hf_client_sco.c \
47    ./hf_client/bta_hf_client_cmd.c \
48    ./hh/bta_hh_cfg.c \
49    ./hh/bta_hh_act.c \
50    ./hh/bta_hh_api.c \
51    ./hh/bta_hh_le.c \
52    ./hh/bta_hh_utils.c \
53    ./hh/bta_hh_main.c \
54    ./pan/bta_pan_main.c \
55    ./pan/bta_pan_ci.c \
56    ./pan/bta_pan_act.c \
57    ./pan/bta_pan_api.c \
58    ./av/bta_av_act.c \
59    ./av/bta_av_ci.c \
60    ./av/bta_av_api.c \
61    ./av/bta_av_aact.c \
62    ./av/bta_av_main.c \
63    ./av/bta_av_cfg.c \
64    ./av/bta_av_ssm.c \
65    ./av/bta_av_sbc.c \
66    ./ar/bta_ar.c \
67    ./hl/bta_hl_act.c \
68    ./hl/bta_hl_api.c \
69    ./hl/bta_hl_main.c \
70    ./hl/bta_hl_utils.c \
71    ./hl/bta_hl_sdp.c \
72    ./hl/bta_hl_ci.c \
73    ./sdp/bta_sdp_api.c \
74    ./sdp/bta_sdp_act.c \
75    ./sdp/bta_sdp.c \
76    ./sdp/bta_sdp_cfg.c \
77    ./sys/bta_sys_main.c \
78    ./sys/bta_sys_conn.c \
79    ./sys/utl.c \
80    ./jv/bta_jv_act.c \
81    ./jv/bta_jv_cfg.c \
82    ./jv/bta_jv_main.c \
83    ./jv/bta_jv_api.c
84
85LOCAL_MODULE := libbt-brcm_bta
86LOCAL_MODULE_CLASS := STATIC_LIBRARIES
87LOCAL_MODULE_TAGS := optional
88LOCAL_SHARED_LIBRARIES := libcutils libc
89LOCAL_MULTILIB := 32
90
91LOCAL_C_INCLUDES+= . \
92                   $(LOCAL_PATH)/include \
93                   $(LOCAL_PATH)/sys \
94                   $(LOCAL_PATH)/dm \
95                   $(LOCAL_PATH)/hh \
96                   $(LOCAL_PATH)/../ \
97                   $(LOCAL_PATH)/../btcore/include \
98                   $(LOCAL_PATH)/../gki/common \
99                   $(LOCAL_PATH)/../gki/ulinux \
100                   $(LOCAL_PATH)/../hci/include \
101                   $(LOCAL_PATH)/../include \
102                   $(LOCAL_PATH)/../stack/include \
103                   $(LOCAL_PATH)/../stack/btm \
104                   $(LOCAL_PATH)/../osi/include \
105                   $(LOCAL_PATH)/../udrv/include \
106                   $(LOCAL_PATH)/../vnd/include \
107                   $(LOCAL_PATH)/../utils/include \
108                   $(bdroid_C_INCLUDES) \
109
110
111include $(BUILD_STATIC_LIBRARY)
112