Jiwen 'Steve' Cai | ca93bab | 2018-02-08 14:14:52 -0800 | [diff] [blame] | 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 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
TianyuJiang | 2724b77 | 2018-02-21 13:47:53 -0800 | [diff] [blame] | 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 | |
Jiwen 'Steve' Cai | ca93bab | 2018-02-08 14:14:52 -0800 | [diff] [blame] | 20 | include $(CLEAR_VARS) |
| 21 | LOCAL_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. |
| 26 | LOCAL_C_INCLUDES := \ |
| 27 | frameworks/native/libs/vr/libdvr/include \ |
| 28 | |
| 29 | LOCAL_SANITIZE := thread |
| 30 | |
TianyuJiang | 2724b77 | 2018-02-21 13:47:53 -0800 | [diff] [blame] | 31 | LOCAL_SRC_FILES := dvr_buffer_queue-test.cpp |
Jiwen 'Steve' Cai | ca93bab | 2018-02-08 14:14:52 -0800 | [diff] [blame] | 32 | |
| 33 | LOCAL_SHARED_LIBRARIES := \ |
| 34 | libandroid \ |
| 35 | liblog \ |
| 36 | |
| 37 | LOCAL_CFLAGS := \ |
| 38 | -DTRACE=0 \ |
| 39 | -O2 \ |
| 40 | -g \ |
| 41 | |
| 42 | # DTS Should only link to NDK libraries. |
| 43 | LOCAL_SDK_VERSION := 26 |
| 44 | LOCAL_NDK_STL_VARIANT := c++_static |
| 45 | |
Jiwen 'Steve' Cai | ca93bab | 2018-02-08 14:14:52 -0800 | [diff] [blame] | 46 | include $(BUILD_NATIVE_TEST) |
TianyuJiang | 2724b77 | 2018-02-21 13:47:53 -0800 | [diff] [blame] | 47 | |
| 48 | |
| 49 | include $(CLEAR_VARS) |
| 50 | LOCAL_MODULE:= dvr_display-test |
| 51 | |
| 52 | LOCAL_C_INCLUDES := \ |
| 53 | frameworks/native/libs/vr/libdvr/include \ |
| 54 | frameworks/native/libs/nativewindow/include |
| 55 | |
| 56 | LOCAL_SANITIZE := thread |
| 57 | |
| 58 | LOCAL_SRC_FILES := dvr_display-test.cpp |
| 59 | |
| 60 | LOCAL_SHARED_LIBRARIES := \ |
| 61 | libandroid \ |
| 62 | liblog |
| 63 | |
| 64 | LOCAL_CFLAGS := \ |
| 65 | -DTRACE=0 \ |
| 66 | -O2 \ |
| 67 | -g |
| 68 | |
| 69 | # DTS Should only link to NDK libraries. |
| 70 | LOCAL_SDK_VERSION := 26 |
| 71 | LOCAL_NDK_STL_VARIANT := c++_static |
| 72 | |
| 73 | include $(BUILD_NATIVE_TEST) |