1# Copyright (C) 2018 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 15LOCAL_PATH:= $(call my-dir) 16 17# TODO(b/73133405): Currently, building cc_test against NDK using Android.bp 18# doesn't work well. Migrate to use Android.bp once b/73133405 gets fixed. 19 20include $(CLEAR_VARS) 21LOCAL_MODULE:= dvr_buffer_queue-test 22 23# Includes the dvr_api.h header. Tests should only include "dvr_api.h", 24# and shall only get access to |dvrGetApi|, as other symbols are hidden from the 25# library. 26LOCAL_C_INCLUDES := \ 27 frameworks/native/libs/vr/libdvr/include \ 28 29LOCAL_SANITIZE := thread 30 31LOCAL_SRC_FILES := dvr_buffer_queue-test.cpp 32 33LOCAL_SHARED_LIBRARIES := \ 34 libandroid \ 35 liblog \ 36 37LOCAL_CFLAGS := \ 38 -DTRACE=0 \ 39 -O2 \ 40 -g \ 41 42# DTS Should only link to NDK libraries. 43LOCAL_SDK_VERSION := 26 44LOCAL_NDK_STL_VARIANT := c++_static 45 46include $(BUILD_NATIVE_TEST) 47 48 49include $(CLEAR_VARS) 50LOCAL_MODULE:= dvr_display-test 51 52LOCAL_C_INCLUDES := \ 53 frameworks/native/libs/vr/libdvr/include \ 54 frameworks/native/libs/nativewindow/include 55 56LOCAL_SANITIZE := thread 57 58LOCAL_SRC_FILES := dvr_display-test.cpp 59 60LOCAL_SHARED_LIBRARIES := \ 61 libandroid \ 62 liblog 63 64LOCAL_CFLAGS := \ 65 -DTRACE=0 \ 66 -O2 \ 67 -g 68 69# DTS Should only link to NDK libraries. 70LOCAL_SDK_VERSION := 26 71LOCAL_NDK_STL_VARIANT := c++_static 72 73include $(BUILD_NATIVE_TEST)