blob: 357dffe1936c2e7125127c3a6c1abcf392a03e18 [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
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070015cc_test {
16 srcs: [
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070017 "dvr_display_manager-test.cpp",
18 "dvr_named_buffer-test.cpp",
Jiwen 'Steve' Caic604e3b2018-04-19 11:16:49 -070019 "dvr_tracking-test.cpp",
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070020 ],
21
Corey Tabaka52ea25c2017-09-13 18:02:48 -070022 header_libs: ["libdvr_headers"],
Jiwen 'Steve' Cai914b0652018-04-10 14:09:46 -070023 static_libs: [
Pat Plunkett6eadd172018-08-09 09:38:58 -070024 "libdvr_static.google",
Jiwen 'Steve' Cai914b0652018-04-10 14:09:46 -070025 "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' Cai64177e82017-05-08 17:07:52 -070043 cflags: [
Jiwen 'Steve' Caic604e3b2018-04-19 11:16:49 -070044 "-DDVR_TRACKING_IMPLEMENTED=0",
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070045 "-DLOG_TAG=\"dvr_api-test\"",
46 "-DTRACE=0",
Jiwen 'Steve' Cai638b7f72017-09-08 11:10:29 -070047 "-Wno-missing-field-initializers",
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070048 "-O0",
49 "-g",
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070050 ],
51 name: "dvr_api-test",
Jiwen 'Steve' Cai9f7b7f32018-10-10 15:05:01 -070052
53 // TODO(b/117568153): Temporarily opt out using libcrt.
54 no_libcrt: true,
Jiwen 'Steve' Cai64177e82017-05-08 17:07:52 -070055}
Jiwen 'Steve' Cai914b0652018-04-10 14:09:46 -070056
57cc_test {
58 name: "dvr_buffer_queue-test",
59
60 // Includes the dvr_api.h header. Tests should only include "dvr_api.h",
61 // and shall only get access to |dvrGetApi|, as other symbols are hidden
62 // from the library.
63 include_dirs: ["frameworks/native/libs/vr/libdvr/include"],
64
65 srcs: ["dvr_buffer_queue-test.cpp"],
66
67 shared_libs: [
68 "libandroid",
69 "liblog",
70 ],
71
72 cflags: [
73 "-DTRACE=0",
74 "-O2",
75 "-g",
76 ],
77
78 // DTS Should only link to NDK libraries.
79 sdk_version: "26",
80 stl: "c++_static",
81}
82
83cc_test {
84 name: "dvr_display-test",
85
86 include_dirs: [
87 "frameworks/native/libs/vr/libdvr/include",
88 "frameworks/native/libs/nativewindow/include",
89 ],
90
91 srcs: ["dvr_display-test.cpp"],
92
93 shared_libs: [
94 "libandroid",
95 "liblog",
96 ],
97
98 cflags: [
99 "-DTRACE=0",
100 "-O2",
101 "-g",
102 ],
103
104 // DTS Should only link to NDK libraries.
105 sdk_version: "26",
106 stl: "c++_static",
107}