blob: e8b24b49bcf97523480a11000d4f044832fd3e48 [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",
chaviw5e1e8f22020-07-10 12:46:21 -070024 "DetachChildren_test.cpp",
Ana Krulec0782b882019-10-15 17:34:54 -070025 "DisplayConfigs_test.cpp",
Vishnu Nairc43a23c2020-05-29 14:32:27 -070026 "EffectLayer_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070027 "InvalidHandles_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070028 "LayerCallback_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070029 "LayerRenderTypeTransaction_test.cpp",
chaviw618c42d2020-07-24 15:25:08 -070030 "LayerState_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070031 "LayerTransaction_test.cpp",
32 "LayerTypeAndRenderTypeTransaction_test.cpp",
33 "LayerTypeTransaction_test.cpp",
34 "LayerUpdate_test.cpp",
chaviwfe94a222019-08-21 13:52:59 -070035 "MirrorLayer_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070036 "MultiDisplayLayerBounds_test.cpp",
Ady Abraham4a474e82020-10-02 15:47:55 -070037 "RefreshRateOverlay_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070038 "RelativeZ_test.cpp",
chaviw3efadb12020-07-27 10:07:15 -070039 "ScreenCapture_test.cpp",
Steven Thomas3172e202020-01-06 19:25:30 -080040 "SetFrameRate_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070041 "SetGeometry_test.cpp",
42 "Stress_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080043 "SurfaceInterceptor_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070044 "VirtualDisplay_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080045 ],
46 data: ["SurfaceFlinger_test.filter"],
47 static_libs: [
48 "libtrace_proto",
Vishnu Nairdf6a4f62020-11-11 20:25:34 -080049 "liblayers_proto",
Vishnu Nair3242d5f2020-10-06 10:48:32 -070050 "android.hardware.graphics.composer@2.1",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080051 ],
52 shared_libs: [
Steven Moreland58f36542020-10-16 23:46:04 +000053 "android.hardware.graphics.common-unstable-ndk_platform",
Marissa Wall5b285482019-11-18 17:07:46 -080054 "android.hardware.graphics.common@1.2",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080055 "libandroid",
Vishnu Nair3242d5f2020-10-06 10:48:32 -070056 "libbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080057 "libbinder",
58 "libcutils",
59 "libEGL",
60 "libGLESv2",
61 "libgui",
62 "liblog",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080063 "libnativewindow",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080064 "libprotobuf-cpp-full",
65 "libui",
66 "libutils",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080067 ],
68 header_libs: [
69 "libnativewindow_headers",
70 ],
Valerie Hau9dab9732019-08-20 09:29:25 -070071}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080072
Valerie Hau9dab9732019-08-20 09:29:25 -070073cc_defaults {
74 name: "ipc_defaults",
75 cflags: [
76 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080077 "-Werror",
Valerie Hau9dab9732019-08-20 09:29:25 -070078 ],
79}
80
81cc_test {
82 name: "IPC_test",
83 defaults: ["ipc_defaults"],
84 test_suites: ["device-tests"],
85 srcs: [
86 "BufferGenerator.cpp",
87 "IPC_test.cpp",
88 ],
89 cppflags: [
90 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080091 "-Werror",
92 "-Wformat",
93 "-Wthread-safety",
94 "-Wunused",
95 "-Wunreachable-code",
Valerie Hau9dab9732019-08-20 09:29:25 -070096 ],
97 shared_libs: [
98 "libandroid",
99 "libbinder",
100 "libcutils",
101 "libEGL",
102 "libGLESv2",
103 "libgui",
104 "liblayers_proto",
105 "liblog",
106 "libprotobuf-cpp-full",
Valerie Hau9dab9732019-08-20 09:29:25 -0700107 "libui",
108 "libutils",
109 ],
110 cpp_std: "experimental",
111 gnu_extensions: false,
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800112}
113
114subdirs = [
115 "fakehwc",
116 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800117 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700118 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800119 "vsync",
120 "waitforvsync",
121]