• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
15package {
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    default_team: "trendy_team_android_core_graphics_stack",
23}
24
25cc_test {
26    name: "SurfaceFlinger_test",
27    defaults: [
28        "android.hardware.graphics.common-ndk_shared",
29        "surfaceflinger_defaults",
30        "libsurfaceflinger_common_test_deps",
31        "libsurfaceflinger_proto_deps",
32    ],
33    test_suites: ["device-tests"],
34    srcs: [
35        "BootDisplayMode_test.cpp",
36        "Binder_test.cpp",
37        "BufferGenerator.cpp",
38        "Credentials_test.cpp",
39        "DereferenceSurfaceControl_test.cpp",
40        "DisplayConfigs_test.cpp",
41        "DisplayEventReceiver_test.cpp",
42        "Dumpsys_test.cpp",
43        "EffectLayer_test.cpp",
44        "HdrSdrRatioOverlay_test.cpp",
45        "InvalidHandles_test.cpp",
46        "LayerCallback_test.cpp",
47        "LayerRenderTypeTransaction_test.cpp",
48        "LayerState_test.cpp",
49        "LayerTransaction_test.cpp",
50        "LayerTrustedPresentationListener_test.cpp",
51        "LayerTypeAndRenderTypeTransaction_test.cpp",
52        "LayerTypeTransaction_test.cpp",
53        "LayerUpdate_test.cpp",
54        "MirrorLayer_test.cpp",
55        "MultiDisplay_test.cpp",
56        "RefreshRateOverlay_test.cpp",
57        "RelativeZ_test.cpp",
58        "ReleaseBufferCallback_test.cpp",
59        "ScreenCapture_test.cpp",
60        "SetFrameRate_test.cpp",
61        "SetGeometry_test.cpp",
62        "TextureFiltering_test.cpp",
63        "VirtualDisplay_test.cpp",
64        "WindowInfosListener_test.cpp",
65    ],
66    data: [
67        "SurfaceFlinger_test.filter",
68        "testdata/*",
69    ],
70    static_libs: [
71        "android.hardware.graphics.composer@2.1",
72        "libsurfaceflinger_common",
73    ],
74    shared_libs: [
75        "android.hardware.graphics.common@1.2",
76        "libandroid",
77        "libbase",
78        "libbinder",
79        "libcutils",
80        "libEGL",
81        "libGLESv2",
82        "libjnigraphics",
83        "libgui",
84        "liblog",
85        "libnativewindow",
86        "libprotobuf-cpp-full",
87        "libui",
88        "libutils",
89        "server_configurable_flags",
90        "libc++",
91    ],
92    header_libs: [
93        "libnativewindow_headers",
94    ],
95}
96
97cc_defaults {
98    name: "ipc_defaults",
99    cflags: [
100        "-Wall",
101        "-Werror",
102    ],
103}
104
105cc_test {
106    name: "IPC_test",
107    defaults: ["ipc_defaults"],
108    test_suites: ["device-tests"],
109    srcs: [
110        "BufferGenerator.cpp",
111        "IPC_test.cpp",
112    ],
113    cppflags: [
114        "-Wall",
115        "-Werror",
116        "-Wformat",
117        "-Wthread-safety",
118        "-Wunused",
119        "-Wunreachable-code",
120    ],
121    shared_libs: [
122        "libandroid",
123        "libbinder",
124        "libcutils",
125        "libEGL",
126        "libGLESv2",
127        "libgui",
128        "liblog",
129        "libprotobuf-cpp-full",
130        "libui",
131        "libutils",
132    ],
133    cpp_std: "experimental",
134    gnu_extensions: false,
135    data: [
136        ":SurfaceFlinger_test",
137    ],
138}
139
140subdirs = [
141    "hwc2",
142    "unittests",
143    "utils",
144    "vsync",
145    "waitforvsync",
146]
147