Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [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 |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 14 | LOCAL_SRC_FILES+= \ |
| 15 | bte_main.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 \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 18 | bte_conf.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 19 | |
| 20 | # BTIF |
| 21 | LOCAL_SRC_FILES += \ |
Sharvil Nanavati | b95c4ef | 2014-08-15 18:58:22 -0700 | [diff] [blame] | 22 | ../btif/src/btif_av.c \ |
| 23 | ../btif/src/btif_config.c \ |
| 24 | ../btif/src/btif_config_transcode.cpp \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 25 | ../btif/src/btif_core.c \ |
| 26 | ../btif/src/btif_dm.c \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 27 | ../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 McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 31 | ../btif/src/btif_gatt_test.c \ |
Sharvil Nanavati | b95c4ef | 2014-08-15 18:58:22 -0700 | [diff] [blame] | 32 | ../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 Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 51 | |
| 52 | # callouts |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 53 | LOCAL_SRC_FILES+= \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 54 | ../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 Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 62 | |
| 63 | # sbc encoder |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 64 | LOCAL_SRC_FILES+= \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 65 | ../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 McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 74 | LOCAL_SRC_FILES+= \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 75 | ../udrv/ulinux/uipc.c |
| 76 | |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 77 | LOCAL_C_INCLUDES+= . \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 78 | $(LOCAL_PATH)/../bta/include \ |
| 79 | $(LOCAL_PATH)/../bta/sys \ |
| 80 | $(LOCAL_PATH)/../bta/dm \ |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 81 | $(LOCAL_PATH)/../btcore/include \ |
Sharvil Nanavati | 847ea13 | 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 | b203d47 | 2013-11-20 17:23:06 -0800 | [diff] [blame] | 98 | $(LOCAL_PATH)/../vnd/include \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 99 | $(LOCAL_PATH)/../brcm/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 100 | $(LOCAL_PATH)/../embdrv/sbc/encoder/include \ |
Hemant Gupta | ce24765 | 2014-03-20 20:47:04 +0530 | [diff] [blame] | 101 | $(LOCAL_PATH)/../embdrv/sbc/decoder/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 102 | $(LOCAL_PATH)/../audio_a2dp_hw \ |
| 103 | $(LOCAL_PATH)/../utils/include \ |
| 104 | $(bdroid_C_INCLUDES) \ |
| 105 | external/tinyxml2 |
| 106 | |
Chris Manton | e2e1d88 | 2014-07-18 12:55:34 -0700 | [diff] [blame] | 107 | LOCAL_CFLAGS += -DBUILDCFG $(bdroid_CFLAGS) -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=unused-parameter |
Sharvil Nanavati | 5b6b25d | 2014-04-05 00:44:19 -0700 | [diff] [blame] | 108 | LOCAL_CONLYFLAGS := -std=c99 |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 109 | |
| 110 | ifeq ($(TARGET_PRODUCT), full_crespo) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 111 | LOCAL_CFLAGS += -DTARGET_CRESPO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 112 | endif |
| 113 | ifeq ($(TARGET_PRODUCT), full_crespo4g) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 114 | LOCAL_CFLAGS += -DTARGET_CRESPO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 115 | endif |
| 116 | ifeq ($(TARGET_PRODUCT), full_maguro) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 117 | LOCAL_CFLAGS += -DTARGET_MAGURO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 118 | endif |
| 119 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 120 | LOCAL_SHARED_LIBRARIES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 121 | libcutils \ |
| 122 | libdl \ |
| 123 | liblog \ |
| 124 | libpower \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 125 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 126 | LOCAL_STATIC_LIBRARIES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 127 | libbt-brcm_gki \ |
| 128 | libbt-brcm_bta \ |
| 129 | libbt-brcm_stack \ |
| 130 | libbt-hci \ |
| 131 | libbt-utils \ |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 132 | libbt-qcom_sbc_decoder \ |
| 133 | libbtcore \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 134 | libosi \ |
| 135 | libtinyxml2 \ |
| 136 | libbt-qcom_sbc_decoder |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 137 | |
| 138 | LOCAL_MODULE := bluetooth.default |
Colin Cross | 273789b | 2014-01-24 21:00:32 -0800 | [diff] [blame] | 139 | LOCAL_MODULE_RELATIVE_PATH := hw |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 140 | LOCAL_MODULE_TAGS := optional |
| 141 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 142 | LOCAL_REQUIRED_MODULES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 143 | auto_pair_devlist.conf \ |
| 144 | bt_did.conf \ |
| 145 | bt_stack.conf \ |
| 146 | libbt-hci \ |
| 147 | libbt-vendor |
Chris Manton | 462cd3f | 2014-05-07 16:21:00 -0700 | [diff] [blame^] | 148 | |
Narayan Kamath | c2aeb2c | 2014-05-07 11:18:11 +0100 | [diff] [blame] | 149 | LOCAL_MULTILIB := 32 |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 150 | |
| 151 | include $(BUILD_SHARED_LIBRARY) |