Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
John Reck | 38bc8a8 | 2024-02-21 17:08:27 -0500 | [diff] [blame] | 8 | default_team: "trendy_team_android_core_graphics_stack", |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 9 | } |
| 10 | |
Ady Abraham | 5ffd98a | 2023-08-24 17:37:01 -0700 | [diff] [blame] | 11 | aconfig_declarations { |
| 12 | name: "surfaceflinger_flags", |
| 13 | package: "com.android.graphics.surfaceflinger.flags", |
Oriol Prieto Gasco | 33fd22e | 2024-02-06 18:34:41 +0000 | [diff] [blame] | 14 | container: "system", |
Ady Abraham | bcc90ee | 2024-02-28 15:43:51 -0800 | [diff] [blame] | 15 | srcs: [ |
| 16 | "surfaceflinger_flags.aconfig", |
| 17 | "surfaceflinger_flags_new.aconfig", |
| 18 | ], |
Ady Abraham | 5ffd98a | 2023-08-24 17:37:01 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | cc_aconfig_library { |
| 22 | name: "libsurfaceflingerflags", |
| 23 | aconfig_declarations: "surfaceflinger_flags", |
| 24 | } |
| 25 | |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "surfaceflinger_defaults", |
| 28 | cflags: [ |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 29 | "-Wall", |
| 30 | "-Werror", |
Marin Shalamanov | bed7fd3 | 2020-12-21 20:02:20 +0100 | [diff] [blame] | 31 | "-Wextra", |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 32 | "-Wformat", |
Lloyd Pique | 755e319 | 2018-01-31 16:46:15 -0800 | [diff] [blame] | 33 | "-Wthread-safety", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 34 | "-Wunused", |
| 35 | "-Wunreachable-code", |
Ady Abraham | b0dbdaa | 2020-01-06 16:19:42 -0800 | [diff] [blame] | 36 | "-Wconversion", |
Ady Abraham | d11bade | 2022-08-01 16:18:03 -0700 | [diff] [blame] | 37 | "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 38 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | cc_defaults { |
| 42 | name: "libsurfaceflinger_defaults", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 43 | defaults: [ |
Sally Qi | 6920a2f | 2022-08-26 10:40:05 -0700 | [diff] [blame] | 44 | "android.hardware.graphics.composer3-ndk_shared", |
Matt Buckley | cc14642 | 2023-06-28 19:14:02 +0000 | [diff] [blame] | 45 | "android.hardware.power-ndk_shared", |
Nolan Scobie | 8ef7e14 | 2022-10-14 10:52:43 -0400 | [diff] [blame] | 46 | "librenderengine_deps", |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 47 | "libtimestats_deps", |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 48 | "libsurfaceflinger_common_deps", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 49 | "surfaceflinger_defaults", |
dianlujitao | b38ee07 | 2020-05-25 18:23:49 +0800 | [diff] [blame] | 50 | "surfaceflinger_qcom_ext_defaults", |
Vishnu Nair | 6aac09e | 2024-07-26 21:38:58 +0000 | [diff] [blame] | 51 | "libsurfaceflinger_proto_deps", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 52 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 53 | cflags: [ |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 54 | "-DLOG_TAG=\"SurfaceFlinger\"", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 55 | "-DGL_GLEXT_PROTOTYPES", |
| 56 | "-DEGL_EGLEXT_PROTOTYPES", |
| 57 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 58 | shared_libs: [ |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 59 | "android.hardware.configstore-utils", |
| 60 | "android.hardware.configstore@1.0", |
Iris Chang | 7501ed6 | 2018-04-30 14:45:42 +0800 | [diff] [blame] | 61 | "android.hardware.configstore@1.1", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 62 | "android.hardware.graphics.allocator@2.0", |
Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 63 | "android.hardware.graphics.allocator@3.0", |
Valerie Hau | 9758ae0 | 2018-10-09 16:05:09 -0700 | [diff] [blame] | 64 | "android.hardware.graphics.common@1.2", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 65 | "android.hardware.common-V2-ndk", |
| 66 | "android.hardware.common.fmq-V1-ndk", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 67 | "android.hardware.graphics.composer@2.1", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 68 | "android.hardware.graphics.composer@2.2", |
Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 69 | "android.hardware.graphics.composer@2.3", |
Dominik Laskowski | 25a4e7d | 2019-09-20 14:50:10 -0700 | [diff] [blame] | 70 | "android.hardware.graphics.composer@2.4", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 71 | "libbase", |
| 72 | "libbinder", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 73 | "libbinder_ndk", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 74 | "libcutils", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 75 | "libEGL", |
| 76 | "libfmq", |
| 77 | "libGLESv1_CM", |
| 78 | "libGLESv2", |
| 79 | "libgui", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 80 | "libhidlbase", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 81 | "liblog", |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 82 | "libnativewindow", |
Matt Buckley | cbfe23c | 2022-11-08 23:12:04 +0000 | [diff] [blame] | 83 | "libpowermanager", |
Suren Baghdasaryan | cd82905 | 2018-11-02 19:15:37 -0700 | [diff] [blame] | 84 | "libprocessgroup", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 85 | "libprotobuf-cpp-lite", |
Alec Mouri | d05a745 | 2024-09-20 13:44:02 +0000 | [diff] [blame] | 86 | "libstatslog_surfaceflinger", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 87 | "libsync", |
| 88 | "libui", |
| 89 | "libutils", |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 90 | "libSurfaceFlingerProp", |
Pascal Mütschard | d56514e | 2024-05-24 17:37:13 +0200 | [diff] [blame] | 91 | "libaconfig_storage_read_api_cc", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 92 | ], |
| 93 | static_libs: [ |
Cody Heiner | 0f00ad9 | 2024-02-13 14:19:25 -0800 | [diff] [blame] | 94 | "iinputflinger_aidl_lib_static", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 95 | "libaidlcommonsupport", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 96 | "libcompositionengine", |
Adithya Srinivasan | f279e04 | 2020-08-17 14:56:27 -0700 | [diff] [blame] | 97 | "libframetimeline", |
Huihong Luo | 9e84f33 | 2021-12-16 14:33:46 -0800 | [diff] [blame] | 98 | "libgui_aidl_static", |
Mikael Pessa | 2e1608f | 2019-07-19 11:25:35 -0700 | [diff] [blame] | 99 | "libperfetto_client_experimental", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 100 | "librenderengine", |
Dominik Laskowski | f6b4ba6 | 2021-11-09 12:46:10 -0800 | [diff] [blame] | 101 | "libscheduler", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 102 | "libserviceutils", |
Alec Mouri | 492c85c | 2021-11-19 15:58:10 -0800 | [diff] [blame] | 103 | "libshaders", |
Nolan Scobie | 488101b | 2024-05-20 13:32:13 -0400 | [diff] [blame] | 104 | "libsurfaceflingerflags", |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 105 | "libtimestats", |
Alec Mouri | 465b296 | 2021-10-08 16:22:21 -0700 | [diff] [blame] | 106 | "libtonemap", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 107 | ], |
| 108 | header_libs: [ |
| 109 | "android.hardware.graphics.composer@2.1-command-buffer", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 110 | "android.hardware.graphics.composer@2.2-command-buffer", |
Peiyong Lin | 698147a | 2018-09-14 13:27:18 -0700 | [diff] [blame] | 111 | "android.hardware.graphics.composer@2.3-command-buffer", |
Peiyong Lin | afa0f57 | 2020-01-13 16:35:02 -0800 | [diff] [blame] | 112 | "android.hardware.graphics.composer@2.4-command-buffer", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 113 | "android.hardware.graphics.composer3-command-buffer", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 114 | ], |
| 115 | export_static_lib_headers: [ |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 116 | "libcompositionengine", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 117 | "librenderengine", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 118 | "libserviceutils", |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 119 | "libtimestats", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 120 | ], |
| 121 | export_shared_lib_headers: [ |
| 122 | "android.hardware.graphics.allocator@2.0", |
Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 123 | "android.hardware.graphics.allocator@3.0", |
Valerie Hau | 9758ae0 | 2018-10-09 16:05:09 -0700 | [diff] [blame] | 124 | "android.hardware.graphics.common@1.2", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 125 | "android.hardware.graphics.composer@2.1", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 126 | "android.hardware.graphics.composer@2.2", |
Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 127 | "android.hardware.graphics.composer@2.3", |
Dominik Laskowski | 25a4e7d | 2019-09-20 14:50:10 -0700 | [diff] [blame] | 128 | "android.hardware.graphics.composer@2.4", |
Matt Buckley | cbfe23c | 2022-11-08 23:12:04 +0000 | [diff] [blame] | 129 | "libpowermanager", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 130 | "libhidlbase", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 131 | ], |
Marissa Wall | 4858652 | 2019-11-19 14:01:36 -0800 | [diff] [blame] | 132 | // TODO (marissaw): this library is not used by surfaceflinger. This is here so |
| 133 | // the library compiled in a way that is accessible to system partition when running |
| 134 | // IMapper's VTS. |
Vishnu Nair | 6b59115 | 2021-10-08 11:45:14 -0700 | [diff] [blame] | 135 | required: ["libgralloctypes"], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 136 | } |
| 137 | |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 138 | cc_defaults { |
| 139 | name: "libsurfaceflinger_production_defaults", |
| 140 | defaults: ["libsurfaceflinger_defaults"], |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 141 | lto: { |
| 142 | thin: true, |
| 143 | }, |
Yi Kong | bf2aa78 | 2020-09-21 01:25:16 +0800 | [diff] [blame] | 144 | whole_program_vtables: true, // Requires ThinLTO |
Yi Kong | 5cb3bb6 | 2022-01-06 16:01:18 +0800 | [diff] [blame] | 145 | afdo: true, |
Mitch Phillips | 21499ce | 2022-03-02 01:25:22 +0000 | [diff] [blame] | 146 | // TODO(b/131771163): Fix broken fuzzer support with LTO. |
| 147 | sanitize: { |
| 148 | fuzzer: false, |
| 149 | }, |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 150 | } |
| 151 | |
Lloyd Pique | e98286f | 2024-09-16 16:23:24 -0700 | [diff] [blame] | 152 | // libsurfaceflinger_backend_{headers|sources} are a step towards pulling out |
| 153 | // the "backend" sources to clean up the dependency graph between |
| 154 | // CompositionEngine and SurfaceFlinger. Completing the cleanup would require |
| 155 | // moving the headers in particular so that the dependency can strictly be a |
| 156 | // DAG. There would certainly be additional cleanups: VirtualDisplaySurface.cpp |
| 157 | // and FrameBufferSurface.cpp likely belong in CompositionEngine for example. |
| 158 | cc_library_headers { |
| 159 | name: "libsurfaceflinger_backend_headers", |
| 160 | export_include_dirs: ["."], |
| 161 | static_libs: ["libserviceutils"], |
| 162 | export_static_lib_headers: ["libserviceutils"], |
| 163 | |
| 164 | shared_libs: [ |
| 165 | "android.hardware.configstore-utils", |
| 166 | "android.hardware.configstore@1.0", |
| 167 | "android.hardware.configstore@1.1", |
| 168 | "libbinder_ndk", |
| 169 | ], |
| 170 | export_shared_lib_headers: [ |
| 171 | "android.hardware.configstore-utils", |
| 172 | "android.hardware.configstore@1.0", |
| 173 | "android.hardware.configstore@1.1", |
| 174 | "libbinder_ndk", |
| 175 | ], |
| 176 | } |
| 177 | |
| 178 | filegroup { |
| 179 | name: "libsurfaceflinger_backend_sources", |
| 180 | srcs: [ |
Matt Buckley | 18b9352 | 2024-08-27 05:30:18 +0000 | [diff] [blame] | 181 | "PowerAdvisor/*.cpp", |
Lloyd Pique | e98286f | 2024-09-16 16:23:24 -0700 | [diff] [blame] | 182 | "DisplayHardware/AidlComposerHal.cpp", |
| 183 | "DisplayHardware/ComposerHal.cpp", |
| 184 | "DisplayHardware/FramebufferSurface.cpp", |
| 185 | "DisplayHardware/HWC2.cpp", |
| 186 | "DisplayHardware/HWComposer.cpp", |
| 187 | "DisplayHardware/HidlComposerHal.cpp", |
Lloyd Pique | e98286f | 2024-09-16 16:23:24 -0700 | [diff] [blame] | 188 | "DisplayHardware/VirtualDisplaySurface.cpp", |
| 189 | ], |
| 190 | } |
| 191 | |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 192 | cc_library_headers { |
| 193 | name: "libsurfaceflinger_headers", |
Alex Vakulenko | 06a7634 | 2017-02-01 22:25:44 -0800 | [diff] [blame] | 194 | export_include_dirs: ["."], |
Logan Chien | 3ac6c96 | 2018-02-27 16:46:00 +0800 | [diff] [blame] | 195 | static_libs: ["libserviceutils"], |
| 196 | export_static_lib_headers: ["libserviceutils"], |
Alex Vakulenko | 06a7634 | 2017-02-01 22:25:44 -0800 | [diff] [blame] | 197 | } |
Kalle Raita | a099a24 | 2017-01-11 11:17:29 -0800 | [diff] [blame] | 198 | |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 199 | filegroup { |
| 200 | name: "libsurfaceflinger_sources", |
| 201 | srcs: [ |
Lloyd Pique | e98286f | 2024-09-16 16:23:24 -0700 | [diff] [blame] | 202 | ":libsurfaceflinger_backend_sources", |
Brian Lindahl | f5fdff8 | 2024-11-01 09:28:47 -0600 | [diff] [blame] | 203 | "ActivePictureUpdater.cpp", |
Vishnu Nair | 34eb9ca | 2021-11-18 15:23:23 -0800 | [diff] [blame] | 204 | "BackgroundExecutor.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 205 | "Client.cpp", |
Dominik Laskowski | b363c4c | 2022-08-02 14:03:41 -0700 | [diff] [blame] | 206 | "ClientCache.cpp", |
Dominik Laskowski | 6e46515 | 2022-09-28 11:00:25 -0400 | [diff] [blame] | 207 | "Display/DisplayModeController.cpp", |
Dominik Laskowski | b363c4c | 2022-08-02 14:03:41 -0700 | [diff] [blame] | 208 | "Display/DisplaySnapshot.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 209 | "DisplayDevice.cpp", |
Marin Shalamanov | f6b5d18 | 2020-06-12 02:08:51 +0200 | [diff] [blame] | 210 | "DisplayRenderArea.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 211 | "Effects/Daltonizer.cpp", |
Vishnu Nair | cb8be50 | 2022-10-12 19:03:23 +0000 | [diff] [blame] | 212 | "FrontEnd/LayerCreationArgs.cpp", |
Vishnu Nair | 07e2a48 | 2022-10-18 19:18:16 +0000 | [diff] [blame] | 213 | "FrontEnd/LayerHandle.cpp", |
Vishnu Nair | 8fc721b | 2022-12-22 20:06:32 +0000 | [diff] [blame] | 214 | "FrontEnd/LayerSnapshot.cpp", |
| 215 | "FrontEnd/LayerSnapshotBuilder.cpp", |
Vishnu Nair | 04f8969 | 2022-11-16 23:21:05 +0000 | [diff] [blame] | 216 | "FrontEnd/LayerHierarchy.cpp", |
Vishnu Nair | dc4d31b | 2022-11-17 03:20:58 +0000 | [diff] [blame] | 217 | "FrontEnd/LayerLifecycleManager.cpp", |
| 218 | "FrontEnd/RequestedLayerState.cpp", |
Vishnu Nair | a61e4fb | 2022-10-18 18:29:37 +0000 | [diff] [blame] | 219 | "FrontEnd/TransactionHandler.cpp", |
Alec Mouri | adebf5c | 2021-01-05 12:57:36 -0800 | [diff] [blame] | 220 | "FpsReporter.cpp", |
Mikael Pessa | 90092f4 | 2019-08-26 17:22:04 -0700 | [diff] [blame] | 221 | "FrameTracer/FrameTracer.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 222 | "FrameTracker.cpp", |
John Reck | 8827090 | 2021-03-18 11:27:35 -0400 | [diff] [blame] | 223 | "HdrLayerInfoReporter.cpp", |
Sally Qi | 147581b | 2023-06-27 11:55:34 -0700 | [diff] [blame] | 224 | "HdrSdrRatioOverlay.cpp", |
Pascal Mütschard | d56514e | 2024-05-24 17:37:13 +0200 | [diff] [blame] | 225 | "Jank/JankTracker.cpp", |
chaviw | 60c9d3e | 2021-06-04 12:52:17 -0500 | [diff] [blame] | 226 | "WindowInfosListenerInvoker.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 227 | "Layer.cpp", |
Vishnu Nair | e14c6b3 | 2022-08-06 04:20:15 +0000 | [diff] [blame] | 228 | "LayerFE.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 229 | "LayerProtoHelper.cpp", |
Marin Shalamanov | f6b5d18 | 2020-06-12 02:08:51 +0200 | [diff] [blame] | 230 | "LayerRenderArea.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 231 | "LayerVector.cpp", |
Lloyd Pique | 2209836 | 2018-09-13 11:46:49 -0700 | [diff] [blame] | 232 | "NativeWindowSurface.cpp", |
Ady Abraham | 03b02dd | 2019-03-21 15:40:11 -0700 | [diff] [blame] | 233 | "RefreshRateOverlay.cpp", |
Dan Stoza | ec46008 | 2018-12-17 15:35:09 -0800 | [diff] [blame] | 234 | "RegionSamplingThread.cpp", |
Ady Abraham | 03b02dd | 2019-03-21 15:40:11 -0700 | [diff] [blame] | 235 | "RenderArea.cpp", |
Ana Krulec | fefcb58 | 2018-08-07 14:22:37 -0700 | [diff] [blame] | 236 | "Scheduler/EventThread.cpp", |
Andy Yu | 2ae6b6b | 2021-11-18 14:51:06 -0800 | [diff] [blame] | 237 | "Scheduler/FrameRateOverrideMappings.cpp", |
Ana Krulec | f2c006d | 2019-06-21 15:37:07 -0700 | [diff] [blame] | 238 | "Scheduler/OneShotTimer.cpp", |
Marin Shalamanov | 1bc43ee | 2020-11-20 16:56:52 +0100 | [diff] [blame] | 239 | "Scheduler/LayerHistory.cpp", |
| 240 | "Scheduler/LayerInfo.cpp", |
Ana Krulec | fefcb58 | 2018-08-07 14:22:37 -0700 | [diff] [blame] | 241 | "Scheduler/MessageQueue.cpp", |
Dominik Laskowski | d82e0f0 | 2022-10-26 15:23:04 -0400 | [diff] [blame] | 242 | "Scheduler/RefreshRateSelector.cpp", |
Ana Krulec | 98b5b24 | 2018-08-10 15:03:23 -0700 | [diff] [blame] | 243 | "Scheduler/Scheduler.cpp", |
Tony Huang | 9ac5e6e | 2023-08-24 09:01:44 +0000 | [diff] [blame] | 244 | "Scheduler/SmallAreaDetectionAllowMappings.cpp", |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 245 | "Scheduler/VSyncDispatchTimerQueue.cpp", |
| 246 | "Scheduler/VSyncPredictor.cpp", |
Kevin DuBois | b2501ba | 2019-11-12 14:20:29 -0800 | [diff] [blame] | 247 | "Scheduler/VSyncReactor.cpp", |
Ady Abraham | c581d3c | 2020-08-06 17:34:27 -0700 | [diff] [blame] | 248 | "Scheduler/VsyncConfiguration.cpp", |
Dominik Laskowski | 068173d | 2021-08-11 17:22:59 -0700 | [diff] [blame] | 249 | "Scheduler/VsyncModulator.cpp", |
| 250 | "Scheduler/VsyncSchedule.cpp", |
Patrick Williams | 7584c6a | 2022-10-29 02:10:58 +0000 | [diff] [blame] | 251 | "ScreenCaptureOutput.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 252 | "SurfaceFlinger.cpp", |
Lloyd Pique | 24f3bfe | 2019-10-02 19:29:10 -0700 | [diff] [blame] | 253 | "SurfaceFlingerDefaultFactory.cpp", |
Kean Mariotti | 639b54f | 2023-04-20 12:06:29 +0000 | [diff] [blame] | 254 | "Tracing/LayerDataSource.cpp", |
Vishnu Nair | 00b9013 | 2021-11-05 14:03:40 -0700 | [diff] [blame] | 255 | "Tracing/LayerTracing.cpp", |
Kean Mariotti | 3e68a20 | 2023-04-19 13:41:55 +0000 | [diff] [blame] | 256 | "Tracing/TransactionDataSource.cpp", |
Vishnu Nair | 7891e96 | 2021-11-11 12:07:21 -0800 | [diff] [blame] | 257 | "Tracing/TransactionTracing.cpp", |
Vishnu Nair | 6b59115 | 2021-10-08 11:45:14 -0700 | [diff] [blame] | 258 | "Tracing/TransactionProtoParser.cpp", |
Kean Mariotti | 639b54f | 2023-04-20 12:06:29 +0000 | [diff] [blame] | 259 | "Tracing/tools/LayerTraceGenerator.cpp", |
Robert Carr | 9a803c3 | 2021-01-14 16:57:58 -0800 | [diff] [blame] | 260 | "TransactionCallbackInvoker.cpp", |
Galia Peycheva | 8f04b30 | 2021-04-27 13:25:38 +0200 | [diff] [blame] | 261 | "TunnelModeEnabledReporter.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 262 | ], |
| 263 | } |
| 264 | |
John Reck | 8b1ae3f | 2020-09-10 17:01:09 +0000 | [diff] [blame] | 265 | cc_defaults { |
| 266 | name: "libsurfaceflinger_binary", |
| 267 | defaults: [ |
| 268 | "surfaceflinger_defaults", |
| 269 | "libsurfaceflinger_production_defaults", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 270 | ], |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 271 | cflags: [ |
John Reck | 8b1ae3f | 2020-09-10 17:01:09 +0000 | [diff] [blame] | 272 | "-DLOG_TAG=\"SurfaceFlinger\"", |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 273 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 274 | shared_libs: [ |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 275 | "android.hardware.configstore-utils", |
| 276 | "android.hardware.configstore@1.0", |
| 277 | "android.hardware.graphics.allocator@2.0", |
Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 278 | "android.hardware.graphics.allocator@3.0", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 279 | "libbinder", |
| 280 | "libcutils", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 281 | "libhidlbase", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 282 | "liblog", |
Suren Baghdasaryan | cd82905 | 2018-11-02 19:15:37 -0700 | [diff] [blame] | 283 | "libprocessgroup", |
Alec Mouri | 0a9c7b8 | 2018-11-16 13:05:25 -0800 | [diff] [blame] | 284 | "libsync", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 285 | "libutils", |
| 286 | ], |
| 287 | static_libs: [ |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 288 | "android.frameworks.displayservice@1.0", |
| 289 | "libdisplayservicehidl", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 290 | "libserviceutils", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 291 | ], |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 292 | } |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 293 | |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 294 | filegroup { |
| 295 | name: "surfaceflinger_binary_sources", |
John Reck | 8b1ae3f | 2020-09-10 17:01:09 +0000 | [diff] [blame] | 296 | srcs: [ |
| 297 | ":libsurfaceflinger_sources", |
Lloyd Pique | d777be4 | 2020-09-11 15:38:53 -0700 | [diff] [blame] | 298 | "main_surfaceflinger.cpp", |
John Reck | 8b1ae3f | 2020-09-10 17:01:09 +0000 | [diff] [blame] | 299 | ], |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 300 | } |
| 301 | |
| 302 | cc_binary { |
| 303 | name: "surfaceflinger", |
| 304 | defaults: ["libsurfaceflinger_binary"], |
| 305 | init_rc: ["surfaceflinger.rc"], |
Lloyd Pique | d777be4 | 2020-09-11 15:38:53 -0700 | [diff] [blame] | 306 | srcs: [ |
| 307 | ":surfaceflinger_binary_sources", |
| 308 | // Note: SurfaceFlingerFactory is not in the filegroup so that it |
| 309 | // can be easily replaced. |
| 310 | "SurfaceFlingerFactory.cpp", |
| 311 | ], |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 312 | shared_libs: [ |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 313 | "libSurfaceFlingerProp", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 314 | ], |
Alec Mouri | 0a9bc47 | 2020-09-10 18:03:43 -0700 | [diff] [blame] | 315 | |
Ben Widawsky | d153846 | 2024-10-09 10:25:38 -0700 | [diff] [blame] | 316 | logtags: ["surfaceflinger.logtags"], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 317 | } |
| 318 | |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 319 | subdirs = [ |
| 320 | "layerproto", |
| 321 | "tests", |
| 322 | ] |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 323 | |
| 324 | cc_library_shared { |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 325 | name: "libSurfaceFlingerProp", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 326 | srcs: [ |
| 327 | "SurfaceFlingerProperties.cpp", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 328 | ], |
| 329 | shared_libs: [ |
| 330 | "android.hardware.configstore-utils", |
| 331 | "android.hardware.configstore@1.0", |
| 332 | "android.hardware.configstore@1.1", |
Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 333 | "android.hardware.graphics.common@1.2", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 334 | "libhidlbase", |
Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 335 | "libui", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 336 | "libutils", |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 337 | "liblog", |
| 338 | ], |
| 339 | static_libs: [ |
Trevor Radcliffe | ba8800d | 2022-07-08 17:58:06 +0000 | [diff] [blame] | 340 | "libSurfaceFlingerProperties", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 341 | ], |
| 342 | export_shared_lib_headers: [ |
Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 343 | "android.hardware.graphics.common@1.2", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 344 | "libhidlbase", |
Sundong Ahn | 204fb1f | 2020-04-23 21:56:36 +0900 | [diff] [blame] | 345 | "libui", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 346 | ], |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 347 | export_static_lib_headers: [ |
Trevor Radcliffe | ba8800d | 2022-07-08 17:58:06 +0000 | [diff] [blame] | 348 | "libSurfaceFlingerProperties", |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 349 | ], |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 350 | } |
Alec Mouri | d05a745 | 2024-09-20 13:44:02 +0000 | [diff] [blame] | 351 | |
| 352 | cc_library { |
| 353 | name: "libstatslog_surfaceflinger", |
| 354 | generated_sources: ["statslog_surfaceflinger.cpp"], |
| 355 | generated_headers: ["statslog_surfaceflinger.h"], |
| 356 | export_generated_headers: ["statslog_surfaceflinger.h"], |
| 357 | shared_libs: [ |
| 358 | "libbinder", |
| 359 | "libstatsbootstrap", |
| 360 | "libutils", |
| 361 | "android.os.statsbootstrap_aidl-cpp", |
| 362 | ], |
| 363 | } |
| 364 | |
| 365 | genrule { |
| 366 | name: "statslog_surfaceflinger.h", |
| 367 | tools: ["stats-log-api-gen"], |
| 368 | cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_surfaceflinger.h" + |
| 369 | " --module surfaceflinger --namespace android,surfaceflinger,stats --bootstrap", |
| 370 | out: [ |
| 371 | "statslog_surfaceflinger.h", |
| 372 | ], |
| 373 | } |
| 374 | |
| 375 | genrule { |
| 376 | name: "statslog_surfaceflinger.cpp", |
| 377 | tools: ["stats-log-api-gen"], |
| 378 | cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_surfaceflinger.cpp" + |
| 379 | " --module surfaceflinger --namespace android,surfaceflinger,stats" + |
| 380 | " --importHeader statslog_surfaceflinger.h --bootstrap", |
| 381 | out: [ |
| 382 | "statslog_surfaceflinger.cpp", |
| 383 | ], |
| 384 | } |