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 \ |
Zach Johnson | 9891f32 | 2014-09-22 22:11:55 -0700 | [diff] [blame] | 18 | bte_conf.c \ |
| 19 | stack_config.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 20 | |
| 21 | # BTIF |
| 22 | LOCAL_SRC_FILES += \ |
Sharvil Nanavati | b95c4ef | 2014-08-15 18:58:22 -0700 | [diff] [blame] | 23 | ../btif/src/btif_av.c \ |
| 24 | ../btif/src/btif_config.c \ |
| 25 | ../btif/src/btif_config_transcode.cpp \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 26 | ../btif/src/btif_core.c \ |
Andre Eisenbach | 89f5e41 | 2014-12-05 09:40:20 -0800 | [diff] [blame] | 27 | ../btif/src/btif_debug.c \ |
| 28 | ../btif/src/btif_debug_btsnoop.c \ |
| 29 | ../btif/src/btif_debug_conn.c \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 30 | ../btif/src/btif_dm.c \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 31 | ../btif/src/btif_gatt.c \ |
| 32 | ../btif/src/btif_gatt_client.c \ |
| 33 | ../btif/src/btif_gatt_multi_adv_util.c \ |
| 34 | ../btif/src/btif_gatt_server.c \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 35 | ../btif/src/btif_gatt_test.c \ |
Sharvil Nanavati | b95c4ef | 2014-08-15 18:58:22 -0700 | [diff] [blame] | 36 | ../btif/src/btif_gatt_util.c \ |
| 37 | ../btif/src/btif_hf.c \ |
| 38 | ../btif/src/btif_hf_client.c \ |
| 39 | ../btif/src/btif_hh.c \ |
| 40 | ../btif/src/btif_hl.c \ |
Kim Schulz | 8372aa5 | 2015-03-25 10:39:40 +0100 | [diff] [blame] | 41 | ../btif/src/btif_sdp.c \ |
Sharvil Nanavati | b95c4ef | 2014-08-15 18:58:22 -0700 | [diff] [blame] | 42 | ../btif/src/btif_media_task.c \ |
| 43 | ../btif/src/btif_pan.c \ |
| 44 | ../btif/src/btif_profile_queue.c \ |
| 45 | ../btif/src/btif_rc.c \ |
| 46 | ../btif/src/btif_sm.c \ |
| 47 | ../btif/src/btif_sock.c \ |
| 48 | ../btif/src/btif_sock_rfc.c \ |
Kim Schulz | 8372aa5 | 2015-03-25 10:39:40 +0100 | [diff] [blame] | 49 | ../btif/src/btif_sock_l2cap.c \ |
Sharvil Nanavati | b95c4ef | 2014-08-15 18:58:22 -0700 | [diff] [blame] | 50 | ../btif/src/btif_sock_sco.c \ |
| 51 | ../btif/src/btif_sock_sdp.c \ |
| 52 | ../btif/src/btif_sock_thread.c \ |
Kim Schulz | 8372aa5 | 2015-03-25 10:39:40 +0100 | [diff] [blame] | 53 | ../btif/src/btif_sdp_server.c \ |
Sharvil Nanavati | b95c4ef | 2014-08-15 18:58:22 -0700 | [diff] [blame] | 54 | ../btif/src/btif_sock_util.c \ |
| 55 | ../btif/src/btif_storage.c \ |
Zach Johnson | 8df0d80 | 2014-09-09 16:31:14 -0700 | [diff] [blame] | 56 | ../btif/src/btif_util.c \ |
| 57 | ../btif/src/stack_manager.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 58 | |
| 59 | # callouts |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 60 | LOCAL_SRC_FILES+= \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 61 | ../btif/co/bta_ag_co.c \ |
| 62 | ../btif/co/bta_dm_co.c \ |
| 63 | ../btif/co/bta_av_co.c \ |
| 64 | ../btif/co/bta_hh_co.c \ |
| 65 | ../btif/co/bta_hl_co.c \ |
| 66 | ../btif/co/bta_pan_co.c \ |
| 67 | ../btif/co/bta_gattc_co.c \ |
| 68 | ../btif/co/bta_gatts_co.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 69 | |
| 70 | # sbc encoder |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 71 | LOCAL_SRC_FILES+= \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 72 | ../embdrv/sbc/encoder/srce/sbc_analysis.c \ |
| 73 | ../embdrv/sbc/encoder/srce/sbc_dct.c \ |
| 74 | ../embdrv/sbc/encoder/srce/sbc_dct_coeffs.c \ |
| 75 | ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c \ |
| 76 | ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c \ |
| 77 | ../embdrv/sbc/encoder/srce/sbc_enc_coeffs.c \ |
| 78 | ../embdrv/sbc/encoder/srce/sbc_encoder.c \ |
| 79 | ../embdrv/sbc/encoder/srce/sbc_packing.c \ |
| 80 | |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 81 | LOCAL_SRC_FILES+= \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 82 | ../udrv/ulinux/uipc.c |
| 83 | |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 84 | LOCAL_C_INCLUDES+= . \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 85 | $(LOCAL_PATH)/../ \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 86 | $(LOCAL_PATH)/../bta/include \ |
| 87 | $(LOCAL_PATH)/../bta/sys \ |
| 88 | $(LOCAL_PATH)/../bta/dm \ |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 89 | $(LOCAL_PATH)/../btcore/include \ |
Sharvil Nanavati | 847ea13 | 2014-04-25 22:38:55 -0700 | [diff] [blame] | 90 | $(LOCAL_PATH)/../osi/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 91 | $(LOCAL_PATH)/../gki/common \ |
| 92 | $(LOCAL_PATH)/../gki/ulinux \ |
| 93 | $(LOCAL_PATH)/../include \ |
| 94 | $(LOCAL_PATH)/../stack/include \ |
| 95 | $(LOCAL_PATH)/../stack/l2cap \ |
| 96 | $(LOCAL_PATH)/../stack/a2dp \ |
| 97 | $(LOCAL_PATH)/../stack/btm \ |
| 98 | $(LOCAL_PATH)/../stack/avdt \ |
| 99 | $(LOCAL_PATH)/../hcis \ |
| 100 | $(LOCAL_PATH)/../hcis/include \ |
| 101 | $(LOCAL_PATH)/../hcis/patchram \ |
| 102 | $(LOCAL_PATH)/../udrv/include \ |
| 103 | $(LOCAL_PATH)/../btif/include \ |
| 104 | $(LOCAL_PATH)/../btif/co \ |
| 105 | $(LOCAL_PATH)/../hci/include\ |
Andre Eisenbach | b203d47 | 2013-11-20 17:23:06 -0800 | [diff] [blame] | 106 | $(LOCAL_PATH)/../vnd/include \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 107 | $(LOCAL_PATH)/../brcm/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 108 | $(LOCAL_PATH)/../embdrv/sbc/encoder/include \ |
Hemant Gupta | ce24765 | 2014-03-20 20:47:04 +0530 | [diff] [blame] | 109 | $(LOCAL_PATH)/../embdrv/sbc/decoder/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 110 | $(LOCAL_PATH)/../audio_a2dp_hw \ |
| 111 | $(LOCAL_PATH)/../utils/include \ |
| 112 | $(bdroid_C_INCLUDES) \ |
Andre Eisenbach | 89f5e41 | 2014-12-05 09:40:20 -0800 | [diff] [blame] | 113 | external/tinyxml2 \ |
| 114 | external/zlib |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 115 | |
Chris Manton | e2e1d88 | 2014-07-18 12:55:34 -0700 | [diff] [blame] | 116 | 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] | 117 | LOCAL_CONLYFLAGS := -std=c99 |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 118 | |
| 119 | ifeq ($(TARGET_PRODUCT), full_crespo) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 120 | LOCAL_CFLAGS += -DTARGET_CRESPO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 121 | endif |
| 122 | ifeq ($(TARGET_PRODUCT), full_crespo4g) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 123 | LOCAL_CFLAGS += -DTARGET_CRESPO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 124 | endif |
| 125 | ifeq ($(TARGET_PRODUCT), full_maguro) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 126 | LOCAL_CFLAGS += -DTARGET_MAGURO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 127 | endif |
| 128 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 129 | LOCAL_SHARED_LIBRARIES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 130 | libcutils \ |
| 131 | libdl \ |
| 132 | liblog \ |
| 133 | libpower \ |
Andre Eisenbach | 89f5e41 | 2014-12-05 09:40:20 -0800 | [diff] [blame] | 134 | libz |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 135 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 136 | LOCAL_STATIC_LIBRARIES := \ |
Zach Johnson | 0ef6b34 | 2015-05-19 14:49:37 -0700 | [diff] [blame] | 137 | libtinyxml2 \ |
| 138 | libbt-qcom_sbc_decoder |
| 139 | |
| 140 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 141 | libbt-brcm_bta \ |
Sharvil Nanavati | c0a87fe | 2015-03-02 14:56:24 -0800 | [diff] [blame] | 142 | libbt-brcm_gki \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 143 | libbt-brcm_stack \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 144 | libbtdevice \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 145 | libbt-hci \ |
| 146 | libbt-utils \ |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 147 | libbtcore \ |
Zach Johnson | 0ef6b34 | 2015-05-19 14:49:37 -0700 | [diff] [blame] | 148 | libosi |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 149 | |
| 150 | LOCAL_MODULE := bluetooth.default |
Colin Cross | 273789b | 2014-01-24 21:00:32 -0800 | [diff] [blame] | 151 | LOCAL_MODULE_RELATIVE_PATH := hw |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 152 | LOCAL_MODULE_TAGS := optional |
| 153 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
Pavlin Radoslavov | 7462611 | 2015-06-11 02:09:01 -0700 | [diff] [blame^] | 154 | |
| 155 | # |
| 156 | # Shared library link options. |
| 157 | # References to global symbols and functions should bind to the library |
| 158 | # itself. This is to avoid issues with some of the unit/system tests |
| 159 | # that might link statically with some of the code in the library, and |
| 160 | # also dlopen(3) the shared library. |
| 161 | # |
| 162 | LOCAL_LDLIBS := -Wl,-Bsymbolic,-Bsymbolic-functions |
| 163 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 164 | LOCAL_REQUIRED_MODULES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 165 | auto_pair_devlist.conf \ |
| 166 | bt_did.conf \ |
| 167 | bt_stack.conf \ |
| 168 | libbt-hci \ |
| 169 | libbt-vendor |
Chris Manton | 462cd3f | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 170 | |
Narayan Kamath | c2aeb2c | 2014-05-07 11:18:11 +0100 | [diff] [blame] | 171 | LOCAL_MULTILIB := 32 |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 172 | |
Bernhard Rosenkränzer | e406c16 | 2014-11-12 22:11:31 +0100 | [diff] [blame] | 173 | LOCAL_CLANG_CFLAGS := -Wno-error=gnu-variable-sized-type-not-at-end |
Dan Albert | 098f6a7 | 2015-02-19 18:02:52 -0800 | [diff] [blame] | 174 | LOCAL_CLANG_CFLAGS += -Wno-typedef-redefinition |
Bernhard Rosenkränzer | e406c16 | 2014-11-12 22:11:31 +0100 | [diff] [blame] | 175 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 176 | include $(BUILD_SHARED_LIBRARY) |