blob: 81e39c7f3016d6f5f116b8a14f68f4fea8725562 [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
Bob Badour3c538232021-02-12 21:26:48 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Lloyd Pique66ce40d2018-01-23 16:42:19 -080024cc_test {
25 name: "SurfaceFlinger_test",
26 defaults: ["surfaceflinger_defaults"],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080027 test_suites: ["device-tests"],
28 srcs: [
Marissa Wall713b63f2018-10-17 15:42:43 -070029 "BufferGenerator.cpp",
Marissa Wall5b285482019-11-18 17:07:46 -080030 "CommonTypes_test.cpp",
Ana Krulec13be8ad2018-08-21 02:43:56 +000031 "Credentials_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070032 "DereferenceSurfaceControl_test.cpp",
Ana Krulec0782b882019-10-15 17:34:54 -070033 "DisplayConfigs_test.cpp",
Vishnu Nairc43a23c2020-05-29 14:32:27 -070034 "EffectLayer_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070035 "InvalidHandles_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070036 "LayerCallback_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070037 "LayerRenderTypeTransaction_test.cpp",
38 "LayerTransaction_test.cpp",
39 "LayerTypeAndRenderTypeTransaction_test.cpp",
40 "LayerTypeTransaction_test.cpp",
41 "LayerUpdate_test.cpp",
chaviwfe94a222019-08-21 13:52:59 -070042 "MirrorLayer_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070043 "MultiDisplayLayerBounds_test.cpp",
44 "RelativeZ_test.cpp",
Steven Thomas3172e202020-01-06 19:25:30 -080045 "SetFrameRate_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070046 "SetGeometry_test.cpp",
47 "Stress_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080048 "SurfaceInterceptor_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070049 "VirtualDisplay_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080050 ],
51 data: ["SurfaceFlinger_test.filter"],
52 static_libs: [
53 "libtrace_proto",
54 ],
55 shared_libs: [
Jiyong Park9a9427c2021-08-09 09:01:15 +090056 "android.hardware.graphics.common-V2-ndk",
Marissa Wall5b285482019-11-18 17:07:46 -080057 "android.hardware.graphics.common@1.2",
58 "android.hardware.graphics.composer@2.1",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080059 "libandroid",
60 "libbinder",
61 "libcutils",
62 "libEGL",
63 "libGLESv2",
64 "libgui",
chaviw7794ec12018-03-14 13:28:39 -070065 "liblayers_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080066 "liblog",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080067 "libnativewindow",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080068 "libprotobuf-cpp-full",
69 "libui",
70 "libutils",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080071 ],
72 header_libs: [
73 "libnativewindow_headers",
74 ],
Valerie Hau9dab9732019-08-20 09:29:25 -070075}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080076
Valerie Hau9dab9732019-08-20 09:29:25 -070077cc_defaults {
78 name: "ipc_defaults",
79 cflags: [
80 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080081 "-Werror",
Valerie Hau9dab9732019-08-20 09:29:25 -070082 ],
83}
84
85cc_test {
86 name: "IPC_test",
87 defaults: ["ipc_defaults"],
88 test_suites: ["device-tests"],
89 srcs: [
90 "BufferGenerator.cpp",
91 "IPC_test.cpp",
92 ],
93 cppflags: [
94 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080095 "-Werror",
96 "-Wformat",
97 "-Wthread-safety",
98 "-Wunused",
99 "-Wunreachable-code",
Valerie Hau9dab9732019-08-20 09:29:25 -0700100 ],
101 shared_libs: [
102 "libandroid",
103 "libbinder",
104 "libcutils",
105 "libEGL",
106 "libGLESv2",
107 "libgui",
108 "liblayers_proto",
109 "liblog",
110 "libprotobuf-cpp-full",
Valerie Hau9dab9732019-08-20 09:29:25 -0700111 "libui",
112 "libutils",
113 ],
114 cpp_std: "experimental",
115 gnu_extensions: false,
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800116}
117
118subdirs = [
119 "fakehwc",
120 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800121 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700122 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800123 "vsync",
124 "waitforvsync",
125]