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 "WindowInfosListener_test.cpp", 55 ], 56 data: ["SurfaceFlinger_test.filter"], 57 static_libs: [ 58 "libtrace_proto", 59 "liblayers_proto", 60 "android.hardware.graphics.composer@2.1", 61 ], 62 shared_libs: [ 63 "android.hardware.graphics.common-V2-ndk_platform", 64 "android.hardware.graphics.common@1.2", 65 "libandroid", 66 "libbase", 67 "libbinder", 68 "libcutils", 69 "libEGL", 70 "libGLESv2", 71 "libgui", 72 "liblog", 73 "libnativewindow", 74 "libprotobuf-cpp-full", 75 "libui", 76 "libutils", 77 ], 78 header_libs: [ 79 "libnativewindow_headers", 80 ], 81} 82 83cc_defaults { 84 name: "ipc_defaults", 85 cflags: [ 86 "-Wall", 87 "-Werror", 88 ], 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", 101 "-Werror", 102 "-Wformat", 103 "-Wthread-safety", 104 "-Wunused", 105 "-Wunreachable-code", 106 ], 107 shared_libs: [ 108 "libandroid", 109 "libbinder", 110 "libcutils", 111 "libEGL", 112 "libGLESv2", 113 "libgui", 114 "liblayers_proto", 115 "liblog", 116 "libprotobuf-cpp-full", 117 "libui", 118 "libutils", 119 ], 120 cpp_std: "experimental", 121 gnu_extensions: false, 122} 123 124subdirs = [ 125 "fakehwc", 126 "hwc2", 127 "unittests", 128 "utils", 129 "vsync", 130 "waitforvsync", 131] 132