blob: 26c91faa18e49fcb3852f88f402098a93673d83c [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 Badour3306e492021-02-25 15:35:37 -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",
chaviw618c42d2020-07-24 15:25:08 -070038 "LayerState_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070039 "LayerTransaction_test.cpp",
40 "LayerTypeAndRenderTypeTransaction_test.cpp",
41 "LayerTypeTransaction_test.cpp",
42 "LayerUpdate_test.cpp",
chaviwfe94a222019-08-21 13:52:59 -070043 "MirrorLayer_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070044 "MultiDisplayLayerBounds_test.cpp",
Ady Abraham4a474e82020-10-02 15:47:55 -070045 "RefreshRateOverlay_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070046 "RelativeZ_test.cpp",
Vishnu Nair1506b182021-02-22 14:35:15 -080047 "ReleaseBufferCallback_test.cpp",
chaviw3efadb12020-07-27 10:07:15 -070048 "ScreenCapture_test.cpp",
Steven Thomas3172e202020-01-06 19:25:30 -080049 "SetFrameRate_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070050 "SetGeometry_test.cpp",
51 "Stress_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080052 "SurfaceInterceptor_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070053 "VirtualDisplay_test.cpp",
chaviwbf023a62021-06-07 16:00:06 -050054 "WindowInfosListener_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080055 ],
56 data: ["SurfaceFlinger_test.filter"],
57 static_libs: [
58 "libtrace_proto",
Vishnu Nairdf6a4f62020-11-11 20:25:34 -080059 "liblayers_proto",
Vishnu Nair3242d5f2020-10-06 10:48:32 -070060 "android.hardware.graphics.composer@2.1",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080061 ],
62 shared_libs: [
Jeongik Cha830c5002021-01-28 00:49:48 +090063 "android.hardware.graphics.common-V2-ndk_platform",
Marissa Wall5b285482019-11-18 17:07:46 -080064 "android.hardware.graphics.common@1.2",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080065 "libandroid",
Vishnu Nair3242d5f2020-10-06 10:48:32 -070066 "libbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080067 "libbinder",
68 "libcutils",
69 "libEGL",
70 "libGLESv2",
71 "libgui",
72 "liblog",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080073 "libnativewindow",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080074 "libprotobuf-cpp-full",
75 "libui",
76 "libutils",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080077 ],
78 header_libs: [
79 "libnativewindow_headers",
80 ],
Valerie Hau9dab9732019-08-20 09:29:25 -070081}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080082
Valerie Hau9dab9732019-08-20 09:29:25 -070083cc_defaults {
84 name: "ipc_defaults",
85 cflags: [
86 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080087 "-Werror",
Valerie Hau9dab9732019-08-20 09:29:25 -070088 ],
89}
90
91cc_test {
92 name: "IPC_test",
93 defaults: ["ipc_defaults"],
94 test_suites: ["device-tests"],
95 srcs: [
96 "BufferGenerator.cpp",
97 "IPC_test.cpp",
98 ],
99 cppflags: [
100 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -0800101 "-Werror",
102 "-Wformat",
103 "-Wthread-safety",
104 "-Wunused",
105 "-Wunreachable-code",
Valerie Hau9dab9732019-08-20 09:29:25 -0700106 ],
107 shared_libs: [
108 "libandroid",
109 "libbinder",
110 "libcutils",
111 "libEGL",
112 "libGLESv2",
113 "libgui",
114 "liblayers_proto",
115 "liblog",
116 "libprotobuf-cpp-full",
Valerie Hau9dab9732019-08-20 09:29:25 -0700117 "libui",
118 "libutils",
119 ],
120 cpp_std: "experimental",
121 gnu_extensions: false,
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800122}
123
124subdirs = [
125 "fakehwc",
126 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800127 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700128 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800129 "vsync",
130 "waitforvsync",
131]