Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 1 | // Copyright (C) 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 | |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 15 | cc_test { |
| 16 | srcs: [ |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 17 | "dvr_display_manager-test.cpp", |
| 18 | "dvr_named_buffer-test.cpp", |
Jiwen 'Steve' Cai | c604e3b | 2018-04-19 11:16:49 -0700 | [diff] [blame] | 19 | "dvr_tracking-test.cpp", |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 20 | ], |
| 21 | |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 22 | header_libs: ["libdvr_headers"], |
Jiwen 'Steve' Cai | 914b065 | 2018-04-10 14:09:46 -0700 | [diff] [blame] | 23 | static_libs: [ |
Pat Plunkett | 6eadd17 | 2018-08-09 09:38:58 -0700 | [diff] [blame] | 24 | "libdvr_static.google", |
Jiwen 'Steve' Cai | 914b065 | 2018-04-10 14:09:46 -0700 | [diff] [blame] | 25 | "libchrome", |
| 26 | "libdvrcommon", |
| 27 | "libdisplay", |
| 28 | "libbroadcastring", |
| 29 | ], |
| 30 | shared_libs: [ |
| 31 | "libbase", |
| 32 | "libbinder", |
| 33 | "libbufferhubqueue", |
| 34 | "libcutils", |
| 35 | "libgui", |
| 36 | "liblog", |
| 37 | "libhardware", |
| 38 | "libui", |
| 39 | "libutils", |
| 40 | "libnativewindow", |
| 41 | "libpdx_default_transport", |
| 42 | ], |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 43 | cflags: [ |
Jiwen 'Steve' Cai | c604e3b | 2018-04-19 11:16:49 -0700 | [diff] [blame] | 44 | "-DDVR_TRACKING_IMPLEMENTED=0", |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 45 | "-DLOG_TAG=\"dvr_api-test\"", |
| 46 | "-DTRACE=0", |
Jiwen 'Steve' Cai | 638b7f7 | 2017-09-08 11:10:29 -0700 | [diff] [blame] | 47 | "-Wno-missing-field-initializers", |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 48 | "-O0", |
| 49 | "-g", |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 50 | ], |
| 51 | name: "dvr_api-test", |
| 52 | } |
Jiwen 'Steve' Cai | 914b065 | 2018-04-10 14:09:46 -0700 | [diff] [blame] | 53 | |
| 54 | cc_test { |
| 55 | name: "dvr_buffer_queue-test", |
| 56 | |
| 57 | // Includes the dvr_api.h header. Tests should only include "dvr_api.h", |
| 58 | // and shall only get access to |dvrGetApi|, as other symbols are hidden |
| 59 | // from the library. |
| 60 | include_dirs: ["frameworks/native/libs/vr/libdvr/include"], |
| 61 | |
| 62 | srcs: ["dvr_buffer_queue-test.cpp"], |
| 63 | |
| 64 | shared_libs: [ |
| 65 | "libandroid", |
| 66 | "liblog", |
| 67 | ], |
| 68 | |
| 69 | cflags: [ |
| 70 | "-DTRACE=0", |
| 71 | "-O2", |
| 72 | "-g", |
| 73 | ], |
| 74 | |
| 75 | // DTS Should only link to NDK libraries. |
| 76 | sdk_version: "26", |
| 77 | stl: "c++_static", |
| 78 | } |
| 79 | |
| 80 | cc_test { |
| 81 | name: "dvr_display-test", |
| 82 | |
| 83 | include_dirs: [ |
| 84 | "frameworks/native/libs/vr/libdvr/include", |
| 85 | "frameworks/native/libs/nativewindow/include", |
| 86 | ], |
| 87 | |
| 88 | srcs: ["dvr_display-test.cpp"], |
| 89 | |
| 90 | shared_libs: [ |
| 91 | "libandroid", |
| 92 | "liblog", |
| 93 | ], |
| 94 | |
| 95 | cflags: [ |
| 96 | "-DTRACE=0", |
| 97 | "-O2", |
| 98 | "-g", |
| 99 | ], |
| 100 | |
| 101 | // DTS Should only link to NDK libraries. |
| 102 | sdk_version: "26", |
| 103 | stl: "c++_static", |
| 104 | } |