blob: d6b9b607740620f7b21eebf3650280a4989fcc25 [file] [log] [blame]
Lloyd Pique66ce40d2018-01-23 16:42:19 -08001// Copyright (C) 2018 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
15cc_test {
16 name: "SurfaceFlinger_test",
17 defaults: ["surfaceflinger_defaults"],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080018 test_suites: ["device-tests"],
19 srcs: [
Marissa Wall713b63f2018-10-17 15:42:43 -070020 "BufferGenerator.cpp",
Ana Krulec13be8ad2018-08-21 02:43:56 +000021 "Credentials_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070022 "DereferenceSurfaceControl_test.cpp",
23 "DisplayActiveConfig_test.cpp",
24 "InvalidHandles_test.cpp",
25 "LayerCallback_test.cpp",
26 "LayerRenderTypeTransaction_test.cpp",
27 "LayerTransaction_test.cpp",
28 "LayerTypeAndRenderTypeTransaction_test.cpp",
29 "LayerTypeTransaction_test.cpp",
30 "LayerUpdate_test.cpp",
31 "MultiDisplayLayerBounds_test.cpp",
32 "RelativeZ_test.cpp",
33 "Stress_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080034 "SurfaceInterceptor_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070035 "VirtualDisplay_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080036 ],
37 data: ["SurfaceFlinger_test.filter"],
38 static_libs: [
39 "libtrace_proto",
40 ],
41 shared_libs: [
42 "libandroid",
43 "libbinder",
44 "libcutils",
45 "libEGL",
46 "libGLESv2",
47 "libgui",
chaviw7794ec12018-03-14 13:28:39 -070048 "liblayers_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080049 "liblog",
50 "libprotobuf-cpp-full",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070051 "libtimestats_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080052 "libui",
53 "libutils",
54 ]
Valerie Hau9dab9732019-08-20 09:29:25 -070055}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080056
Valerie Hau9dab9732019-08-20 09:29:25 -070057cc_defaults {
58 name: "ipc_defaults",
59 cflags: [
60 "-Wall",
61 "-Werror",
62 ],
63}
64
65cc_test {
66 name: "IPC_test",
67 defaults: ["ipc_defaults"],
68 test_suites: ["device-tests"],
69 srcs: [
70 "BufferGenerator.cpp",
71 "IPC_test.cpp",
72 ],
73 cppflags: [
74 "-Wall",
75 "-Werror",
76 "-Wformat",
77 "-Wthread-safety",
78 "-Wunused",
79 "-Wunreachable-code",
80 ],
81 shared_libs: [
82 "libandroid",
83 "libbinder",
84 "libcutils",
85 "libEGL",
86 "libGLESv2",
87 "libgui",
88 "liblayers_proto",
89 "liblog",
90 "libprotobuf-cpp-full",
91 "libtimestats_proto",
92 "libui",
93 "libutils",
94 ],
95 cpp_std: "experimental",
96 gnu_extensions: false,
Lloyd Pique66ce40d2018-01-23 16:42:19 -080097}
98
99subdirs = [
100 "fakehwc",
101 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800102 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700103 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800104 "vsync",
105 "waitforvsync",
106]