OSDN Git Service

Fix an "array index out of bound" bug for RPA.
[android-x86/system-bt.git] / stack / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 include $(CLEAR_VARS)
4
5 LOCAL_C_INCLUDES:= . \
6                    $(LOCAL_PATH)/include \
7                    $(LOCAL_PATH)/avct \
8                    $(LOCAL_PATH)/btm \
9                    $(LOCAL_PATH)/avrc \
10                    $(LOCAL_PATH)/l2cap \
11                    $(LOCAL_PATH)/avdt \
12                    $(LOCAL_PATH)/gatt \
13                    $(LOCAL_PATH)/gap \
14                    $(LOCAL_PATH)/pan \
15                    $(LOCAL_PATH)/bnep \
16                    $(LOCAL_PATH)/hid \
17                    $(LOCAL_PATH)/sdp \
18                    $(LOCAL_PATH)/smp \
19                    $(LOCAL_PATH)/srvc \
20                    $(LOCAL_PATH)/../vnd/include \
21                    $(LOCAL_PATH)/../vnd/ble \
22                    $(LOCAL_PATH)/../include \
23                    $(LOCAL_PATH)/../gki/common \
24                    $(LOCAL_PATH)/../gki/ulinux \
25                    $(LOCAL_PATH)/../udrv/include \
26                    $(LOCAL_PATH)/../rpc/include \
27                    $(LOCAL_PATH)/../hcis \
28                    $(LOCAL_PATH)/../ctrlr/include \
29                    $(LOCAL_PATH)/../bta/include \
30                    $(LOCAL_PATH)/../bta/sys \
31                    $(LOCAL_PATH)/../utils/include \
32                    $(bdroid_C_INCLUDES) \
33
34 LOCAL_CFLAGS += $(bdroid_CFLAGS) -std=c99
35
36 ifeq ($(BOARD_HAVE_BLUETOOTH_BCM),true)
37 LOCAL_CFLAGS += \
38         -DBOARD_HAVE_BLUETOOTH_BCM
39 endif
40
41 LOCAL_PRELINK_MODULE:=false
42 LOCAL_SRC_FILES:= \
43     ./a2dp/a2d_api.c \
44     ./a2dp/a2d_sbc.c \
45     ./avrc/avrc_api.c \
46     ./avrc/avrc_sdp.c \
47     ./avrc/avrc_opt.c \
48     ./avrc/avrc_bld_tg.c \
49     ./avrc/avrc_bld_ct.c \
50     ./avrc/avrc_pars_tg.c \
51     ./avrc/avrc_pars_ct.c \
52     ./avrc/avrc_utils.c \
53     ./hid/hidh_api.c \
54     ./hid/hidh_conn.c \
55     ./bnep/bnep_main.c \
56     ./bnep/bnep_utils.c \
57     ./bnep/bnep_api.c \
58     ./hcic/hciblecmds.c \
59     ./hcic/hcicmds.c \
60     ./btm/btm_ble.c \
61     ./btm/btm_sec.c \
62     ./btm/btm_inq.c \
63     ./btm/btm_ble_addr.c \
64     ./btm/btm_ble_bgconn.c \
65     ./btm/btm_main.c \
66     ./btm/btm_dev.c \
67     ./btm/btm_ble_gap.c \
68     ./btm/btm_ble_adv_filter.c \
69     ./btm/btm_ble_multi_adv.c \
70     ./btm/btm_ble_batchscan.c \
71     ./btm/btm_ble_cont_energy.c \
72     ./btm/btm_acl.c \
73     ./btm/btm_sco.c \
74     ./btm/btm_pm.c \
75     ./btm/btm_devctl.c \
76     ./rfcomm/rfc_utils.c \
77     ./rfcomm/port_rfc.c \
78     ./rfcomm/rfc_l2cap_if.c \
79     ./rfcomm/rfc_mx_fsm.c \
80     ./rfcomm/port_utils.c \
81     ./rfcomm/rfc_port_fsm.c \
82     ./rfcomm/rfc_port_if.c \
83     ./rfcomm/port_api.c \
84     ./rfcomm/rfc_ts_frames.c \
85     ./mcap/mca_dact.c \
86     ./mcap/mca_dsm.c \
87     ./mcap/mca_l2c.c \
88     ./mcap/mca_main.c \
89     ./mcap/mca_csm.c \
90     ./mcap/mca_cact.c \
91     ./mcap/mca_api.c \
92     ./gatt/gatt_sr.c \
93     ./gatt/gatt_cl.c \
94     ./gatt/gatt_api.c \
95     ./gatt/gatt_auth.c \
96     ./gatt/gatt_utils.c \
97     ./gatt/gatt_main.c \
98     ./gatt/att_protocol.c \
99     ./gatt/gatt_attr.c \
100     ./gatt/gatt_db.c \
101     ./avct/avct_api.c \
102     ./avct/avct_l2c.c \
103     ./avct/avct_lcb.c \
104     ./avct/avct_ccb.c \
105     ./avct/avct_lcb_act.c \
106     ./smp/smp_main.c \
107     ./smp/smp_l2c.c \
108     ./smp/smp_cmac.c \
109     ./smp/smp_utils.c \
110     ./smp/smp_act.c \
111     ./smp/smp_keys.c \
112     ./smp/smp_api.c \
113     ./smp/aes.c \
114     ./avdt/avdt_ccb.c \
115     ./avdt/avdt_scb_act.c \
116     ./avdt/avdt_msg.c \
117     ./avdt/avdt_ccb_act.c \
118     ./avdt/avdt_api.c \
119     ./avdt/avdt_scb.c \
120     ./avdt/avdt_ad.c \
121     ./avdt/avdt_l2c.c \
122     ./sdp/sdp_server.c \
123     ./sdp/sdp_main.c \
124     ./sdp/sdp_db.c \
125     ./sdp/sdp_utils.c \
126     ./sdp/sdp_api.c \
127     ./sdp/sdp_discovery.c \
128     ./pan/pan_main.c \
129     ./srvc/srvc_battery.c \
130     ./srvc/srvc_battery_int.h \
131     ./srvc/srvc_dis.c \
132     ./srvc/srvc_dis_int.h \
133     ./srvc/srvc_eng.c \
134     ./srvc/srvc_eng_int.h \
135     ./pan/pan_api.c \
136     ./pan/pan_utils.c \
137     ./btu/btu_hcif.c \
138     ./btu/btu_init.c \
139     ./btu/btu_task.c \
140     ./l2cap/l2c_fcr.c \
141     ./l2cap/l2c_ucd.c \
142     ./l2cap/l2c_main.c \
143     ./l2cap/l2c_api.c \
144     ./l2cap/l2c_utils.c \
145     ./l2cap/l2c_csm.c \
146     ./l2cap/l2c_link.c \
147     ./l2cap/l2c_ble.c \
148     ./gap/gap_api.c \
149     ./gap/gap_ble.c \
150     ./gap/gap_conn.c \
151     ./gap/gap_utils.c \
152     ../vnd/ble/vendor_ble.c
153
154 LOCAL_MODULE := libbt-brcm_stack
155 LOCAL_MODULE_TAGS := optional
156 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
157 LOCAL_SHARED_LIBRARIES := libcutils libc
158 LOCAL_MULTILIB := 32
159
160 include $(BUILD_STATIC_LIBRARY)