• 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}
23
24cc_test {
25    name: "SurfaceFlinger_test",
26    defaults: ["surfaceflinger_defaults"],
27    test_suites: ["device-tests"],
28    srcs: [
29        "BufferGenerator.cpp",
30        "CommonTypes_test.cpp",
31        "Credentials_test.cpp",
32        "DereferenceSurfaceControl_test.cpp",
33        "DisplayConfigs_test.cpp",
34        "EffectLayer_test.cpp",
35        "InvalidHandles_test.cpp",
36        "LayerCallback_test.cpp",
37        "LayerRenderTypeTransaction_test.cpp",
38        "LayerState_test.cpp",
39        "LayerTransaction_test.cpp",
40        "LayerTypeAndRenderTypeTransaction_test.cpp",
41        "LayerTypeTransaction_test.cpp",
42        "LayerUpdate_test.cpp",
43        "MirrorLayer_test.cpp",
44        "MultiDisplayLayerBounds_test.cpp",
45        "RefreshRateOverlay_test.cpp",
46        "RelativeZ_test.cpp",
47        "ReleaseBufferCallback_test.cpp",
48        "ScreenCapture_test.cpp",
49        "SetFrameRate_test.cpp",
50        "SetGeometry_test.cpp",
51        "Stress_test.cpp",
52        "SurfaceInterceptor_test.cpp",
53        "VirtualDisplay_test.cpp",
54    ],
55    data: ["SurfaceFlinger_test.filter"],
56    static_libs: [
57        "libtrace_proto",
58        "liblayers_proto",
59        "android.hardware.graphics.composer@2.1",
60    ],
61    shared_libs: [
62        "android.hardware.graphics.common-V2-ndk_platform",
63        "android.hardware.graphics.common@1.2",
64        "libandroid",
65        "libbase",
66        "libbinder",
67        "libcutils",
68        "libEGL",
69        "libGLESv2",
70        "libgui",
71        "liblog",
72        "libnativewindow",
73        "libprotobuf-cpp-full",
74        "libui",
75        "libutils",
76    ],
77    header_libs: [
78        "libnativewindow_headers",
79    ],
80}
81
82cc_defaults {
83    name: "ipc_defaults",
84    cflags: [
85        "-Wall",
86        "-Werror",
87    ],
88}
89
90cc_test {
91    name: "IPC_test",
92    defaults: ["ipc_defaults"],
93    test_suites: ["device-tests"],
94    srcs: [
95        "BufferGenerator.cpp",
96        "IPC_test.cpp",
97    ],
98    cppflags: [
99        "-Wall",
100        "-Werror",
101        "-Wformat",
102        "-Wthread-safety",
103        "-Wunused",
104        "-Wunreachable-code",
105    ],
106    shared_libs: [
107        "libandroid",
108        "libbinder",
109        "libcutils",
110        "libEGL",
111        "libGLESv2",
112        "libgui",
113        "liblayers_proto",
114        "liblog",
115        "libprotobuf-cpp-full",
116        "libui",
117        "libutils",
118    ],
119    cpp_std: "experimental",
120    gnu_extensions: false,
121}
122
123subdirs = [
124    "fakehwc",
125    "hwc2",
126    "unittests",
127    "utils",
128    "vsync",
129    "waitforvsync",
130]
131