1 ##############################################################################
3 # Copyright (C) 2014 Google, Inc.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at:
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 ##############################################################################
19 LOCAL_PATH := $(call my-dir)
22 # ========================================================
27 ../EventLogTags.logtags
32 src/btif_avrcp_audio_track.cpp \
34 src/btif_config_transcode.cpp \
37 src/btif_debug_btsnoop.c \
38 src/btif_debug_conn.c \
41 src/btif_gatt_client.c \
42 src/btif_gatt_multi_adv_util.c \
43 src/btif_gatt_server.c \
44 src/btif_gatt_test.c \
45 src/btif_gatt_util.c \
47 src/btif_hf_client.c \
51 src/btif_media_task.c \
53 src/btif_profile_queue.c \
58 src/btif_sock_l2cap.c \
61 src/btif_sock_thread.c \
62 src/btif_sdp_server.c \
63 src/btif_sock_util.c \
81 test/btif_storage_test.cpp
84 btifCommonIncludes := \
86 $(LOCAL_PATH)/../bta/include \
87 $(LOCAL_PATH)/../bta/sys \
88 $(LOCAL_PATH)/../bta/dm \
89 $(LOCAL_PATH)/../btcore/include \
90 $(LOCAL_PATH)/../include \
91 $(LOCAL_PATH)/../stack/include \
92 $(LOCAL_PATH)/../stack/l2cap \
93 $(LOCAL_PATH)/../stack/a2dp \
94 $(LOCAL_PATH)/../stack/btm \
95 $(LOCAL_PATH)/../stack/avdt \
96 $(LOCAL_PATH)/../hcis \
97 $(LOCAL_PATH)/../hcis/include \
98 $(LOCAL_PATH)/../hcis/patchram \
99 $(LOCAL_PATH)/../udrv/include \
100 $(LOCAL_PATH)/../btif/include \
101 $(LOCAL_PATH)/../btif/co \
102 $(LOCAL_PATH)/../hci/include\
103 $(LOCAL_PATH)/../vnd/include \
104 $(LOCAL_PATH)/../brcm/include \
105 $(LOCAL_PATH)/../embdrv/sbc/encoder/include \
106 $(LOCAL_PATH)/../embdrv/sbc/decoder/include \
107 $(LOCAL_PATH)/../audio_a2dp_hw \
108 $(LOCAL_PATH)/../utils/include \
109 $(bluetooth_C_INCLUDES) \
113 # libbtif static library for target
114 # ========================================================
115 include $(CLEAR_VARS)
116 LOCAL_C_INCLUDES := $(btifCommonIncludes)
117 LOCAL_SRC_FILES := $(btifCommonSrc)
118 # Many .h files have redefined typedefs
119 LOCAL_SHARED_LIBRARIES := libcutils liblog
120 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
121 LOCAL_MODULE_TAGS := optional
122 LOCAL_MODULE := libbtif
124 LOCAL_CFLAGS += $(bluetooth_CFLAGS) -DBUILDCFG
125 LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS)
126 LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS)
128 include $(BUILD_STATIC_LIBRARY)
130 # btif unit tests for target
131 # ========================================================
132 include $(CLEAR_VARS)
133 LOCAL_C_INCLUDES := $(btifCommonIncludes)
134 LOCAL_SRC_FILES := $(btifTestSrc)
135 LOCAL_SHARED_LIBRARIES += liblog libhardware libhardware_legacy libcutils
136 LOCAL_STATIC_LIBRARIES += libbtcore libbtif libosi
137 LOCAL_MODULE_TAGS := optional
138 LOCAL_MODULE := net_test_btif
140 LOCAL_CFLAGS += $(bluetooth_CFLAGS) -DBUILDCFG
141 LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS)
142 LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS)
144 include $(BUILD_NATIVE_TEST)