blob: b3fae47c413012dcda1b9a6e5b95cc1fe075407a [file] [log] [blame]
Jiwen 'Steve' Caica93bab2018-02-08 14:14:52 -08001# 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
17include $(CLEAR_VARS)
18LOCAL_MODULE:= dvr_buffer_queue-test
19
20# Includes the dvr_api.h header. Tests should only include "dvr_api.h",
21# and shall only get access to |dvrGetApi|, as other symbols are hidden from the
22# library.
23LOCAL_C_INCLUDES := \
24 frameworks/native/libs/vr/libdvr/include \
25
26LOCAL_SANITIZE := thread
27
28LOCAL_SRC_FILES := \
29 dvr_buffer_queue-test.cpp \
30
31LOCAL_SHARED_LIBRARIES := \
32 libandroid \
33 liblog \
34
35LOCAL_CFLAGS := \
36 -DTRACE=0 \
37 -O2 \
38 -g \
39
40# DTS Should only link to NDK libraries.
41LOCAL_SDK_VERSION := 26
42LOCAL_NDK_STL_VARIANT := c++_static
43
44# TODO(b/73133405): Currently, builing cc_test against NDK using Android.bp
45# doesn't work well. Migrate to use Android.bp once b/73133405 gets fixed.
46include $(BUILD_NATIVE_TEST)