blob: 15c5b9bfffd741fdc4b4d3eaea561680f00293f7 [file] [log] [blame]
Ian McKellare93ac122013-11-07 16:30:05 -08001LOCAL_PATH:= $(call my-dir)
The Android Open Source Project5738f832012-12-12 16:00:35 -08002
3#
4# Bluetooth HW module
5#
6
7include $(CLEAR_VARS)
8
9# HAL layer
10LOCAL_SRC_FILES:= \
11 ../btif/src/bluetooth.c
12
13# platform specific
Ian McKellare93ac122013-11-07 16:30:05 -080014LOCAL_SRC_FILES+= \
15 bte_main.c \
The Android Open Source Project5738f832012-12-12 16:00:35 -080016 bte_init.c \
The Android Open Source Project5738f832012-12-12 16:00:35 -080017 bte_logmsg.c \
Ian McKellare93ac122013-11-07 16:30:05 -080018 bte_conf.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080019
20# BTIF
21LOCAL_SRC_FILES += \
Sharvil Nanavatib95c4ef2014-08-15 18:58:22 -070022 ../btif/src/btif_av.c \
23 ../btif/src/btif_config.c \
24 ../btif/src/btif_config_transcode.cpp \
Ian McKellare93ac122013-11-07 16:30:05 -080025 ../btif/src/btif_core.c \
26 ../btif/src/btif_dm.c \
Ian McKellare93ac122013-11-07 16:30:05 -080027 ../btif/src/btif_gatt.c \
28 ../btif/src/btif_gatt_client.c \
29 ../btif/src/btif_gatt_multi_adv_util.c \
30 ../btif/src/btif_gatt_server.c \
Ian McKellare93ac122013-11-07 16:30:05 -080031 ../btif/src/btif_gatt_test.c \
Sharvil Nanavatib95c4ef2014-08-15 18:58:22 -070032 ../btif/src/btif_gatt_util.c \
33 ../btif/src/btif_hf.c \
34 ../btif/src/btif_hf_client.c \
35 ../btif/src/btif_hh.c \
36 ../btif/src/btif_hl.c \
37 ../btif/src/btif_mce.c \
38 ../btif/src/btif_media_task.c \
39 ../btif/src/btif_pan.c \
40 ../btif/src/btif_profile_queue.c \
41 ../btif/src/btif_rc.c \
42 ../btif/src/btif_sm.c \
43 ../btif/src/btif_sock.c \
44 ../btif/src/btif_sock_rfc.c \
45 ../btif/src/btif_sock_sco.c \
46 ../btif/src/btif_sock_sdp.c \
47 ../btif/src/btif_sock_thread.c \
48 ../btif/src/btif_sock_util.c \
49 ../btif/src/btif_storage.c \
50 ../btif/src/btif_util.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080051
52# callouts
Ian McKellare93ac122013-11-07 16:30:05 -080053LOCAL_SRC_FILES+= \
Ian McKellare93ac122013-11-07 16:30:05 -080054 ../btif/co/bta_ag_co.c \
55 ../btif/co/bta_dm_co.c \
56 ../btif/co/bta_av_co.c \
57 ../btif/co/bta_hh_co.c \
58 ../btif/co/bta_hl_co.c \
59 ../btif/co/bta_pan_co.c \
60 ../btif/co/bta_gattc_co.c \
61 ../btif/co/bta_gatts_co.c \
The Android Open Source Project5738f832012-12-12 16:00:35 -080062
63# sbc encoder
Ian McKellare93ac122013-11-07 16:30:05 -080064LOCAL_SRC_FILES+= \
The Android Open Source Project5738f832012-12-12 16:00:35 -080065 ../embdrv/sbc/encoder/srce/sbc_analysis.c \
66 ../embdrv/sbc/encoder/srce/sbc_dct.c \
67 ../embdrv/sbc/encoder/srce/sbc_dct_coeffs.c \
68 ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c \
69 ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c \
70 ../embdrv/sbc/encoder/srce/sbc_enc_coeffs.c \
71 ../embdrv/sbc/encoder/srce/sbc_encoder.c \
72 ../embdrv/sbc/encoder/srce/sbc_packing.c \
73
Ian McKellare93ac122013-11-07 16:30:05 -080074LOCAL_SRC_FILES+= \
The Android Open Source Project5738f832012-12-12 16:00:35 -080075 ../udrv/ulinux/uipc.c
76
Ian McKellare93ac122013-11-07 16:30:05 -080077LOCAL_C_INCLUDES+= . \
The Android Open Source Project5738f832012-12-12 16:00:35 -080078 $(LOCAL_PATH)/../bta/include \
79 $(LOCAL_PATH)/../bta/sys \
80 $(LOCAL_PATH)/../bta/dm \
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070081 $(LOCAL_PATH)/../btcore/include \
Sharvil Nanavati847ea132014-04-25 22:38:55 -070082 $(LOCAL_PATH)/../osi/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080083 $(LOCAL_PATH)/../gki/common \
84 $(LOCAL_PATH)/../gki/ulinux \
85 $(LOCAL_PATH)/../include \
86 $(LOCAL_PATH)/../stack/include \
87 $(LOCAL_PATH)/../stack/l2cap \
88 $(LOCAL_PATH)/../stack/a2dp \
89 $(LOCAL_PATH)/../stack/btm \
90 $(LOCAL_PATH)/../stack/avdt \
91 $(LOCAL_PATH)/../hcis \
92 $(LOCAL_PATH)/../hcis/include \
93 $(LOCAL_PATH)/../hcis/patchram \
94 $(LOCAL_PATH)/../udrv/include \
95 $(LOCAL_PATH)/../btif/include \
96 $(LOCAL_PATH)/../btif/co \
97 $(LOCAL_PATH)/../hci/include\
Andre Eisenbachb203d472013-11-20 17:23:06 -080098 $(LOCAL_PATH)/../vnd/include \
Ian McKellare93ac122013-11-07 16:30:05 -080099 $(LOCAL_PATH)/../brcm/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -0800100 $(LOCAL_PATH)/../embdrv/sbc/encoder/include \
Hemant Guptace247652014-03-20 20:47:04 +0530101 $(LOCAL_PATH)/../embdrv/sbc/decoder/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -0800102 $(LOCAL_PATH)/../audio_a2dp_hw \
103 $(LOCAL_PATH)/../utils/include \
104 $(bdroid_C_INCLUDES) \
105 external/tinyxml2
106
Chris Mantone2e1d882014-07-18 12:55:34 -0700107LOCAL_CFLAGS += -DBUILDCFG $(bdroid_CFLAGS) -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=unused-parameter
Sharvil Nanavati5b6b25d2014-04-05 00:44:19 -0700108LOCAL_CONLYFLAGS := -std=c99
The Android Open Source Project5738f832012-12-12 16:00:35 -0800109
110ifeq ($(TARGET_PRODUCT), full_crespo)
Ian McKellare93ac122013-11-07 16:30:05 -0800111 LOCAL_CFLAGS += -DTARGET_CRESPO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800112endif
113ifeq ($(TARGET_PRODUCT), full_crespo4g)
Ian McKellare93ac122013-11-07 16:30:05 -0800114 LOCAL_CFLAGS += -DTARGET_CRESPO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800115endif
116ifeq ($(TARGET_PRODUCT), full_maguro)
Ian McKellare93ac122013-11-07 16:30:05 -0800117 LOCAL_CFLAGS += -DTARGET_MAGURO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800118endif
119
The Android Open Source Project5738f832012-12-12 16:00:35 -0800120LOCAL_SHARED_LIBRARIES := \
Ian McKellare93ac122013-11-07 16:30:05 -0800121 libcutils \
122 libdl \
123 liblog \
124 libpower \
The Android Open Source Project5738f832012-12-12 16:00:35 -0800125
Chris Mantone01b1122014-05-07 16:21:00 -0700126LOCAL_STATIC_LIBRARIES := \
Ian McKellare93ac122013-11-07 16:30:05 -0800127 libbt-brcm_gki \
128 libbt-brcm_bta \
129 libbt-brcm_stack \
130 libbt-hci \
131 libbt-utils \
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -0700132 libbt-qcom_sbc_decoder \
133 libbtcore \
Ian McKellare93ac122013-11-07 16:30:05 -0800134 libosi \
135 libtinyxml2 \
136 libbt-qcom_sbc_decoder
The Android Open Source Project5738f832012-12-12 16:00:35 -0800137
138LOCAL_MODULE := bluetooth.default
Colin Cross273789b2014-01-24 21:00:32 -0800139LOCAL_MODULE_RELATIVE_PATH := hw
The Android Open Source Project5738f832012-12-12 16:00:35 -0800140LOCAL_MODULE_TAGS := optional
141LOCAL_MODULE_CLASS := SHARED_LIBRARIES
Chris Mantone01b1122014-05-07 16:21:00 -0700142LOCAL_REQUIRED_MODULES := \
Ian McKellare93ac122013-11-07 16:30:05 -0800143 auto_pair_devlist.conf \
144 bt_did.conf \
145 bt_stack.conf \
146 libbt-hci \
147 libbt-vendor
Chris Manton462cd3f2014-05-07 16:21:00 -0700148
Narayan Kamathc2aeb2c2014-05-07 11:18:11 +0100149LOCAL_MULTILIB := 32
The Android Open Source Project5738f832012-12-12 16:00:35 -0800150
151include $(BUILD_SHARED_LIBRARY)