Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 1 | LOCAL_PATH := $(call my-dir) |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 2 | |
| 3 | # |
| 4 | # Bluetooth HW module |
| 5 | # |
| 6 | |
| 7 | include $(CLEAR_VARS) |
| 8 | |
| 9 | # HAL layer |
| 10 | LOCAL_SRC_FILES:= \ |
| 11 | ../btif/src/bluetooth.c |
| 12 | |
| 13 | # platform specific |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 14 | LOCAL_SRC_FILES += \ |
| 15 | bte_conf.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 16 | bte_init.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 17 | bte_logmsg.c \ |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 18 | bte_main.c \ |
| 19 | bte_version.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 20 | |
| 21 | # BTIF |
| 22 | LOCAL_SRC_FILES += \ |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 23 | ../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 Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 50 | |
| 51 | # callouts |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 52 | LOCAL_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 Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 63 | |
| 64 | # sbc encoder |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 65 | LOCAL_SRC_FILES += \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 66 | ../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 Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 75 | LOCAL_SRC_FILES += \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 76 | ../udrv/ulinux/uipc.c |
| 77 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 78 | LOCAL_C_INCLUDES += . \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 79 | $(LOCAL_PATH)/../bta/include \ |
| 80 | $(LOCAL_PATH)/../bta/sys \ |
| 81 | $(LOCAL_PATH)/../bta/dm \ |
Sharvil Nanavati | d9e5b34 | 2014-04-25 22:38:55 -0700 | [diff] [blame] | 82 | $(LOCAL_PATH)/../osi/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 83 | $(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 Eisenbach | 2d75441 | 2013-11-20 17:23:06 -0800 | [diff] [blame] | 98 | $(LOCAL_PATH)/../vnd/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 99 | $(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. Chen | 5b9c7f7 | 2014-02-11 13:01:26 -0800 | [diff] [blame] | 105 | LOCAL_CFLAGS += -DBUILDCFG $(bdroid_CFLAGS) -Werror -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=unused-parameter |
Sharvil Nanavati | 795bceb | 2014-04-05 00:44:19 -0700 | [diff] [blame] | 106 | LOCAL_CONLYFLAGS := -std=c99 |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 107 | |
| 108 | ifeq ($(TARGET_PRODUCT), full_crespo) |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 109 | LOCAL_CFLAGS += -DTARGET_CRESPO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 110 | endif |
| 111 | ifeq ($(TARGET_PRODUCT), full_crespo4g) |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 112 | LOCAL_CFLAGS += -DTARGET_CRESPO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 113 | endif |
| 114 | ifeq ($(TARGET_PRODUCT), full_maguro) |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 115 | LOCAL_CFLAGS += -DTARGET_MAGURO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 116 | endif |
| 117 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 118 | LOCAL_SHARED_LIBRARIES := \ |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 119 | libcutils \ |
| 120 | libdl \ |
| 121 | liblog \ |
| 122 | libpower |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 123 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 124 | LOCAL_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 Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 132 | |
| 133 | LOCAL_MODULE := bluetooth.default |
Matthew Xie | 3765b69 | 2014-03-19 13:47:12 -0700 | [diff] [blame] | 134 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 135 | LOCAL_MODULE_TAGS := optional |
| 136 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 137 | LOCAL_REQUIRED_MODULES := \ |
| 138 | auto_pair_devlist.conf \ |
| 139 | bt_did.conf \ |
| 140 | bt_stack.conf \ |
| 141 | libbt-vendor |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 142 | |
| 143 | include $(BUILD_SHARED_LIBRARY) |