blob: 1c8199ac6d65f2e3fef45f69d639813f7b5f5ac8 [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",
Marissa Wall5b285482019-11-18 17:07:46 -080021 "CommonTypes_test.cpp",
Ana Krulec13be8ad2018-08-21 02:43:56 +000022 "Credentials_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070023 "DereferenceSurfaceControl_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: [
Steven Moreland1ac7ce92020-01-06 13:58:00 -080045 "android.hardware.graphics.common-ndk_platform",
Marissa Wall5b285482019-11-18 17:07:46 -080046 "android.hardware.graphics.common@1.2",
47 "android.hardware.graphics.composer@2.1",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080048 "libandroid",
49 "libbinder",
50 "libcutils",
51 "libEGL",
52 "libGLESv2",
53 "libgui",
chaviw7794ec12018-03-14 13:28:39 -070054 "liblayers_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080055 "liblog",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080056 "libnativewindow",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080057 "libprotobuf-cpp-full",
58 "libui",
59 "libutils",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080060 ],
61 header_libs: [
62 "libnativewindow_headers",
63 ],
Valerie Hau9dab9732019-08-20 09:29:25 -070064}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080065
Valerie Hau9dab9732019-08-20 09:29:25 -070066cc_defaults {
67 name: "ipc_defaults",
68 cflags: [
69 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080070 "-Werror",
Valerie Hau9dab9732019-08-20 09:29:25 -070071 ],
72}
73
74cc_test {
75 name: "IPC_test",
76 defaults: ["ipc_defaults"],
77 test_suites: ["device-tests"],
78 srcs: [
79 "BufferGenerator.cpp",
80 "IPC_test.cpp",
81 ],
82 cppflags: [
83 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080084 "-Werror",
85 "-Wformat",
86 "-Wthread-safety",
87 "-Wunused",
88 "-Wunreachable-code",
Valerie Hau9dab9732019-08-20 09:29:25 -070089 ],
90 shared_libs: [
91 "libandroid",
92 "libbinder",
93 "libcutils",
94 "libEGL",
95 "libGLESv2",
96 "libgui",
97 "liblayers_proto",
98 "liblog",
99 "libprotobuf-cpp-full",
Valerie Hau9dab9732019-08-20 09:29:25 -0700100 "libui",
101 "libutils",
102 ],
103 cpp_std: "experimental",
104 gnu_extensions: false,
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800105}
106
107subdirs = [
108 "fakehwc",
109 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800110 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700111 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800112 "vsync",
113 "waitforvsync",
114]