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 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 9 | # platform specific |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 10 | LOCAL_SRC_FILES+= \ |
| 11 | bte_main.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 12 | bte_init.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 13 | bte_logmsg.c \ |
Zach Johnson | 9891f32 | 2014-09-22 22:11:55 -0700 | [diff] [blame] | 14 | bte_conf.c \ |
| 15 | stack_config.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 16 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 17 | # sbc encoder |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 18 | LOCAL_SRC_FILES+= \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 19 | ../embdrv/sbc/encoder/srce/sbc_analysis.c \ |
| 20 | ../embdrv/sbc/encoder/srce/sbc_dct.c \ |
| 21 | ../embdrv/sbc/encoder/srce/sbc_dct_coeffs.c \ |
| 22 | ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c \ |
| 23 | ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c \ |
| 24 | ../embdrv/sbc/encoder/srce/sbc_enc_coeffs.c \ |
| 25 | ../embdrv/sbc/encoder/srce/sbc_encoder.c \ |
| 26 | ../embdrv/sbc/encoder/srce/sbc_packing.c \ |
| 27 | |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 28 | LOCAL_SRC_FILES+= \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 29 | ../udrv/ulinux/uipc.c |
| 30 | |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 31 | LOCAL_C_INCLUDES+= . \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 32 | $(LOCAL_PATH)/../ \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 33 | $(LOCAL_PATH)/../bta/include \ |
| 34 | $(LOCAL_PATH)/../bta/sys \ |
| 35 | $(LOCAL_PATH)/../bta/dm \ |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 36 | $(LOCAL_PATH)/../btcore/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 37 | $(LOCAL_PATH)/../include \ |
| 38 | $(LOCAL_PATH)/../stack/include \ |
| 39 | $(LOCAL_PATH)/../stack/l2cap \ |
| 40 | $(LOCAL_PATH)/../stack/a2dp \ |
| 41 | $(LOCAL_PATH)/../stack/btm \ |
| 42 | $(LOCAL_PATH)/../stack/avdt \ |
| 43 | $(LOCAL_PATH)/../hcis \ |
| 44 | $(LOCAL_PATH)/../hcis/include \ |
| 45 | $(LOCAL_PATH)/../hcis/patchram \ |
| 46 | $(LOCAL_PATH)/../udrv/include \ |
| 47 | $(LOCAL_PATH)/../btif/include \ |
| 48 | $(LOCAL_PATH)/../btif/co \ |
| 49 | $(LOCAL_PATH)/../hci/include\ |
Andre Eisenbach | b203d47 | 2013-11-20 17:23:06 -0800 | [diff] [blame] | 50 | $(LOCAL_PATH)/../vnd/include \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 51 | $(LOCAL_PATH)/../brcm/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 52 | $(LOCAL_PATH)/../embdrv/sbc/encoder/include \ |
Hemant Gupta | ce24765 | 2014-03-20 20:47:04 +0530 | [diff] [blame] | 53 | $(LOCAL_PATH)/../embdrv/sbc/decoder/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 54 | $(LOCAL_PATH)/../audio_a2dp_hw \ |
| 55 | $(LOCAL_PATH)/../utils/include \ |
| 56 | $(bdroid_C_INCLUDES) \ |
Andre Eisenbach | 89f5e41 | 2014-12-05 09:40:20 -0800 | [diff] [blame] | 57 | external/tinyxml2 \ |
| 58 | external/zlib |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 59 | |
Chris Manton | e2e1d88 | 2014-07-18 12:55:34 -0700 | [diff] [blame] | 60 | 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] | 61 | LOCAL_CONLYFLAGS := -std=c99 |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 62 | |
| 63 | ifeq ($(TARGET_PRODUCT), full_crespo) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 64 | LOCAL_CFLAGS += -DTARGET_CRESPO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 65 | endif |
| 66 | ifeq ($(TARGET_PRODUCT), full_crespo4g) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 67 | LOCAL_CFLAGS += -DTARGET_CRESPO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 68 | endif |
| 69 | ifeq ($(TARGET_PRODUCT), full_maguro) |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 70 | LOCAL_CFLAGS += -DTARGET_MAGURO |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 71 | endif |
| 72 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 73 | LOCAL_SHARED_LIBRARIES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 74 | libcutils \ |
| 75 | libdl \ |
| 76 | liblog \ |
Anubhav Gupta | 6b84f29 | 2015-05-05 13:15:07 +0530 | [diff] [blame] | 77 | libz \ |
| 78 | libpower \ |
Marie Janssen | 77f579f | 2016-01-15 16:14:14 -0800 | [diff] [blame^] | 79 | libprotobuf-cpp-full \ |
Anubhav Gupta | 6b84f29 | 2015-05-05 13:15:07 +0530 | [diff] [blame] | 80 | libmedia \ |
| 81 | libutils |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 82 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 83 | LOCAL_STATIC_LIBRARIES := \ |
Zach Johnson | 0ef6b34 | 2015-05-19 14:49:37 -0700 | [diff] [blame] | 84 | libtinyxml2 \ |
| 85 | libbt-qcom_sbc_decoder |
| 86 | |
| 87 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
Andre Eisenbach | e11cc0b | 2016-01-21 17:47:46 -0800 | [diff] [blame] | 88 | libbt-bta \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 89 | libbtdevice \ |
Andre Eisenbach | e11cc0b | 2016-01-21 17:47:46 -0800 | [diff] [blame] | 90 | libbtif \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 91 | libbt-hci \ |
Marie Janssen | 77f579f | 2016-01-15 16:14:14 -0800 | [diff] [blame^] | 92 | libbt-protos \ |
Andre Eisenbach | e11cc0b | 2016-01-21 17:47:46 -0800 | [diff] [blame] | 93 | libbt-stack \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 94 | libbt-utils \ |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 95 | libbtcore \ |
Zach Johnson | 0ef6b34 | 2015-05-19 14:49:37 -0700 | [diff] [blame] | 96 | libosi |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 97 | |
| 98 | LOCAL_MODULE := bluetooth.default |
Colin Cross | 273789b | 2014-01-24 21:00:32 -0800 | [diff] [blame] | 99 | LOCAL_MODULE_RELATIVE_PATH := hw |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 100 | LOCAL_MODULE_TAGS := optional |
| 101 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
Pavlin Radoslavov | 7462611 | 2015-06-11 02:09:01 -0700 | [diff] [blame] | 102 | |
| 103 | # |
| 104 | # Shared library link options. |
| 105 | # References to global symbols and functions should bind to the library |
| 106 | # itself. This is to avoid issues with some of the unit/system tests |
| 107 | # that might link statically with some of the code in the library, and |
| 108 | # also dlopen(3) the shared library. |
| 109 | # |
| 110 | LOCAL_LDLIBS := -Wl,-Bsymbolic,-Bsymbolic-functions |
| 111 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 112 | LOCAL_REQUIRED_MODULES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 113 | auto_pair_devlist.conf \ |
| 114 | bt_did.conf \ |
| 115 | bt_stack.conf \ |
| 116 | libbt-hci \ |
| 117 | libbt-vendor |
Chris Manton | 462cd3f | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 118 | |
Bernhard Rosenkränzer | e406c16 | 2014-11-12 22:11:31 +0100 | [diff] [blame] | 119 | LOCAL_CLANG_CFLAGS := -Wno-error=gnu-variable-sized-type-not-at-end |
Dan Albert | 098f6a7 | 2015-02-19 18:02:52 -0800 | [diff] [blame] | 120 | LOCAL_CLANG_CFLAGS += -Wno-typedef-redefinition |
Andreas Gampe | 8fc771e | 2016-01-05 13:52:00 -0800 | [diff] [blame] | 121 | # Too many unused parameters. TODO: Annotate them. |
| 122 | LOCAL_CFLAGS += -Wno-unused-parameter |
Bernhard Rosenkränzer | e406c16 | 2014-11-12 22:11:31 +0100 | [diff] [blame] | 123 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 124 | include $(BUILD_SHARED_LIBRARY) |