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 17 LOCAL_PATH := $(call my-dir) 18 19 # Bluetooth test suite for target 20 # ======================================================== 21 include $(CLEAR_VARS) 22 23 LOCAL_MODULE_TAGS := optional 24 LOCAL_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 29 bluetoothHalSrc := \ 30 ../../service/hal/bluetooth_gatt_interface.cpp \ 31 ../../service/hal/bluetooth_interface.cpp \ 32 ../../service/logging_helpers.cpp 33 34 LOCAL_C_INCLUDES += \ 35 $(LOCAL_PATH)/../../ 36 37 LOCAL_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 44 LOCAL_SHARED_LIBRARIES += \ 45 liblog \ 46 libhardware \ 47 libhardware_legacy \ 48 libcutils \ 49 libchrome 50 51 LOCAL_STATIC_LIBRARIES += \ 52 libbtcore \ 53 libosi 54 55 LOCAL_CFLAGS += $(bluetooth_CFLAGS) 56 LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS) 57 LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS) 58 59 include $(BUILD_NATIVE_TEST) 60