blob: 25a0358ab0afda9555c5b76abdea3db3eb91a4d8 [file] [log] [blame]
Ian McKellare93ac122013-11-07 16:30:05 -08001LOCAL_PATH:= $(call my-dir)
The Android Open Source Project5738f832012-12-12 16:00:35 -08002
Pavlin Radoslavov1377f932016-02-11 19:44:47 -08003# Bluetooth main HW module / shared library for target
4# ========================================================
The Android Open Source Project5738f832012-12-12 16:00:35 -08005include $(CLEAR_VARS)
6
The Android Open Source Project5738f832012-12-12 16:00:35 -08007# platform specific
Ian McKellare93ac122013-11-07 16:30:05 -08008LOCAL_SRC_FILES+= \
9 bte_main.c \
The Android Open Source Project5738f832012-12-12 16:00:35 -080010 bte_init.c \
The Android Open Source Project5738f832012-12-12 16:00:35 -080011 bte_logmsg.c \
Zach Johnson9891f322014-09-22 22:11:55 -070012 bte_conf.c \
13 stack_config.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080014
The Android Open Source Project5738f832012-12-12 16:00:35 -080015# sbc encoder
Ian McKellare93ac122013-11-07 16:30:05 -080016LOCAL_SRC_FILES+= \
The Android Open Source Project5738f832012-12-12 16:00:35 -080017 ../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 McKellare93ac122013-11-07 16:30:05 -080026LOCAL_SRC_FILES+= \
The Android Open Source Project5738f832012-12-12 16:00:35 -080027 ../udrv/ulinux/uipc.c
28
Ian McKellare93ac122013-11-07 16:30:05 -080029LOCAL_C_INCLUDES+= . \
Chris Manton79ecab52014-10-31 14:54:51 -070030 $(LOCAL_PATH)/../ \
The Android Open Source Project5738f832012-12-12 16:00:35 -080031 $(LOCAL_PATH)/../bta/include \
32 $(LOCAL_PATH)/../bta/sys \
33 $(LOCAL_PATH)/../bta/dm \
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070034 $(LOCAL_PATH)/../btcore/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080035 $(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 Eisenbachb203d472013-11-20 17:23:06 -080048 $(LOCAL_PATH)/../vnd/include \
Ian McKellare93ac122013-11-07 16:30:05 -080049 $(LOCAL_PATH)/../brcm/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080050 $(LOCAL_PATH)/../embdrv/sbc/encoder/include \
Hemant Guptace247652014-03-20 20:47:04 +053051 $(LOCAL_PATH)/../embdrv/sbc/decoder/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080052 $(LOCAL_PATH)/../audio_a2dp_hw \
53 $(LOCAL_PATH)/../utils/include \
Pavlin Radoslavov1377f932016-02-11 19:44:47 -080054 $(bluetooth_C_INCLUDES) \
Alain Vongsouvanh9a58e682016-03-29 17:33:55 -070055 external/tinyxml2 \
Andre Eisenbach89f5e412014-12-05 09:40:20 -080056 external/zlib
The Android Open Source Project5738f832012-12-12 16:00:35 -080057
The Android Open Source Project5738f832012-12-12 16:00:35 -080058LOCAL_SHARED_LIBRARIES := \
Ian McKellare93ac122013-11-07 16:30:05 -080059 libcutils \
60 libdl \
61 liblog \
Anubhav Gupta6b84f292015-05-05 13:15:07 +053062 libz \
63 libpower \
Marie Janssen77f579f2016-01-15 16:14:14 -080064 libprotobuf-cpp-full \
Anubhav Gupta6b84f292015-05-05 13:15:07 +053065 libmedia \
Ajay Panicker1d00dd22016-02-17 18:18:00 -080066 libutils \
67 libchrome
The Android Open Source Project5738f832012-12-12 16:00:35 -080068
Chris Mantone01b1122014-05-07 16:21:00 -070069LOCAL_STATIC_LIBRARIES := \
Alain Vongsouvanh9a58e682016-03-29 17:33:55 -070070 libtinyxml2 \
Zach Johnson0ef6b342015-05-19 14:49:37 -070071 libbt-qcom_sbc_decoder
72
73LOCAL_WHOLE_STATIC_LIBRARIES := \
Andre Eisenbache11cc0b2016-01-21 17:47:46 -080074 libbt-bta \
Chris Manton79ecab52014-10-31 14:54:51 -070075 libbtdevice \
Andre Eisenbache11cc0b2016-01-21 17:47:46 -080076 libbtif \
Ian McKellare93ac122013-11-07 16:30:05 -080077 libbt-hci \
Marie Janssen77f579f2016-01-15 16:14:14 -080078 libbt-protos \
Andre Eisenbache11cc0b2016-01-21 17:47:46 -080079 libbt-stack \
Ian McKellare93ac122013-11-07 16:30:05 -080080 libbt-utils \
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070081 libbtcore \
Zach Johnson0ef6b342015-05-19 14:49:37 -070082 libosi
The Android Open Source Project5738f832012-12-12 16:00:35 -080083
84LOCAL_MODULE := bluetooth.default
Colin Cross273789b2014-01-24 21:00:32 -080085LOCAL_MODULE_RELATIVE_PATH := hw
The Android Open Source Project5738f832012-12-12 16:00:35 -080086LOCAL_MODULE_TAGS := optional
87LOCAL_MODULE_CLASS := SHARED_LIBRARIES
Pavlin Radoslavov74626112015-06-11 02:09:01 -070088
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#
96LOCAL_LDLIBS := -Wl,-Bsymbolic,-Bsymbolic-functions
97
Chris Mantone01b1122014-05-07 16:21:00 -070098LOCAL_REQUIRED_MODULES := \
Ian McKellare93ac122013-11-07 16:30:05 -080099 bt_did.conf \
100 bt_stack.conf \
101 libbt-hci \
102 libbt-vendor
Chris Manton462cd3f2014-05-07 16:21:00 -0700103
Pavlin Radoslavov1377f932016-02-11 19:44:47 -0800104LOCAL_CFLAGS += $(bluetooth_CFLAGS) -DBUILDCFG
105LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS)
106LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS)
Bernhard Rosenkränzere406c162014-11-12 22:11:31 +0100107
The Android Open Source Project5738f832012-12-12 16:00:35 -0800108include $(BUILD_SHARED_LIBRARY)