blob: 4ed80a49297ddb77dd403882f0354de4fadb8416 [file] [log] [blame]
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -07001// 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 Badour3c538232021-02-12 21:26:48 -080015package {
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 // SPDX-license-identifier-MIT
22 // SPDX-license-identifier-Unicode-DFS
23 default_applicable_licenses: ["frameworks_native_license"],
24}
25
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070026cc_test {
27 srcs: [
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070028 "dvr_display_manager-test.cpp",
29 "dvr_named_buffer-test.cpp",
Jiwen 'Steve' Caic604e3b2018-04-19 11:16:49 -070030 "dvr_tracking-test.cpp",
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070031 ],
32
Corey Tabaka52ea25c2017-09-13 18:02:48 -070033 header_libs: ["libdvr_headers"],
Jiwen 'Steve' Cai914b0652018-04-10 14:09:46 -070034 static_libs: [
Pat Plunkett6eadd172018-08-09 09:38:58 -070035 "libdvr_static.google",
Jiwen 'Steve' Cai914b0652018-04-10 14:09:46 -070036 "libchrome",
37 "libdvrcommon",
38 "libdisplay",
39 "libbroadcastring",
40 ],
41 shared_libs: [
42 "libbase",
43 "libbinder",
44 "libbufferhubqueue",
45 "libcutils",
46 "libgui",
47 "liblog",
48 "libhardware",
49 "libui",
50 "libutils",
51 "libnativewindow",
52 "libpdx_default_transport",
53 ],
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070054 cflags: [
Jiwen 'Steve' Caic604e3b2018-04-19 11:16:49 -070055 "-DDVR_TRACKING_IMPLEMENTED=0",
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070056 "-DLOG_TAG=\"dvr_api-test\"",
57 "-DTRACE=0",
Jiwen 'Steve' Cai638b7f72017-09-08 11:10:29 -070058 "-Wno-missing-field-initializers",
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070059 "-O0",
60 "-g",
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070061 ],
62 name: "dvr_api-test",
63}
Jiwen 'Steve' Cai914b0652018-04-10 14:09:46 -070064
65cc_test {
66 name: "dvr_buffer_queue-test",
67
68 // Includes the dvr_api.h header. Tests should only include "dvr_api.h",
69 // and shall only get access to |dvrGetApi|, as other symbols are hidden
70 // from the library.
71 include_dirs: ["frameworks/native/libs/vr/libdvr/include"],
72
73 srcs: ["dvr_buffer_queue-test.cpp"],
74
75 shared_libs: [
76 "libandroid",
77 "liblog",
78 ],
79
80 cflags: [
81 "-DTRACE=0",
82 "-O2",
83 "-g",
84 ],
85
86 // DTS Should only link to NDK libraries.
87 sdk_version: "26",
88 stl: "c++_static",
89}
90
91cc_test {
92 name: "dvr_display-test",
93
94 include_dirs: [
95 "frameworks/native/libs/vr/libdvr/include",
96 "frameworks/native/libs/nativewindow/include",
97 ],
98
99 srcs: ["dvr_display-test.cpp"],
100
101 shared_libs: [
102 "libandroid",
103 "liblog",
104 ],
105
106 cflags: [
107 "-DTRACE=0",
108 "-O2",
109 "-g",
110 ],
111
112 // DTS Should only link to NDK libraries.
113 sdk_version: "26",
114 stl: "c++_static",
115}