1 LOCAL_PATH := $(call my-dir)
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
8 bluetooth_C_INCLUDES :=
9 bluetooth_CFLAGS += -DHAS_NO_BDROID_BUILDCFG
12 ifneq ($(BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED),)
13 bluetooth_CFLAGS += -DHCILP_INCLUDED=$(BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED)
16 ifneq ($(TARGET_BUILD_VARIANT),user)
17 bluetooth_CFLAGS += -DBLUEDROID_DEBUG
20 bluetooth_CFLAGS += -DEXPORT_SYMBOL="__attribute__((visibility(\"default\")))"
23 # Common C/C++ compiler flags.
25 # - gnu-variable-sized-type-not-at-end is needed for a variable-size header in
27 # - constant-logical-operand is needed for code in l2c_utils.c that looks
35 -Wno-typedef-redefinition \
36 -Wno-gnu-variable-sized-type-not-at-end \
37 -Wno-unused-parameter \
38 -Wno-maybe-uninitialized \
40 -Wno-missing-field-initializers \
41 -Wno-unused-variable \
42 -Wno-non-literal-null-conversion \
44 -Wno-incompatible-pointer-types \
45 -Wno-unused-function \
47 -Wno-enum-conversion \
48 -Wno-logical-not-parentheses \
50 -Wno-constant-logical-operand \
55 bluetooth_CONLYFLAGS += -std=c99
58 include $(call all-subdir-makefiles)
61 bluetooth_C_INCLUDES :=
63 bluetooth_CONLYFLAGS :=