blob: 462be43d59db337cb42a86641ae331ce9bde62b4 [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
3#
4# Bluetooth HW module
5#
6
7include $(CLEAR_VARS)
8
The Android Open Source Project5738f832012-12-12 16:00:35 -08009# platform specific
Ian McKellare93ac122013-11-07 16:30:05 -080010LOCAL_SRC_FILES+= \
11 bte_main.c \
The Android Open Source Project5738f832012-12-12 16:00:35 -080012 bte_init.c \
The Android Open Source Project5738f832012-12-12 16:00:35 -080013 bte_logmsg.c \
Zach Johnson9891f322014-09-22 22:11:55 -070014 bte_conf.c \
15 stack_config.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080016
The Android Open Source Project5738f832012-12-12 16:00:35 -080017# sbc encoder
Ian McKellare93ac122013-11-07 16:30:05 -080018LOCAL_SRC_FILES+= \
The Android Open Source Project5738f832012-12-12 16:00:35 -080019 ../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 McKellare93ac122013-11-07 16:30:05 -080028LOCAL_SRC_FILES+= \
The Android Open Source Project5738f832012-12-12 16:00:35 -080029 ../udrv/ulinux/uipc.c
30
Ian McKellare93ac122013-11-07 16:30:05 -080031LOCAL_C_INCLUDES+= . \
Chris Manton79ecab52014-10-31 14:54:51 -070032 $(LOCAL_PATH)/../ \
The Android Open Source Project5738f832012-12-12 16:00:35 -080033 $(LOCAL_PATH)/../bta/include \
34 $(LOCAL_PATH)/../bta/sys \
35 $(LOCAL_PATH)/../bta/dm \
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070036 $(LOCAL_PATH)/../btcore/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080037 $(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 Eisenbachb203d472013-11-20 17:23:06 -080050 $(LOCAL_PATH)/../vnd/include \
Ian McKellare93ac122013-11-07 16:30:05 -080051 $(LOCAL_PATH)/../brcm/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080052 $(LOCAL_PATH)/../embdrv/sbc/encoder/include \
Hemant Guptace247652014-03-20 20:47:04 +053053 $(LOCAL_PATH)/../embdrv/sbc/decoder/include \
The Android Open Source Project5738f832012-12-12 16:00:35 -080054 $(LOCAL_PATH)/../audio_a2dp_hw \
55 $(LOCAL_PATH)/../utils/include \
56 $(bdroid_C_INCLUDES) \
Andre Eisenbach89f5e412014-12-05 09:40:20 -080057 external/tinyxml2 \
58 external/zlib
The Android Open Source Project5738f832012-12-12 16:00:35 -080059
Chris Mantone2e1d882014-07-18 12:55:34 -070060LOCAL_CFLAGS += -DBUILDCFG $(bdroid_CFLAGS) -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=unused-parameter
Sharvil Nanavati5b6b25d2014-04-05 00:44:19 -070061LOCAL_CONLYFLAGS := -std=c99
The Android Open Source Project5738f832012-12-12 16:00:35 -080062
63ifeq ($(TARGET_PRODUCT), full_crespo)
Ian McKellare93ac122013-11-07 16:30:05 -080064 LOCAL_CFLAGS += -DTARGET_CRESPO
The Android Open Source Project5738f832012-12-12 16:00:35 -080065endif
66ifeq ($(TARGET_PRODUCT), full_crespo4g)
Ian McKellare93ac122013-11-07 16:30:05 -080067 LOCAL_CFLAGS += -DTARGET_CRESPO
The Android Open Source Project5738f832012-12-12 16:00:35 -080068endif
69ifeq ($(TARGET_PRODUCT), full_maguro)
Ian McKellare93ac122013-11-07 16:30:05 -080070 LOCAL_CFLAGS += -DTARGET_MAGURO
The Android Open Source Project5738f832012-12-12 16:00:35 -080071endif
72
The Android Open Source Project5738f832012-12-12 16:00:35 -080073LOCAL_SHARED_LIBRARIES := \
Ian McKellare93ac122013-11-07 16:30:05 -080074 libcutils \
75 libdl \
76 liblog \
Anubhav Gupta6b84f292015-05-05 13:15:07 +053077 libz \
78 libpower \
Marie Janssen77f579f2016-01-15 16:14:14 -080079 libprotobuf-cpp-full \
Anubhav Gupta6b84f292015-05-05 13:15:07 +053080 libmedia \
81 libutils
The Android Open Source Project5738f832012-12-12 16:00:35 -080082
Chris Mantone01b1122014-05-07 16:21:00 -070083LOCAL_STATIC_LIBRARIES := \
Zach Johnson0ef6b342015-05-19 14:49:37 -070084 libtinyxml2 \
85 libbt-qcom_sbc_decoder
86
87LOCAL_WHOLE_STATIC_LIBRARIES := \
Andre Eisenbache11cc0b2016-01-21 17:47:46 -080088 libbt-bta \
Chris Manton79ecab52014-10-31 14:54:51 -070089 libbtdevice \
Andre Eisenbache11cc0b2016-01-21 17:47:46 -080090 libbtif \
Ian McKellare93ac122013-11-07 16:30:05 -080091 libbt-hci \
Marie Janssen77f579f2016-01-15 16:14:14 -080092 libbt-protos \
Andre Eisenbache11cc0b2016-01-21 17:47:46 -080093 libbt-stack \
Ian McKellare93ac122013-11-07 16:30:05 -080094 libbt-utils \
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070095 libbtcore \
Zach Johnson0ef6b342015-05-19 14:49:37 -070096 libosi
The Android Open Source Project5738f832012-12-12 16:00:35 -080097
98LOCAL_MODULE := bluetooth.default
Colin Cross273789b2014-01-24 21:00:32 -080099LOCAL_MODULE_RELATIVE_PATH := hw
The Android Open Source Project5738f832012-12-12 16:00:35 -0800100LOCAL_MODULE_TAGS := optional
101LOCAL_MODULE_CLASS := SHARED_LIBRARIES
Pavlin Radoslavov74626112015-06-11 02:09:01 -0700102
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#
110LOCAL_LDLIBS := -Wl,-Bsymbolic,-Bsymbolic-functions
111
Chris Mantone01b1122014-05-07 16:21:00 -0700112LOCAL_REQUIRED_MODULES := \
Ian McKellare93ac122013-11-07 16:30:05 -0800113 auto_pair_devlist.conf \
114 bt_did.conf \
115 bt_stack.conf \
116 libbt-hci \
117 libbt-vendor
Chris Manton462cd3f2014-05-07 16:21:00 -0700118
Bernhard Rosenkränzere406c162014-11-12 22:11:31 +0100119LOCAL_CLANG_CFLAGS := -Wno-error=gnu-variable-sized-type-not-at-end
Dan Albert098f6a72015-02-19 18:02:52 -0800120LOCAL_CLANG_CFLAGS += -Wno-typedef-redefinition
Andreas Gampe8fc771e2016-01-05 13:52:00 -0800121# Too many unused parameters. TODO: Annotate them.
122LOCAL_CFLAGS += -Wno-unused-parameter
Bernhard Rosenkränzere406c162014-11-12 22:11:31 +0100123
The Android Open Source Project5738f832012-12-12 16:00:35 -0800124include $(BUILD_SHARED_LIBRARY)