1 # Copyright 2017 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 # Build the unit tests. 16 17 LOCAL_PATH:= $(call my-dir) 18 19 include $(CLEAR_VARS) 20 LOCAL_MODULE := libnativeaaudiotest 21 LOCAL_MULTILIB := both 22 23 LOCAL_SRC_FILES := \ 24 test_aaudio.cpp \ 25 test_aaudio_attributes.cpp \ 26 test_aaudio_callback.cpp \ 27 test_aaudio_mmap.cpp \ 28 test_aaudio_misc.cpp \ 29 test_aaudio_stream_builder.cpp \ 30 test_session_id.cpp \ 31 utils.cpp \ 32 33 LOCAL_SHARED_LIBRARIES := \ 34 libaaudio \ 35 liblog 36 37 LOCAL_WHOLE_STATIC_LIBRARIES := libnativetesthelper_jni 38 39 LOCAL_CFLAGS := -Werror -Wall 40 41 LOCAL_SDK_VERSION := current 42 LOCAL_NDK_STL_VARIANT := c++_static 43 44 include $(BUILD_SHARED_LIBRARY) 45