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