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