blob: 351aa1396fc46c44141619fdadcead7983d586d2 [file] [log] [blame]
Chris Mantone01b1122014-05-07 16:21:00 -07001LOCAL_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
Chris Mantone01b1122014-05-07 16:21:00 -070014LOCAL_SRC_FILES += \
15 bte_conf.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 \
Chris Mantone01b1122014-05-07 16:21:00 -070018 bte_main.c \
19 bte_version.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080020
21# BTIF
22LOCAL_SRC_FILES += \
Chris Mantone01b1122014-05-07 16:21:00 -070023 ../btif/src/btif_av.c \
24 ../btif/src/btif_config.c \
25 ../btif/src/btif_config_util.cpp \
26 ../btif/src/btif_core.c \
27 ../btif/src/btif_dm.c \
28 ../btif/src/btif_gatt.c \
29 ../btif/src/btif_gatt_client.c \
30 ../btif/src/btif_gatt_multi_adv_util.c \
31 ../btif/src/btif_gatt_server.c \
32 ../btif/src/btif_gatt_test.c \
33 ../btif/src/btif_gatt_util.c \
34 ../btif/src/btif_hf.c \
35 ../btif/src/btif_hf_client.c \
36 ../btif/src/btif_hh.c \
37 ../btif/src/btif_hl.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_sdp.c \
46 ../btif/src/btif_sock_thread.c \
47 ../btif/src/btif_sock_util.c \
48 ../btif/src/btif_storage.c \
49 ../btif/src/btif_util.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080050
51# callouts
Chris Mantone01b1122014-05-07 16:21:00 -070052LOCAL_SRC_FILES += \
53 ../btif/co/bta_ag_co.c \
54 ../btif/co/bta_av_co.c \
55 ../btif/co/bta_dm_co.c \
56 ../btif/co/bta_fs_co.c \
57 ../btif/co/bta_gattc_co.c \
58 ../btif/co/bta_gatts_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_sys_co.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080063
64# sbc encoder
Chris Mantone01b1122014-05-07 16:21:00 -070065LOCAL_SRC_FILES += \
The Android Open Source Project5738f832012-12-12 16:00:35 -080066 ../embdrv/sbc/encoder/srce/sbc_analysis.c \
67 ../embdrv/sbc/encoder/srce/sbc_dct.c \
68 ../embdrv/sbc/encoder/srce/sbc_dct_coeffs.c \
69 ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c \
70 ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c \
71 ../embdrv/sbc/encoder/srce/sbc_enc_coeffs.c \
72 ../embdrv/sbc/encoder/srce/sbc_encoder.c \
73 ../embdrv/sbc/encoder/srce/sbc_packing.c \
74
Chris Mantone01b1122014-05-07 16:21:00 -070075LOCAL_SRC_FILES += \
The Android Open Source Project5738f832012-12-12 16:00:35 -080076 ../udrv/ulinux/uipc.c
77
Chris Mantone01b1122014-05-07 16:21:00 -070078LOCAL_C_INCLUDES += . \
The Android Open Source Project5738f832012-12-12 16:00:35 -080079 $(LOCAL_PATH)/../bta/include \
80 $(LOCAL_PATH)/../bta/sys \
81 $(LOCAL_PATH)/../bta/dm \
Sharvil Nanavatid9e5b342014-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 Eisenbach2d754412013-11-20 17:23:06 -080098 $(LOCAL_PATH)/../vnd/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080099 $(LOCAL_PATH)/../embdrv/sbc/encoder/include \
100 $(LOCAL_PATH)/../audio_a2dp_hw \
101 $(LOCAL_PATH)/../utils/include \
102 $(bdroid_C_INCLUDES) \
103 external/tinyxml2
104
Mike J. Chen5b9c7f72014-02-11 13:01:26 -0800105LOCAL_CFLAGS += -DBUILDCFG $(bdroid_CFLAGS) -Werror -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=unused-parameter
Sharvil Nanavati795bceb2014-04-05 00:44:19 -0700106LOCAL_CONLYFLAGS := -std=c99
The Android Open Source Project5738f832012-12-12 16:00:35 -0800107
108ifeq ($(TARGET_PRODUCT), full_crespo)
Chris Mantone01b1122014-05-07 16:21:00 -0700109 LOCAL_CFLAGS += -DTARGET_CRESPO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800110endif
111ifeq ($(TARGET_PRODUCT), full_crespo4g)
Chris Mantone01b1122014-05-07 16:21:00 -0700112 LOCAL_CFLAGS += -DTARGET_CRESPO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800113endif
114ifeq ($(TARGET_PRODUCT), full_maguro)
Chris Mantone01b1122014-05-07 16:21:00 -0700115 LOCAL_CFLAGS += -DTARGET_MAGURO
The Android Open Source Project5738f832012-12-12 16:00:35 -0800116endif
117
The Android Open Source Project5738f832012-12-12 16:00:35 -0800118LOCAL_SHARED_LIBRARIES := \
Chris Mantone01b1122014-05-07 16:21:00 -0700119 libcutils \
120 libdl \
121 liblog \
122 libpower
The Android Open Source Project5738f832012-12-12 16:00:35 -0800123
Chris Mantone01b1122014-05-07 16:21:00 -0700124LOCAL_STATIC_LIBRARIES := \
125 libbt-brcm_bta \
126 libbt-brcm_gki \
127 libbt-brcm_stack \
128 libbt-hci \
129 libbt-utils \
130 libosi \
131 libtinyxml2
The Android Open Source Project5738f832012-12-12 16:00:35 -0800132
133LOCAL_MODULE := bluetooth.default
Matthew Xie3765b692014-03-19 13:47:12 -0700134LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
The Android Open Source Project5738f832012-12-12 16:00:35 -0800135LOCAL_MODULE_TAGS := optional
136LOCAL_MODULE_CLASS := SHARED_LIBRARIES
Chris Mantone01b1122014-05-07 16:21:00 -0700137LOCAL_REQUIRED_MODULES := \
138 auto_pair_devlist.conf \
139 bt_did.conf \
140 bt_stack.conf \
141 libbt-vendor
The Android Open Source Project5738f832012-12-12 16:00:35 -0800142
143include $(BUILD_SHARED_LIBRARY)