1# 2# Copyright (C) 2015 Google, Inc. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at: 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17LOCAL_PATH := $(call my-dir) 18 19# Bluetooth test suite for target 20# ======================================================== 21include $(CLEAR_VARS) 22 23LOCAL_MODULE_TAGS := optional 24LOCAL_MODULE := net_test_bluetooth 25 26# These tests use the bluetoothtbd HAL wrappers in order to easily interact 27# with the interface using C++ 28# TODO: Make the bluetoothtbd HAL a static library 29bluetoothHalSrc := \ 30 ../../service/hal/bluetooth_gatt_interface.cpp \ 31 ../../service/hal/bluetooth_interface.cpp \ 32 ../../service/logging_helpers.cpp 33 34LOCAL_C_INCLUDES += \ 35 $(LOCAL_PATH)/../../ 36 37LOCAL_SRC_FILES := \ 38 adapter/adapter_unittest.cpp \ 39 adapter/bluetooth_test.cpp \ 40 gatt/gatt_test.cpp \ 41 gatt/gatt_unittest.cpp \ 42 $(bluetoothHalSrc) 43 44LOCAL_SHARED_LIBRARIES += \ 45 liblog \ 46 libhardware \ 47 libhardware_legacy \ 48 libcutils \ 49 libchrome 50 51LOCAL_STATIC_LIBRARIES += \ 52 libbtcore \ 53 libosi 54 55LOCAL_CFLAGS += $(bluetooth_CFLAGS) 56LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS) 57LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS) 58 59include $(BUILD_NATIVE_TEST) 60