blob: 92fae1e4a08108bad12133b36579abfa2b7df731 [file] [log] [blame]
Bob Badour3306e492021-02-25 15:35:37 -08001package {
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 Reck38bc8a82024-02-21 17:08:27 -05008 default_team: "trendy_team_android_core_graphics_stack",
Bob Badour3306e492021-02-25 15:35:37 -08009}
10
Ady Abraham5ffd98a2023-08-24 17:37:01 -070011aconfig_declarations {
12 name: "surfaceflinger_flags",
13 package: "com.android.graphics.surfaceflinger.flags",
Oriol Prieto Gasco33fd22e2024-02-06 18:34:41 +000014 container: "system",
Ady Abrahambcc90ee2024-02-28 15:43:51 -080015 srcs: [
16 "surfaceflinger_flags.aconfig",
17 "surfaceflinger_flags_new.aconfig",
18 ],
Ady Abraham5ffd98a2023-08-24 17:37:01 -070019}
20
21cc_aconfig_library {
22 name: "libsurfaceflingerflags",
23 aconfig_declarations: "surfaceflinger_flags",
24}
25
Lloyd Pique66ce40d2018-01-23 16:42:19 -080026cc_defaults {
27 name: "surfaceflinger_defaults",
28 cflags: [
Lloyd Pique66ce40d2018-01-23 16:42:19 -080029 "-Wall",
30 "-Werror",
Marin Shalamanovbed7fd32020-12-21 20:02:20 +010031 "-Wextra",
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -070032 "-Wformat",
Lloyd Pique755e3192018-01-31 16:46:15 -080033 "-Wthread-safety",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080034 "-Wunused",
35 "-Wunreachable-code",
Ady Abrahamb0dbdaa2020-01-06 16:19:42 -080036 "-Wconversion",
Ady Abrahamd11bade2022-08-01 16:18:03 -070037 "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080038 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080039}
40
41cc_defaults {
42 name: "libsurfaceflinger_defaults",
John Reck67b1e2b2020-08-26 13:17:24 -070043 defaults: [
Sally Qi6920a2f2022-08-26 10:40:05 -070044 "android.hardware.graphics.composer3-ndk_shared",
Matt Buckleycc146422023-06-28 19:14:02 +000045 "android.hardware.power-ndk_shared",
Nolan Scobie8ef7e142022-10-14 10:52:43 -040046 "librenderengine_deps",
Devin Moorea1889802023-05-22 21:29:09 +000047 "libtimestats_deps",
Matt Buckleyffc31d12024-02-28 16:51:28 +000048 "libsurfaceflinger_common_deps",
John Reck67b1e2b2020-08-26 13:17:24 -070049 "surfaceflinger_defaults",
dianlujitaob38ee072020-05-25 18:23:49 +080050 "surfaceflinger_qcom_ext_defaults",
Vishnu Nair6aac09e2024-07-26 21:38:58 +000051 "libsurfaceflinger_proto_deps",
John Reck67b1e2b2020-08-26 13:17:24 -070052 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080053 cflags: [
Lloyd Pique70d91362018-10-18 16:02:55 -070054 "-DLOG_TAG=\"SurfaceFlinger\"",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080055 "-DGL_GLEXT_PROTOTYPES",
56 "-DEGL_EGLEXT_PROTOTYPES",
57 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080058 shared_libs: [
Lloyd Pique66ce40d2018-01-23 16:42:19 -080059 "android.hardware.configstore-utils",
60 "android.hardware.configstore@1.0",
Iris Chang7501ed62018-04-30 14:45:42 +080061 "android.hardware.configstore@1.1",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080062 "android.hardware.graphics.allocator@2.0",
Marissa Wall925bf7f2018-12-29 14:27:11 -080063 "android.hardware.graphics.allocator@3.0",
Valerie Hau9758ae02018-10-09 16:05:09 -070064 "android.hardware.graphics.common@1.2",
Ady Abrahame7385f72021-09-05 00:54:25 -070065 "android.hardware.common-V2-ndk",
66 "android.hardware.common.fmq-V1-ndk",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080067 "android.hardware.graphics.composer@2.1",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -070068 "android.hardware.graphics.composer@2.2",
Dominik Laskowskie9ef7c42018-03-12 19:34:30 -070069 "android.hardware.graphics.composer@2.3",
Dominik Laskowski25a4e7d2019-09-20 14:50:10 -070070 "android.hardware.graphics.composer@2.4",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080071 "libbase",
72 "libbinder",
Ady Abrahame7385f72021-09-05 00:54:25 -070073 "libbinder_ndk",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080074 "libcutils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080075 "libEGL",
76 "libfmq",
77 "libGLESv1_CM",
78 "libGLESv2",
79 "libgui",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080080 "libhidlbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080081 "liblog",
Inseob Kimd6e835b2019-02-14 12:33:30 +090082 "libnativewindow",
Matt Buckleycbfe23c2022-11-08 23:12:04 +000083 "libpowermanager",
Suren Baghdasaryancd829052018-11-02 19:15:37 -070084 "libprocessgroup",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080085 "libprotobuf-cpp-lite",
Alec Mourid05a7452024-09-20 13:44:02 +000086 "libstatslog_surfaceflinger",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080087 "libsync",
88 "libui",
89 "libutils",
Inseob Kimd6e835b2019-02-14 12:33:30 +090090 "libSurfaceFlingerProp",
Pascal Mütschardd56514e2024-05-24 17:37:13 +020091 "libaconfig_storage_read_api_cc",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080092 ],
93 static_libs: [
Cody Heiner0f00ad92024-02-13 14:19:25 -080094 "iinputflinger_aidl_lib_static",
Ady Abrahame7385f72021-09-05 00:54:25 -070095 "libaidlcommonsupport",
Lloyd Pique70d91362018-10-18 16:02:55 -070096 "libcompositionengine",
Adithya Srinivasanf279e042020-08-17 14:56:27 -070097 "libframetimeline",
Huihong Luo9e84f332021-12-16 14:33:46 -080098 "libgui_aidl_static",
Mikael Pessa2e1608f2019-07-19 11:25:35 -070099 "libperfetto_client_experimental",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700100 "librenderengine",
Dominik Laskowskif6b4ba62021-11-09 12:46:10 -0800101 "libscheduler",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800102 "libserviceutils",
Alec Mouri492c85c2021-11-19 15:58:10 -0800103 "libshaders",
Nolan Scobie488101b2024-05-20 13:32:13 -0400104 "libsurfaceflingerflags",
Devin Moorea1889802023-05-22 21:29:09 +0000105 "libtimestats",
Alec Mouri465b2962021-10-08 16:22:21 -0700106 "libtonemap",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800107 ],
108 header_libs: [
109 "android.hardware.graphics.composer@2.1-command-buffer",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -0700110 "android.hardware.graphics.composer@2.2-command-buffer",
Peiyong Lin698147a2018-09-14 13:27:18 -0700111 "android.hardware.graphics.composer@2.3-command-buffer",
Peiyong Linafa0f572020-01-13 16:35:02 -0800112 "android.hardware.graphics.composer@2.4-command-buffer",
Ady Abrahame7385f72021-09-05 00:54:25 -0700113 "android.hardware.graphics.composer3-command-buffer",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800114 ],
115 export_static_lib_headers: [
Lloyd Pique70d91362018-10-18 16:02:55 -0700116 "libcompositionengine",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700117 "librenderengine",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800118 "libserviceutils",
Devin Moorea1889802023-05-22 21:29:09 +0000119 "libtimestats",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800120 ],
121 export_shared_lib_headers: [
122 "android.hardware.graphics.allocator@2.0",
Marissa Wall925bf7f2018-12-29 14:27:11 -0800123 "android.hardware.graphics.allocator@3.0",
Valerie Hau9758ae02018-10-09 16:05:09 -0700124 "android.hardware.graphics.common@1.2",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800125 "android.hardware.graphics.composer@2.1",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -0700126 "android.hardware.graphics.composer@2.2",
Dominik Laskowskie9ef7c42018-03-12 19:34:30 -0700127 "android.hardware.graphics.composer@2.3",
Dominik Laskowski25a4e7d2019-09-20 14:50:10 -0700128 "android.hardware.graphics.composer@2.4",
Matt Buckleycbfe23c2022-11-08 23:12:04 +0000129 "libpowermanager",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800130 "libhidlbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800131 ],
Marissa Wall48586522019-11-19 14:01:36 -0800132 // 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 Nair6b591152021-10-08 11:45:14 -0700135 required: ["libgralloctypes"],
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800136}
137
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700138cc_defaults {
139 name: "libsurfaceflinger_production_defaults",
140 defaults: ["libsurfaceflinger_defaults"],
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700141 lto: {
142 thin: true,
143 },
Yi Kongbf2aa782020-09-21 01:25:16 +0800144 whole_program_vtables: true, // Requires ThinLTO
Yi Kong5cb3bb62022-01-06 16:01:18 +0800145 afdo: true,
Mitch Phillips21499ce2022-03-02 01:25:22 +0000146 // TODO(b/131771163): Fix broken fuzzer support with LTO.
147 sanitize: {
148 fuzzer: false,
149 },
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700150}
151
Lloyd Piquee98286f2024-09-16 16:23:24 -0700152// 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.
158cc_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
178filegroup {
179 name: "libsurfaceflinger_backend_sources",
180 srcs: [
Matt Buckley18b93522024-08-27 05:30:18 +0000181 "PowerAdvisor/*.cpp",
Lloyd Piquee98286f2024-09-16 16:23:24 -0700182 "DisplayHardware/AidlComposerHal.cpp",
183 "DisplayHardware/ComposerHal.cpp",
184 "DisplayHardware/FramebufferSurface.cpp",
185 "DisplayHardware/HWC2.cpp",
186 "DisplayHardware/HWComposer.cpp",
187 "DisplayHardware/HidlComposerHal.cpp",
Lloyd Piquee98286f2024-09-16 16:23:24 -0700188 "DisplayHardware/VirtualDisplaySurface.cpp",
189 ],
190}
191
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800192cc_library_headers {
193 name: "libsurfaceflinger_headers",
Alex Vakulenko06a76342017-02-01 22:25:44 -0800194 export_include_dirs: ["."],
Logan Chien3ac6c962018-02-27 16:46:00 +0800195 static_libs: ["libserviceutils"],
196 export_static_lib_headers: ["libserviceutils"],
Alex Vakulenko06a76342017-02-01 22:25:44 -0800197}
Kalle Raitaa099a242017-01-11 11:17:29 -0800198
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800199filegroup {
200 name: "libsurfaceflinger_sources",
201 srcs: [
Lloyd Piquee98286f2024-09-16 16:23:24 -0700202 ":libsurfaceflinger_backend_sources",
Brian Lindahlf5fdff82024-11-01 09:28:47 -0600203 "ActivePictureUpdater.cpp",
Vishnu Nair34eb9ca2021-11-18 15:23:23 -0800204 "BackgroundExecutor.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800205 "Client.cpp",
Dominik Laskowskib363c4c2022-08-02 14:03:41 -0700206 "ClientCache.cpp",
Dominik Laskowski6e465152022-09-28 11:00:25 -0400207 "Display/DisplayModeController.cpp",
Dominik Laskowskib363c4c2022-08-02 14:03:41 -0700208 "Display/DisplaySnapshot.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800209 "DisplayDevice.cpp",
Marin Shalamanovf6b5d182020-06-12 02:08:51 +0200210 "DisplayRenderArea.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800211 "Effects/Daltonizer.cpp",
Vishnu Naircb8be502022-10-12 19:03:23 +0000212 "FrontEnd/LayerCreationArgs.cpp",
Vishnu Nair07e2a482022-10-18 19:18:16 +0000213 "FrontEnd/LayerHandle.cpp",
Vishnu Nair8fc721b2022-12-22 20:06:32 +0000214 "FrontEnd/LayerSnapshot.cpp",
215 "FrontEnd/LayerSnapshotBuilder.cpp",
Vishnu Nair04f89692022-11-16 23:21:05 +0000216 "FrontEnd/LayerHierarchy.cpp",
Vishnu Nairdc4d31b2022-11-17 03:20:58 +0000217 "FrontEnd/LayerLifecycleManager.cpp",
218 "FrontEnd/RequestedLayerState.cpp",
Vishnu Naira61e4fb2022-10-18 18:29:37 +0000219 "FrontEnd/TransactionHandler.cpp",
Alec Mouriadebf5c2021-01-05 12:57:36 -0800220 "FpsReporter.cpp",
Mikael Pessa90092f42019-08-26 17:22:04 -0700221 "FrameTracer/FrameTracer.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800222 "FrameTracker.cpp",
John Reck88270902021-03-18 11:27:35 -0400223 "HdrLayerInfoReporter.cpp",
Sally Qi147581b2023-06-27 11:55:34 -0700224 "HdrSdrRatioOverlay.cpp",
Pascal Mütschardd56514e2024-05-24 17:37:13 +0200225 "Jank/JankTracker.cpp",
chaviw60c9d3e2021-06-04 12:52:17 -0500226 "WindowInfosListenerInvoker.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800227 "Layer.cpp",
Vishnu Naire14c6b32022-08-06 04:20:15 +0000228 "LayerFE.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800229 "LayerProtoHelper.cpp",
Marin Shalamanovf6b5d182020-06-12 02:08:51 +0200230 "LayerRenderArea.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800231 "LayerVector.cpp",
Lloyd Pique22098362018-09-13 11:46:49 -0700232 "NativeWindowSurface.cpp",
Ady Abraham03b02dd2019-03-21 15:40:11 -0700233 "RefreshRateOverlay.cpp",
Dan Stozaec460082018-12-17 15:35:09 -0800234 "RegionSamplingThread.cpp",
Ady Abraham03b02dd2019-03-21 15:40:11 -0700235 "RenderArea.cpp",
Ana Krulecfefcb582018-08-07 14:22:37 -0700236 "Scheduler/EventThread.cpp",
Andy Yu2ae6b6b2021-11-18 14:51:06 -0800237 "Scheduler/FrameRateOverrideMappings.cpp",
Ana Krulecf2c006d2019-06-21 15:37:07 -0700238 "Scheduler/OneShotTimer.cpp",
Marin Shalamanov1bc43ee2020-11-20 16:56:52 +0100239 "Scheduler/LayerHistory.cpp",
240 "Scheduler/LayerInfo.cpp",
Ana Krulecfefcb582018-08-07 14:22:37 -0700241 "Scheduler/MessageQueue.cpp",
Dominik Laskowskid82e0f02022-10-26 15:23:04 -0400242 "Scheduler/RefreshRateSelector.cpp",
Ana Krulec98b5b242018-08-10 15:03:23 -0700243 "Scheduler/Scheduler.cpp",
Tony Huang9ac5e6e2023-08-24 09:01:44 +0000244 "Scheduler/SmallAreaDetectionAllowMappings.cpp",
Kevin DuBois1678e2c2019-08-22 12:26:24 -0700245 "Scheduler/VSyncDispatchTimerQueue.cpp",
246 "Scheduler/VSyncPredictor.cpp",
Kevin DuBoisb2501ba2019-11-12 14:20:29 -0800247 "Scheduler/VSyncReactor.cpp",
Ady Abrahamc581d3c2020-08-06 17:34:27 -0700248 "Scheduler/VsyncConfiguration.cpp",
Dominik Laskowski068173d2021-08-11 17:22:59 -0700249 "Scheduler/VsyncModulator.cpp",
250 "Scheduler/VsyncSchedule.cpp",
Patrick Williams7584c6a2022-10-29 02:10:58 +0000251 "ScreenCaptureOutput.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800252 "SurfaceFlinger.cpp",
Lloyd Pique24f3bfe2019-10-02 19:29:10 -0700253 "SurfaceFlingerDefaultFactory.cpp",
Kean Mariotti639b54f2023-04-20 12:06:29 +0000254 "Tracing/LayerDataSource.cpp",
Vishnu Nair00b90132021-11-05 14:03:40 -0700255 "Tracing/LayerTracing.cpp",
Kean Mariotti3e68a202023-04-19 13:41:55 +0000256 "Tracing/TransactionDataSource.cpp",
Vishnu Nair7891e962021-11-11 12:07:21 -0800257 "Tracing/TransactionTracing.cpp",
Vishnu Nair6b591152021-10-08 11:45:14 -0700258 "Tracing/TransactionProtoParser.cpp",
Kean Mariotti639b54f2023-04-20 12:06:29 +0000259 "Tracing/tools/LayerTraceGenerator.cpp",
Robert Carr9a803c32021-01-14 16:57:58 -0800260 "TransactionCallbackInvoker.cpp",
Galia Peycheva8f04b302021-04-27 13:25:38 +0200261 "TunnelModeEnabledReporter.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800262 ],
263}
264
John Reck8b1ae3f2020-09-10 17:01:09 +0000265cc_defaults {
266 name: "libsurfaceflinger_binary",
267 defaults: [
268 "surfaceflinger_defaults",
269 "libsurfaceflinger_production_defaults",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800270 ],
mamik94e91f62019-08-19 09:11:33 -0700271 cflags: [
John Reck8b1ae3f2020-09-10 17:01:09 +0000272 "-DLOG_TAG=\"SurfaceFlinger\"",
mamik94e91f62019-08-19 09:11:33 -0700273 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800274 shared_libs: [
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800275 "android.hardware.configstore-utils",
276 "android.hardware.configstore@1.0",
277 "android.hardware.graphics.allocator@2.0",
Marissa Wall925bf7f2018-12-29 14:27:11 -0800278 "android.hardware.graphics.allocator@3.0",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800279 "libbinder",
280 "libcutils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800281 "libhidlbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800282 "liblog",
Suren Baghdasaryancd829052018-11-02 19:15:37 -0700283 "libprocessgroup",
Alec Mouri0a9c7b82018-11-16 13:05:25 -0800284 "libsync",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800285 "libutils",
286 ],
287 static_libs: [
Devin Moorea1889802023-05-22 21:29:09 +0000288 "android.frameworks.displayservice@1.0",
289 "libdisplayservicehidl",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800290 "libserviceutils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800291 ],
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700292}
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800293
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700294filegroup {
295 name: "surfaceflinger_binary_sources",
John Reck8b1ae3f2020-09-10 17:01:09 +0000296 srcs: [
297 ":libsurfaceflinger_sources",
Lloyd Piqued777be42020-09-11 15:38:53 -0700298 "main_surfaceflinger.cpp",
John Reck8b1ae3f2020-09-10 17:01:09 +0000299 ],
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700300}
301
302cc_binary {
303 name: "surfaceflinger",
304 defaults: ["libsurfaceflinger_binary"],
305 init_rc: ["surfaceflinger.rc"],
Lloyd Piqued777be42020-09-11 15:38:53 -0700306 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 Ahnd5e08f62018-12-12 20:27:28 +0900312 shared_libs: [
Inseob Kimd6e835b2019-02-14 12:33:30 +0900313 "libSurfaceFlingerProp",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900314 ],
Alec Mouri0a9bc472020-09-10 18:03:43 -0700315
Ben Widawskyd1538462024-10-09 10:25:38 -0700316 logtags: ["surfaceflinger.logtags"],
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800317}
318
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800319subdirs = [
320 "layerproto",
321 "tests",
322]
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900323
324cc_library_shared {
Inseob Kimd6e835b2019-02-14 12:33:30 +0900325 name: "libSurfaceFlingerProp",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900326 srcs: [
327 "SurfaceFlingerProperties.cpp",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900328 ],
329 shared_libs: [
330 "android.hardware.configstore-utils",
331 "android.hardware.configstore@1.0",
332 "android.hardware.configstore@1.1",
Sundong Ahncb20cca2019-02-22 11:57:38 +0900333 "android.hardware.graphics.common@1.2",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900334 "libhidlbase",
Sundong Ahncb20cca2019-02-22 11:57:38 +0900335 "libui",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900336 "libutils",
Inseob Kimd6e835b2019-02-14 12:33:30 +0900337 "liblog",
338 ],
339 static_libs: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000340 "libSurfaceFlingerProperties",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900341 ],
342 export_shared_lib_headers: [
Sundong Ahncb20cca2019-02-22 11:57:38 +0900343 "android.hardware.graphics.common@1.2",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900344 "libhidlbase",
Sundong Ahn204fb1f2020-04-23 21:56:36 +0900345 "libui",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900346 ],
Inseob Kimd6e835b2019-02-14 12:33:30 +0900347 export_static_lib_headers: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000348 "libSurfaceFlingerProperties",
Inseob Kimd6e835b2019-02-14 12:33:30 +0900349 ],
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900350}
Alec Mourid05a7452024-09-20 13:44:02 +0000351
352cc_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
365genrule {
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
375genrule {
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}