blob: cc5f57514c9c3c0a54898867694a4ebd1b262fe3 [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",
chaviw76f5f2f2019-09-23 10:15:51 -070022 "DereferenceSurfaceControl_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070023 "DisplayActiveConfig_test.cpp",
Ana Krulec0782b882019-10-15 17:34:54 -070024 "DisplayConfigs_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070025 "InvalidHandles_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070026 "LayerCallback_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070027 "LayerRenderTypeTransaction_test.cpp",
28 "LayerTransaction_test.cpp",
29 "LayerTypeAndRenderTypeTransaction_test.cpp",
30 "LayerTypeTransaction_test.cpp",
31 "LayerUpdate_test.cpp",
chaviwfe94a222019-08-21 13:52:59 -070032 "MirrorLayer_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070033 "MultiDisplayLayerBounds_test.cpp",
34 "RelativeZ_test.cpp",
35 "SetGeometry_test.cpp",
36 "Stress_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080037 "SurfaceInterceptor_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070038 "VirtualDisplay_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080039 ],
40 data: ["SurfaceFlinger_test.filter"],
41 static_libs: [
42 "libtrace_proto",
43 ],
44 shared_libs: [
45 "libandroid",
46 "libbinder",
47 "libcutils",
48 "libEGL",
49 "libGLESv2",
50 "libgui",
chaviw7794ec12018-03-14 13:28:39 -070051 "liblayers_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080052 "liblog",
53 "libprotobuf-cpp-full",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070054 "libtimestats_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080055 "libui",
56 "libutils",
57 ]
Valerie Hau9dab9732019-08-20 09:29:25 -070058}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080059
Valerie Hau9dab9732019-08-20 09:29:25 -070060cc_defaults {
61 name: "ipc_defaults",
62 cflags: [
63 "-Wall",
64 "-Werror",
65 ],
66}
67
68cc_test {
69 name: "IPC_test",
70 defaults: ["ipc_defaults"],
71 test_suites: ["device-tests"],
72 srcs: [
73 "BufferGenerator.cpp",
74 "IPC_test.cpp",
75 ],
76 cppflags: [
77 "-Wall",
78 "-Werror",
79 "-Wformat",
80 "-Wthread-safety",
81 "-Wunused",
82 "-Wunreachable-code",
83 ],
84 shared_libs: [
85 "libandroid",
86 "libbinder",
87 "libcutils",
88 "libEGL",
89 "libGLESv2",
90 "libgui",
91 "liblayers_proto",
92 "liblog",
93 "libprotobuf-cpp-full",
94 "libtimestats_proto",
95 "libui",
96 "libutils",
97 ],
98 cpp_std: "experimental",
99 gnu_extensions: false,
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800100}
101
102subdirs = [
103 "fakehwc",
104 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800105 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700106 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800107 "vsync",
108 "waitforvsync",
109]