OSDN Git Service

AVRCP: Check number of text attribute values in response
[android-x86/system-bt.git] / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 # Setup Bluetooth local make variables for handling configuration
4 ifneq ($(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR),)
5   bluetooth_C_INCLUDES := $(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR)
6   bluetooth_CFLAGS += -DHAS_BDROID_BUILDCFG
7 else
8   bluetooth_C_INCLUDES :=
9   bluetooth_CFLAGS += -DHAS_NO_BDROID_BUILDCFG
10 endif
11
12 ifeq ($(TARGET_BUILD_VARIANT),userdebug)
13 bluetooth_CFLAGS += -DQLOGKIT_USERDEBUG
14 endif
15
16 ifneq ($(BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED),)
17   bluetooth_CFLAGS += -DHCILP_INCLUDED=$(BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED)
18 endif
19
20 ifeq ($(TARGET_BUILD_VARIANT),eng)
21 bluetooth_CFLAGS += -DBLUEDROID_DEBUG
22 endif
23
24 bluetooth_CFLAGS += -DUSE_AUDIO_TRACK
25
26 bluetooth_CFLAGS += -DEXPORT_SYMBOL="__attribute__((visibility(\"default\")))"
27
28 #
29 # Common C/C++ compiler flags.
30 #
31 # -Wno-gnu-variable-sized-type-not-at-end is needed, because struct BT_HDR
32 #  is defined as a variable-size header in a struct.
33 # -Wno-typedef-redefinition is needed because of the way the struct typedef
34 #  is done in osi/include header files. This issue can be obsoleted by
35 #  switching to C11 or C++.
36 # -Wno-unused-parameter is needed, because there are too many unused
37 #  parameters in all the code.
38 #
39 bluetooth_CFLAGS += \
40   -fvisibility=hidden \
41   -Wall \
42   -Wextra \
43   -Werror \
44   -Wno-gnu-variable-sized-type-not-at-end \
45   -Wno-typedef-redefinition \
46   -Wno-unused-parameter \
47   -UNDEBUG \
48   -DLOG_NDEBUG=1
49
50 ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPLIT_A2DP)),true)
51 bluetooth_CFLAGS += -DBTA_AV_SPLIT_A2DP_ENABLED
52 bluetooth_CFLAGS += -DBTA_AV_SPLIT_A2DP_DEF_FREQ_48KHZ
53 bluetooth_CFLAGS += -DAPTX_48000
54 endif
55
56 bluetooth_CONLYFLAGS += -std=c99
57 bluetooth_CPPFLAGS :=
58
59 include $(call all-subdir-makefiles)
60
61 # Cleanup our locals
62 bluetooth_C_INCLUDES :=
63 bluetooth_CFLAGS :=
64 bluetooth_CONLYFLAGS :=
65 bluetooth_CPPFLAGS :=