blob: b4ff0dff5058c7aba97446709dd47e8a7ce9597b [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+= \
54 ../btif/co/bta_sys_co.c \
55 ../btif/co/bta_fs_co.c \
56 ../btif/co/bta_ag_co.c \
57 ../btif/co/bta_dm_co.c \
58 ../btif/co/bta_av_co.c \
59 ../btif/co/bta_hh_co.c \
60 ../btif/co/bta_hl_co.c \
61 ../btif/co/bta_pan_co.c \
62 ../btif/co/bta_gattc_co.c \
63 ../btif/co/bta_gatts_co.c \
The Android Open Source Project5738f832012-12-12 16:00:35 -080064
65# sbc encoder
Ian McKellare93ac122013-11-07 16:30:05 -080066LOCAL_SRC_FILES+= \
The Android Open Source Project5738f832012-12-12 16:00:35 -080067 ../embdrv/sbc/encoder/srce/sbc_analysis.c \
68 ../embdrv/sbc/encoder/srce/sbc_dct.c \
69 ../embdrv/sbc/encoder/srce/sbc_dct_coeffs.c \
70 ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c \
71 ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c \
72 ../embdrv/sbc/encoder/srce/sbc_enc_coeffs.c \
73 ../embdrv/sbc/encoder/srce/sbc_encoder.c \
74 ../embdrv/sbc/encoder/srce/sbc_packing.c \
75
Ian McKellare93ac122013-11-07 16:30:05 -080076LOCAL_SRC_FILES+= \
The Android Open Source Project5738f832012-12-12 16:00:35 -080077 ../udrv/ulinux/uipc.c
78
Ian McKellare93ac122013-11-07 16:30:05 -080079LOCAL_C_INCLUDES+= . \
The Android Open Source Project5738f832012-12-12 16:00:35 -080080 $(LOCAL_PATH)/../bta/include \
81 $(LOCAL_PATH)/../bta/sys \
82 $(LOCAL_PATH)/../bta/dm \
Sharvil Nanavati847ea132014-04-25 22:38:55 -070083 $(LOCAL_PATH)/../osi/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080084 $(LOCAL_PATH)/../gki/common \
85 $(LOCAL_PATH)/../gki/ulinux \
86 $(LOCAL_PATH)/../include \
87 $(LOCAL_PATH)/../stack/include \
88 $(LOCAL_PATH)/../stack/l2cap \
89 $(LOCAL_PATH)/../stack/a2dp \
90 $(LOCAL_PATH)/../stack/btm \
91 $(LOCAL_PATH)/../stack/avdt \
92 $(LOCAL_PATH)/../hcis \
93 $(LOCAL_PATH)/../hcis/include \
94 $(LOCAL_PATH)/../hcis/patchram \
95 $(LOCAL_PATH)/../udrv/include \
96 $(LOCAL_PATH)/../btif/include \
97 $(LOCAL_PATH)/../btif/co \
98 $(LOCAL_PATH)/../hci/include\
Andre Eisenbachb203d472013-11-20 17:23:06 -080099 $(LOCAL_PATH)/../vnd/include \
Ian McKellare93ac122013-11-07 16:30:05 -0800100 $(LOCAL_PATH)/../brcm/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -0800101 $(LOCAL_PATH)/../embdrv/sbc/encoder/include \
Hemant Guptace247652014-03-20 20:47:04 +0530102 $(LOCAL_PATH)/../embdrv/sbc/decoder/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -0800103 $(LOCAL_PATH)/../audio_a2dp_hw \
104 $(LOCAL_PATH)/../utils/include \
105 $(bdroid_C_INCLUDES) \
106 external/tinyxml2
107
Chris Mantone2e1d882014-07-18 12:55:34 -0700108LOCAL_CFLAGS += -DBUILDCFG $(bdroid_CFLAGS) -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=unused-parameter
Sharvil Nanavati5b6b25d2014-04-05 00:44:19 -0700109LOCAL_CONLYFLAGS := -std=c99
The Android Open Source Project5738f832012-12-12 16:00:35 -0800110
111ifeq ($(TARGET_PRODUCT), full_crespo)
Ian McKellare93ac122013-11-07 16:30:05 -0800112 LOCAL_CFLAGS += -DTARGET_CRESPO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800113endif
114ifeq ($(TARGET_PRODUCT), full_crespo4g)
Ian McKellare93ac122013-11-07 16:30:05 -0800115 LOCAL_CFLAGS += -DTARGET_CRESPO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800116endif
117ifeq ($(TARGET_PRODUCT), full_maguro)
Ian McKellare93ac122013-11-07 16:30:05 -0800118 LOCAL_CFLAGS += -DTARGET_MAGURO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800119endif
120
The Android Open Source Project5738f832012-12-12 16:00:35 -0800121LOCAL_SHARED_LIBRARIES := \
Ian McKellare93ac122013-11-07 16:30:05 -0800122 libcutils \
123 libdl \
124 liblog \
125 libpower \
The Android Open Source Project5738f832012-12-12 16:00:35 -0800126
Chris Mantone01b1122014-05-07 16:21:00 -0700127LOCAL_STATIC_LIBRARIES := \
Ian McKellare93ac122013-11-07 16:30:05 -0800128 libbt-brcm_gki \
129 libbt-brcm_bta \
130 libbt-brcm_stack \
131 libbt-hci \
132 libbt-utils \
Mike Lockwoodd0bc2152014-06-10 16:52:39 -0700133 libbt-qcom_sbc_decoder \
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
Narayan Kamathc2aeb2c2014-05-07 11:18:11 +0100148LOCAL_MULTILIB := 32
The Android Open Source Project5738f832012-12-12 16:00:35 -0800149
150include $(BUILD_SHARED_LIBRARY)