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 | |
Pavlin Radoslavov | 1377f93 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 3 | # Bluetooth main HW module / shared library for target |
| 4 | # ======================================================== |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 5 | include $(CLEAR_VARS) |
| 6 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 7 | # platform specific |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 8 | LOCAL_SRC_FILES+= \ |
| 9 | bte_main.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 10 | bte_init.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 11 | bte_logmsg.c \ |
Zach Johnson | 9891f32 | 2014-09-22 22:11:55 -0700 | [diff] [blame] | 12 | bte_conf.c \ |
| 13 | stack_config.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 14 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 15 | # sbc encoder |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 16 | LOCAL_SRC_FILES+= \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 17 | ../embdrv/sbc/encoder/srce/sbc_analysis.c \ |
| 18 | ../embdrv/sbc/encoder/srce/sbc_dct.c \ |
| 19 | ../embdrv/sbc/encoder/srce/sbc_dct_coeffs.c \ |
| 20 | ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c \ |
| 21 | ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c \ |
| 22 | ../embdrv/sbc/encoder/srce/sbc_enc_coeffs.c \ |
| 23 | ../embdrv/sbc/encoder/srce/sbc_encoder.c \ |
| 24 | ../embdrv/sbc/encoder/srce/sbc_packing.c \ |
| 25 | |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 26 | LOCAL_SRC_FILES+= \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 27 | ../udrv/ulinux/uipc.c |
| 28 | |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 29 | LOCAL_C_INCLUDES+= . \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 30 | $(LOCAL_PATH)/../ \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 31 | $(LOCAL_PATH)/../bta/include \ |
| 32 | $(LOCAL_PATH)/../bta/sys \ |
| 33 | $(LOCAL_PATH)/../bta/dm \ |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 34 | $(LOCAL_PATH)/../btcore/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 35 | $(LOCAL_PATH)/../include \ |
| 36 | $(LOCAL_PATH)/../stack/include \ |
| 37 | $(LOCAL_PATH)/../stack/l2cap \ |
| 38 | $(LOCAL_PATH)/../stack/a2dp \ |
| 39 | $(LOCAL_PATH)/../stack/btm \ |
| 40 | $(LOCAL_PATH)/../stack/avdt \ |
| 41 | $(LOCAL_PATH)/../hcis \ |
| 42 | $(LOCAL_PATH)/../hcis/include \ |
| 43 | $(LOCAL_PATH)/../hcis/patchram \ |
| 44 | $(LOCAL_PATH)/../udrv/include \ |
| 45 | $(LOCAL_PATH)/../btif/include \ |
| 46 | $(LOCAL_PATH)/../btif/co \ |
| 47 | $(LOCAL_PATH)/../hci/include\ |
Andre Eisenbach | b203d47 | 2013-11-20 17:23:06 -0800 | [diff] [blame] | 48 | $(LOCAL_PATH)/../vnd/include \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 49 | $(LOCAL_PATH)/../brcm/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 50 | $(LOCAL_PATH)/../embdrv/sbc/encoder/include \ |
Hemant Gupta | ce24765 | 2014-03-20 20:47:04 +0530 | [diff] [blame] | 51 | $(LOCAL_PATH)/../embdrv/sbc/decoder/include \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 52 | $(LOCAL_PATH)/../audio_a2dp_hw \ |
| 53 | $(LOCAL_PATH)/../utils/include \ |
Pavlin Radoslavov | 1377f93 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 54 | $(bluetooth_C_INCLUDES) \ |
Alain Vongsouvanh | 9a58e68 | 2016-03-29 17:33:55 -0700 | [diff] [blame] | 55 | external/tinyxml2 \ |
Andre Eisenbach | 89f5e41 | 2014-12-05 09:40:20 -0800 | [diff] [blame] | 56 | external/zlib |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 57 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 58 | LOCAL_SHARED_LIBRARIES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 59 | libcutils \ |
| 60 | libdl \ |
| 61 | liblog \ |
Anubhav Gupta | 6b84f29 | 2015-05-05 13:15:07 +0530 | [diff] [blame] | 62 | libz \ |
| 63 | libpower \ |
Marie Janssen | 77f579f | 2016-01-15 16:14:14 -0800 | [diff] [blame] | 64 | libprotobuf-cpp-full \ |
Anubhav Gupta | 6b84f29 | 2015-05-05 13:15:07 +0530 | [diff] [blame] | 65 | libmedia \ |
Ajay Panicker | 1d00dd2 | 2016-02-17 18:18:00 -0800 | [diff] [blame] | 66 | libutils \ |
| 67 | libchrome |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 68 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 69 | LOCAL_STATIC_LIBRARIES := \ |
Alain Vongsouvanh | 9a58e68 | 2016-03-29 17:33:55 -0700 | [diff] [blame] | 70 | libtinyxml2 \ |
Zach Johnson | 0ef6b34 | 2015-05-19 14:49:37 -0700 | [diff] [blame] | 71 | libbt-qcom_sbc_decoder |
| 72 | |
| 73 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
Andre Eisenbach | e11cc0b | 2016-01-21 17:47:46 -0800 | [diff] [blame] | 74 | libbt-bta \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 75 | libbtdevice \ |
Andre Eisenbach | e11cc0b | 2016-01-21 17:47:46 -0800 | [diff] [blame] | 76 | libbtif \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 77 | libbt-hci \ |
Marie Janssen | 77f579f | 2016-01-15 16:14:14 -0800 | [diff] [blame] | 78 | libbt-protos \ |
Andre Eisenbach | e11cc0b | 2016-01-21 17:47:46 -0800 | [diff] [blame] | 79 | libbt-stack \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 80 | libbt-utils \ |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 81 | libbtcore \ |
Zach Johnson | 0ef6b34 | 2015-05-19 14:49:37 -0700 | [diff] [blame] | 82 | libosi |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 83 | |
| 84 | LOCAL_MODULE := bluetooth.default |
Colin Cross | 273789b | 2014-01-24 21:00:32 -0800 | [diff] [blame] | 85 | LOCAL_MODULE_RELATIVE_PATH := hw |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 86 | LOCAL_MODULE_TAGS := optional |
| 87 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
Pavlin Radoslavov | 7462611 | 2015-06-11 02:09:01 -0700 | [diff] [blame] | 88 | |
| 89 | # |
| 90 | # Shared library link options. |
| 91 | # References to global symbols and functions should bind to the library |
| 92 | # itself. This is to avoid issues with some of the unit/system tests |
| 93 | # that might link statically with some of the code in the library, and |
| 94 | # also dlopen(3) the shared library. |
| 95 | # |
| 96 | LOCAL_LDLIBS := -Wl,-Bsymbolic,-Bsymbolic-functions |
| 97 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 98 | LOCAL_REQUIRED_MODULES := \ |
Ian McKellar | e93ac12 | 2013-11-07 16:30:05 -0800 | [diff] [blame] | 99 | bt_did.conf \ |
| 100 | bt_stack.conf \ |
| 101 | libbt-hci \ |
| 102 | libbt-vendor |
Chris Manton | 462cd3f | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 103 | |
Pavlin Radoslavov | 1377f93 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 104 | LOCAL_CFLAGS += $(bluetooth_CFLAGS) -DBUILDCFG |
| 105 | LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS) |
| 106 | LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS) |
Bernhard Rosenkränzer | e406c16 | 2014-11-12 22:11:31 +0100 | [diff] [blame] | 107 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 108 | include $(BUILD_SHARED_LIBRARY) |