Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 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 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 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 Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 24 | cc_test { |
| 25 | name: "SurfaceFlinger_test", |
Sally Qi | 6920a2f | 2022-08-26 10:40:05 -0700 | [diff] [blame] | 26 | defaults: [ |
| 27 | "android.hardware.graphics.common-ndk_shared", |
| 28 | "surfaceflinger_defaults", |
| 29 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 30 | test_suites: ["device-tests"], |
| 31 | srcs: [ |
Kriti Dang | 59ff1e7 | 2022-02-10 12:41:00 +0100 | [diff] [blame] | 32 | "BootDisplayMode_test.cpp", |
Marissa Wall | 713b63f | 2018-10-17 15:42:43 -0700 | [diff] [blame] | 33 | "BufferGenerator.cpp", |
Marissa Wall | 5b28548 | 2019-11-18 17:07:46 -0800 | [diff] [blame] | 34 | "CommonTypes_test.cpp", |
Ana Krulec | 13be8ad | 2018-08-21 02:43:56 +0000 | [diff] [blame] | 35 | "Credentials_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 36 | "DereferenceSurfaceControl_test.cpp", |
Ana Krulec | 0782b88 | 2019-10-15 17:34:54 -0700 | [diff] [blame] | 37 | "DisplayConfigs_test.cpp", |
Rachel Lee | ef2e21f | 2022-02-01 14:51:34 -0800 | [diff] [blame] | 38 | "DisplayEventReceiver_test.cpp", |
Vishnu Nair | c43a23c | 2020-05-29 14:32:27 -0700 | [diff] [blame] | 39 | "EffectLayer_test.cpp", |
Tianhao Yao | 67dd712 | 2022-02-22 17:48:33 +0000 | [diff] [blame] | 40 | "LayerBorder_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 41 | "InvalidHandles_test.cpp", |
Valerie Hau | 9cfc6d8 | 2019-09-23 13:54:07 -0700 | [diff] [blame] | 42 | "LayerCallback_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 43 | "LayerRenderTypeTransaction_test.cpp", |
chaviw | 618c42d | 2020-07-24 15:25:08 -0700 | [diff] [blame] | 44 | "LayerState_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 45 | "LayerTransaction_test.cpp", |
Chavi Weingarten | 076acac | 2023-01-19 17:20:43 +0000 | [diff] [blame] | 46 | "LayerTrustedPresentationListener_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 47 | "LayerTypeAndRenderTypeTransaction_test.cpp", |
| 48 | "LayerTypeTransaction_test.cpp", |
| 49 | "LayerUpdate_test.cpp", |
chaviw | fe94a22 | 2019-08-21 13:52:59 -0700 | [diff] [blame] | 50 | "MirrorLayer_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 51 | "MultiDisplayLayerBounds_test.cpp", |
Ady Abraham | 4a474e8 | 2020-10-02 15:47:55 -0700 | [diff] [blame] | 52 | "RefreshRateOverlay_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 53 | "RelativeZ_test.cpp", |
Vishnu Nair | 1506b18 | 2021-02-22 14:35:15 -0800 | [diff] [blame] | 54 | "ReleaseBufferCallback_test.cpp", |
chaviw | 3efadb1 | 2020-07-27 10:07:15 -0700 | [diff] [blame] | 55 | "ScreenCapture_test.cpp", |
Steven Thomas | 3172e20 | 2020-01-06 19:25:30 -0800 | [diff] [blame] | 56 | "SetFrameRate_test.cpp", |
Andy Yu | 8c38b25 | 2022-01-15 01:13:19 -0800 | [diff] [blame] | 57 | "SetFrameRateOverride_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 58 | "SetGeometry_test.cpp", |
| 59 | "Stress_test.cpp", |
Patrick Williams | 3886b07 | 2023-01-25 14:32:23 -0600 | [diff] [blame] | 60 | "TextureFiltering_test.cpp", |
chaviw | 8beb414 | 2019-04-11 13:09:05 -0700 | [diff] [blame] | 61 | "VirtualDisplay_test.cpp", |
chaviw | bf023a6 | 2021-06-07 16:00:06 -0500 | [diff] [blame] | 62 | "WindowInfosListener_test.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 63 | ], |
| 64 | data: ["SurfaceFlinger_test.filter"], |
| 65 | static_libs: [ |
Vishnu Nair | df6a4f6 | 2020-11-11 20:25:34 -0800 | [diff] [blame] | 66 | "liblayers_proto", |
Vishnu Nair | 3242d5f | 2020-10-06 10:48:32 -0700 | [diff] [blame] | 67 | "android.hardware.graphics.composer@2.1", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 68 | ], |
| 69 | shared_libs: [ |
Marissa Wall | 5b28548 | 2019-11-18 17:07:46 -0800 | [diff] [blame] | 70 | "android.hardware.graphics.common@1.2", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 71 | "libandroid", |
Vishnu Nair | 3242d5f | 2020-10-06 10:48:32 -0700 | [diff] [blame] | 72 | "libbase", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 73 | "libbinder", |
| 74 | "libcutils", |
| 75 | "libEGL", |
| 76 | "libGLESv2", |
| 77 | "libgui", |
| 78 | "liblog", |
Peiyong Lin | 91a2b3d | 2019-12-12 21:33:11 -0800 | [diff] [blame] | 79 | "libnativewindow", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 80 | "libprotobuf-cpp-full", |
| 81 | "libui", |
| 82 | "libutils", |
Peiyong Lin | 91a2b3d | 2019-12-12 21:33:11 -0800 | [diff] [blame] | 83 | ], |
| 84 | header_libs: [ |
| 85 | "libnativewindow_headers", |
| 86 | ], |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 87 | } |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 88 | |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 89 | cc_defaults { |
| 90 | name: "ipc_defaults", |
| 91 | cflags: [ |
| 92 | "-Wall", |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 93 | "-Werror", |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 94 | ], |
| 95 | } |
| 96 | |
| 97 | cc_test { |
| 98 | name: "IPC_test", |
| 99 | defaults: ["ipc_defaults"], |
| 100 | test_suites: ["device-tests"], |
| 101 | srcs: [ |
| 102 | "BufferGenerator.cpp", |
| 103 | "IPC_test.cpp", |
| 104 | ], |
| 105 | cppflags: [ |
| 106 | "-Wall", |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 107 | "-Werror", |
| 108 | "-Wformat", |
| 109 | "-Wthread-safety", |
| 110 | "-Wunused", |
| 111 | "-Wunreachable-code", |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 112 | ], |
| 113 | shared_libs: [ |
| 114 | "libandroid", |
| 115 | "libbinder", |
| 116 | "libcutils", |
| 117 | "libEGL", |
| 118 | "libGLESv2", |
| 119 | "libgui", |
| 120 | "liblayers_proto", |
| 121 | "liblog", |
| 122 | "libprotobuf-cpp-full", |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 123 | "libui", |
| 124 | "libutils", |
| 125 | ], |
| 126 | cpp_std: "experimental", |
| 127 | gnu_extensions: false, |
jahinimtiaz | 63138ec | 2023-03-14 00:07:50 +0000 | [diff] [blame] | 128 | data: [ |
| 129 | ":SurfaceFlinger_test", |
| 130 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 131 | } |
| 132 | |
| 133 | subdirs = [ |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 134 | "hwc2", |
Lloyd Pique | f58625d | 2017-12-19 13:22:33 -0800 | [diff] [blame] | 135 | "unittests", |
Valerie Hau | e9137b7 | 2019-08-27 13:22:18 -0700 | [diff] [blame] | 136 | "utils", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 137 | "vsync", |
| 138 | "waitforvsync", |
| 139 | ] |