blob: 6dcb7991c19444be9b62e3878516e46c9e097d91 [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: [
Melody Hsub76cb212025-01-07 18:35:14 +000029 "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080030 "-Wall",
Melody Hsub76cb212025-01-07 18:35:14 +000031 "-Wconversion",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080032 "-Werror",
Marin Shalamanovbed7fd32020-12-21 20:02:20 +010033 "-Wextra",
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -070034 "-Wformat",
Lloyd Pique755e3192018-01-31 16:46:15 -080035 "-Wthread-safety",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080036 "-Wunreachable-code",
Melody Hsub76cb212025-01-07 18:35:14 +000037 "-Wunused",
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",
Nolan Scobie8ef7e142022-10-14 10:52:43 -040045 "librenderengine_deps",
Matt Buckleyffc31d12024-02-28 16:51:28 +000046 "libsurfaceflinger_common_deps",
Vishnu Nair6aac09e2024-07-26 21:38:58 +000047 "libsurfaceflinger_proto_deps",
Melody Hsub76cb212025-01-07 18:35:14 +000048 "libtimestats_deps",
Matt Buckleyc1b8d762024-11-18 22:30:21 -080049 "poweradvisor_deps",
Melody Hsub76cb212025-01-07 18:35:14 +000050 "surfaceflinger_defaults",
John Reck67b1e2b2020-08-26 13:17:24 -070051 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080052 cflags: [
Lloyd Pique66ce40d2018-01-23 16:42:19 -080053 "-DEGL_EGLEXT_PROTOTYPES",
Melody Hsub76cb212025-01-07 18:35:14 +000054 "-DGL_GLEXT_PROTOTYPES",
55 "-DLOG_TAG=\"SurfaceFlinger\"",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080056 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080057 shared_libs: [
Melody Hsub76cb212025-01-07 18:35:14 +000058 "android.hardware.common-V2-ndk",
59 "android.hardware.common.fmq-V1-ndk",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080060 "android.hardware.configstore-utils",
61 "android.hardware.configstore@1.0",
Iris Chang7501ed62018-04-30 14:45:42 +080062 "android.hardware.configstore@1.1",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080063 "android.hardware.graphics.allocator@2.0",
Marissa Wall925bf7f2018-12-29 14:27:11 -080064 "android.hardware.graphics.allocator@3.0",
Valerie Hau9758ae02018-10-09 16:05:09 -070065 "android.hardware.graphics.common@1.2",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080066 "android.hardware.graphics.composer@2.1",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -070067 "android.hardware.graphics.composer@2.2",
Dominik Laskowskie9ef7c42018-03-12 19:34:30 -070068 "android.hardware.graphics.composer@2.3",
Dominik Laskowski25a4e7d2019-09-20 14:50:10 -070069 "android.hardware.graphics.composer@2.4",
Michael Krehan74479d22024-12-12 19:32:19 -080070 "android.os.flags-aconfig-cc-host",
Melody Hsub76cb212025-01-07 18:35:14 +000071 "libEGL",
72 "libGLESv1_CM",
73 "libGLESv2",
74 "libSurfaceFlingerProp",
75 "libaconfig_storage_read_api_cc",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080076 "libbase",
77 "libbinder",
Ady Abrahame7385f72021-09-05 00:54:25 -070078 "libbinder_ndk",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080079 "libcutils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080080 "libfmq",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080081 "libgui",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080082 "libhidlbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080083 "liblog",
Inseob Kimd6e835b2019-02-14 12:33:30 +090084 "libnativewindow",
Suren Baghdasaryancd829052018-11-02 19:15:37 -070085 "libprocessgroup",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080086 "libprotobuf-cpp-lite",
Alec Mourid05a7452024-09-20 13:44:02 +000087 "libstatslog_surfaceflinger",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080088 "libsync",
89 "libui",
90 "libutils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080091 ],
92 static_libs: [
Cody Heiner0f00ad92024-02-13 14:19:25 -080093 "iinputflinger_aidl_lib_static",
Ady Abrahame7385f72021-09-05 00:54:25 -070094 "libaidlcommonsupport",
Lloyd Pique70d91362018-10-18 16:02:55 -070095 "libcompositionengine",
Huihong Luo9e84f332021-12-16 14:33:46 -080096 "libgui_aidl_static",
Mikael Pessa2e1608f2019-07-19 11:25:35 -070097 "libperfetto_client_experimental",
Peiyong Lincbc184f2018-08-22 13:24:10 -070098 "librenderengine",
Dominik Laskowskif6b4ba62021-11-09 12:46:10 -080099 "libscheduler",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800100 "libserviceutils",
Alec Mouri492c85c2021-11-19 15:58:10 -0800101 "libshaders",
Nolan Scobie488101b2024-05-20 13:32:13 -0400102 "libsurfaceflingerflags",
Devin Moorea1889802023-05-22 21:29:09 +0000103 "libtimestats",
Alec Mouri465b2962021-10-08 16:22:21 -0700104 "libtonemap",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800105 ],
106 header_libs: [
Melody Hsub76cb212025-01-07 18:35:14 +0000107 "android.hardware.graphics.composer3-command-buffer",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800108 "android.hardware.graphics.composer@2.1-command-buffer",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -0700109 "android.hardware.graphics.composer@2.2-command-buffer",
Peiyong Lin698147a2018-09-14 13:27:18 -0700110 "android.hardware.graphics.composer@2.3-command-buffer",
Peiyong Linafa0f572020-01-13 16:35:02 -0800111 "android.hardware.graphics.composer@2.4-command-buffer",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800112 ],
113 export_static_lib_headers: [
Lloyd Pique70d91362018-10-18 16:02:55 -0700114 "libcompositionengine",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700115 "librenderengine",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800116 "libserviceutils",
Devin Moorea1889802023-05-22 21:29:09 +0000117 "libtimestats",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800118 ],
119 export_shared_lib_headers: [
120 "android.hardware.graphics.allocator@2.0",
Marissa Wall925bf7f2018-12-29 14:27:11 -0800121 "android.hardware.graphics.allocator@3.0",
Valerie Hau9758ae02018-10-09 16:05:09 -0700122 "android.hardware.graphics.common@1.2",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800123 "android.hardware.graphics.composer@2.1",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -0700124 "android.hardware.graphics.composer@2.2",
Dominik Laskowskie9ef7c42018-03-12 19:34:30 -0700125 "android.hardware.graphics.composer@2.3",
Dominik Laskowski25a4e7d2019-09-20 14:50:10 -0700126 "android.hardware.graphics.composer@2.4",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800127 "libhidlbase",
Melody Hsub76cb212025-01-07 18:35:14 +0000128 "libpowermanager",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800129 ],
Marissa Wall48586522019-11-19 14:01:36 -0800130 // TODO (marissaw): this library is not used by surfaceflinger. This is here so
131 // the library compiled in a way that is accessible to system partition when running
132 // IMapper's VTS.
Vishnu Nair6b591152021-10-08 11:45:14 -0700133 required: ["libgralloctypes"],
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800134}
135
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700136cc_defaults {
137 name: "libsurfaceflinger_production_defaults",
138 defaults: ["libsurfaceflinger_defaults"],
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700139 lto: {
140 thin: true,
141 },
Yi Kongbf2aa782020-09-21 01:25:16 +0800142 whole_program_vtables: true, // Requires ThinLTO
Yi Kong5cb3bb62022-01-06 16:01:18 +0800143 afdo: true,
Mitch Phillips21499ce2022-03-02 01:25:22 +0000144 // TODO(b/131771163): Fix broken fuzzer support with LTO.
145 sanitize: {
146 fuzzer: false,
147 },
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700148}
149
Lloyd Piquee98286f2024-09-16 16:23:24 -0700150// libsurfaceflinger_backend_{headers|sources} are a step towards pulling out
151// the "backend" sources to clean up the dependency graph between
152// CompositionEngine and SurfaceFlinger. Completing the cleanup would require
153// moving the headers in particular so that the dependency can strictly be a
154// DAG. There would certainly be additional cleanups: VirtualDisplaySurface.cpp
155// and FrameBufferSurface.cpp likely belong in CompositionEngine for example.
156cc_library_headers {
157 name: "libsurfaceflinger_backend_headers",
158 export_include_dirs: ["."],
159 static_libs: ["libserviceutils"],
160 export_static_lib_headers: ["libserviceutils"],
161
162 shared_libs: [
163 "android.hardware.configstore-utils",
164 "android.hardware.configstore@1.0",
165 "android.hardware.configstore@1.1",
166 "libbinder_ndk",
167 ],
168 export_shared_lib_headers: [
169 "android.hardware.configstore-utils",
170 "android.hardware.configstore@1.0",
171 "android.hardware.configstore@1.1",
172 "libbinder_ndk",
173 ],
174}
175
176filegroup {
177 name: "libsurfaceflinger_backend_sources",
178 srcs: [
179 "DisplayHardware/AidlComposerHal.cpp",
180 "DisplayHardware/ComposerHal.cpp",
181 "DisplayHardware/FramebufferSurface.cpp",
182 "DisplayHardware/HWC2.cpp",
183 "DisplayHardware/HWComposer.cpp",
184 "DisplayHardware/HidlComposerHal.cpp",
Lloyd Piquee98286f2024-09-16 16:23:24 -0700185 "DisplayHardware/VirtualDisplaySurface.cpp",
Melody Hsub76cb212025-01-07 18:35:14 +0000186 "PowerAdvisor/*.cpp",
Lloyd Piquee98286f2024-09-16 16:23:24 -0700187 ],
188}
189
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800190cc_library_headers {
191 name: "libsurfaceflinger_headers",
Alex Vakulenko06a76342017-02-01 22:25:44 -0800192 export_include_dirs: ["."],
Logan Chien3ac6c962018-02-27 16:46:00 +0800193 static_libs: ["libserviceutils"],
194 export_static_lib_headers: ["libserviceutils"],
Alex Vakulenko06a76342017-02-01 22:25:44 -0800195}
Kalle Raitaa099a242017-01-11 11:17:29 -0800196
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800197filegroup {
198 name: "libsurfaceflinger_sources",
199 srcs: [
Lloyd Piquee98286f2024-09-16 16:23:24 -0700200 ":libsurfaceflinger_backend_sources",
Brian Lindahlf1cfbf62024-12-06 08:07:16 -0700201 "ActivePictureTracker.cpp",
Vishnu Nair34eb9ca2021-11-18 15:23:23 -0800202 "BackgroundExecutor.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800203 "Client.cpp",
Dominik Laskowskib363c4c2022-08-02 14:03:41 -0700204 "ClientCache.cpp",
Dominik Laskowski6e465152022-09-28 11:00:25 -0400205 "Display/DisplayModeController.cpp",
Dominik Laskowskib363c4c2022-08-02 14:03:41 -0700206 "Display/DisplaySnapshot.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800207 "DisplayDevice.cpp",
Marin Shalamanovf6b5d182020-06-12 02:08:51 +0200208 "DisplayRenderArea.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800209 "Effects/Daltonizer.cpp",
Alec Mouriadebf5c2021-01-05 12:57:36 -0800210 "FpsReporter.cpp",
Matt Buckley34953232025-02-06 06:32:09 -0800211 "FrameTimeline/FrameTimeline.cpp",
Mikael Pessa90092f42019-08-26 17:22:04 -0700212 "FrameTracer/FrameTracer.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800213 "FrameTracker.cpp",
Melody Hsub76cb212025-01-07 18:35:14 +0000214 "FrontEnd/LayerCreationArgs.cpp",
215 "FrontEnd/LayerHandle.cpp",
216 "FrontEnd/LayerHierarchy.cpp",
217 "FrontEnd/LayerLifecycleManager.cpp",
218 "FrontEnd/LayerSnapshot.cpp",
219 "FrontEnd/LayerSnapshotBuilder.cpp",
220 "FrontEnd/RequestedLayerState.cpp",
221 "FrontEnd/TransactionHandler.cpp",
John Reck88270902021-03-18 11:27:35 -0400222 "HdrLayerInfoReporter.cpp",
Sally Qi147581b2023-06-27 11:55:34 -0700223 "HdrSdrRatioOverlay.cpp",
Pascal Mütschardd56514e2024-05-24 17:37:13 +0200224 "Jank/JankTracker.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800225 "Layer.cpp",
Vishnu Naire14c6b32022-08-06 04:20:15 +0000226 "LayerFE.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800227 "LayerProtoHelper.cpp",
Marin Shalamanovf6b5d182020-06-12 02:08:51 +0200228 "LayerRenderArea.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800229 "LayerVector.cpp",
Lloyd Pique22098362018-09-13 11:46:49 -0700230 "NativeWindowSurface.cpp",
Ady Abraham03b02dd2019-03-21 15:40:11 -0700231 "RefreshRateOverlay.cpp",
Dan Stozaec460082018-12-17 15:35:09 -0800232 "RegionSamplingThread.cpp",
Ady Abraham03b02dd2019-03-21 15:40:11 -0700233 "RenderArea.cpp",
Ana Krulecfefcb582018-08-07 14:22:37 -0700234 "Scheduler/EventThread.cpp",
Andy Yu2ae6b6b2021-11-18 14:51:06 -0800235 "Scheduler/FrameRateOverrideMappings.cpp",
Marin Shalamanov1bc43ee2020-11-20 16:56:52 +0100236 "Scheduler/LayerHistory.cpp",
237 "Scheduler/LayerInfo.cpp",
Ana Krulecfefcb582018-08-07 14:22:37 -0700238 "Scheduler/MessageQueue.cpp",
Melody Hsub76cb212025-01-07 18:35:14 +0000239 "Scheduler/OneShotTimer.cpp",
Dominik Laskowskid82e0f02022-10-26 15:23:04 -0400240 "Scheduler/RefreshRateSelector.cpp",
Ana Krulec98b5b242018-08-10 15:03:23 -0700241 "Scheduler/Scheduler.cpp",
Tony Huang9ac5e6e2023-08-24 09:01:44 +0000242 "Scheduler/SmallAreaDetectionAllowMappings.cpp",
Kevin DuBois1678e2c2019-08-22 12:26:24 -0700243 "Scheduler/VSyncDispatchTimerQueue.cpp",
244 "Scheduler/VSyncPredictor.cpp",
Kevin DuBoisb2501ba2019-11-12 14:20:29 -0800245 "Scheduler/VSyncReactor.cpp",
Ady Abrahamc581d3c2020-08-06 17:34:27 -0700246 "Scheduler/VsyncConfiguration.cpp",
Dominik Laskowski068173d2021-08-11 17:22:59 -0700247 "Scheduler/VsyncModulator.cpp",
248 "Scheduler/VsyncSchedule.cpp",
Patrick Williams7584c6a2022-10-29 02:10:58 +0000249 "ScreenCaptureOutput.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800250 "SurfaceFlinger.cpp",
Lloyd Pique24f3bfe2019-10-02 19:29:10 -0700251 "SurfaceFlingerDefaultFactory.cpp",
Kean Mariotti639b54f2023-04-20 12:06:29 +0000252 "Tracing/LayerDataSource.cpp",
Vishnu Nair00b90132021-11-05 14:03:40 -0700253 "Tracing/LayerTracing.cpp",
Kean Mariotti3e68a202023-04-19 13:41:55 +0000254 "Tracing/TransactionDataSource.cpp",
Vishnu Nair6b591152021-10-08 11:45:14 -0700255 "Tracing/TransactionProtoParser.cpp",
Melody Hsub76cb212025-01-07 18:35:14 +0000256 "Tracing/TransactionTracing.cpp",
Kean Mariotti639b54f2023-04-20 12:06:29 +0000257 "Tracing/tools/LayerTraceGenerator.cpp",
Robert Carr9a803c32021-01-14 16:57:58 -0800258 "TransactionCallbackInvoker.cpp",
Galia Peycheva8f04b302021-04-27 13:25:38 +0200259 "TunnelModeEnabledReporter.cpp",
Melody Hsub76cb212025-01-07 18:35:14 +0000260 "WindowInfosListenerInvoker.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800261 ],
262}
263
John Reck8b1ae3f2020-09-10 17:01:09 +0000264cc_defaults {
265 name: "libsurfaceflinger_binary",
266 defaults: [
John Reck8b1ae3f2020-09-10 17:01:09 +0000267 "libsurfaceflinger_production_defaults",
Melody Hsub76cb212025-01-07 18:35:14 +0000268 "surfaceflinger_defaults",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800269 ],
mamik94e91f62019-08-19 09:11:33 -0700270 cflags: [
John Reck8b1ae3f2020-09-10 17:01:09 +0000271 "-DLOG_TAG=\"SurfaceFlinger\"",
mamik94e91f62019-08-19 09:11:33 -0700272 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800273 shared_libs: [
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800274 "android.hardware.configstore-utils",
275 "android.hardware.configstore@1.0",
276 "android.hardware.graphics.allocator@2.0",
Marissa Wall925bf7f2018-12-29 14:27:11 -0800277 "android.hardware.graphics.allocator@3.0",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800278 "libbinder",
279 "libcutils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800280 "libhidlbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800281 "liblog",
Suren Baghdasaryancd829052018-11-02 19:15:37 -0700282 "libprocessgroup",
Alec Mouri0a9c7b82018-11-16 13:05:25 -0800283 "libsync",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800284 "libutils",
285 ],
286 static_libs: [
Devin Moorea1889802023-05-22 21:29:09 +0000287 "android.frameworks.displayservice@1.0",
288 "libdisplayservicehidl",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800289 "libserviceutils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800290 ],
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700291}
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800292
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700293filegroup {
294 name: "surfaceflinger_binary_sources",
John Reck8b1ae3f2020-09-10 17:01:09 +0000295 srcs: [
296 ":libsurfaceflinger_sources",
Lloyd Piqued777be42020-09-11 15:38:53 -0700297 "main_surfaceflinger.cpp",
John Reck8b1ae3f2020-09-10 17:01:09 +0000298 ],
Lloyd Piqueea0a5fb2018-09-12 15:04:56 -0700299}
300
301cc_binary {
302 name: "surfaceflinger",
303 defaults: ["libsurfaceflinger_binary"],
304 init_rc: ["surfaceflinger.rc"],
Lloyd Piqued777be42020-09-11 15:38:53 -0700305 srcs: [
306 ":surfaceflinger_binary_sources",
307 // Note: SurfaceFlingerFactory is not in the filegroup so that it
308 // can be easily replaced.
309 "SurfaceFlingerFactory.cpp",
310 ],
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900311 shared_libs: [
Inseob Kimd6e835b2019-02-14 12:33:30 +0900312 "libSurfaceFlingerProp",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900313 ],
Alec Mouri0a9bc472020-09-10 18:03:43 -0700314
Ben Widawskyd1538462024-10-09 10:25:38 -0700315 logtags: ["surfaceflinger.logtags"],
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800316}
317
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800318subdirs = [
319 "layerproto",
320 "tests",
321]
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900322
323cc_library_shared {
Inseob Kimd6e835b2019-02-14 12:33:30 +0900324 name: "libSurfaceFlingerProp",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900325 srcs: [
326 "SurfaceFlingerProperties.cpp",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900327 ],
328 shared_libs: [
329 "android.hardware.configstore-utils",
330 "android.hardware.configstore@1.0",
331 "android.hardware.configstore@1.1",
Sundong Ahncb20cca2019-02-22 11:57:38 +0900332 "android.hardware.graphics.common@1.2",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900333 "libhidlbase",
Melody Hsub76cb212025-01-07 18:35:14 +0000334 "liblog",
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 ],
338 static_libs: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000339 "libSurfaceFlingerProperties",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900340 ],
341 export_shared_lib_headers: [
Sundong Ahncb20cca2019-02-22 11:57:38 +0900342 "android.hardware.graphics.common@1.2",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900343 "libhidlbase",
Sundong Ahn204fb1f2020-04-23 21:56:36 +0900344 "libui",
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900345 ],
Inseob Kimd6e835b2019-02-14 12:33:30 +0900346 export_static_lib_headers: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000347 "libSurfaceFlingerProperties",
Inseob Kimd6e835b2019-02-14 12:33:30 +0900348 ],
Sundong Ahnd5e08f62018-12-12 20:27:28 +0900349}
Alec Mourid05a7452024-09-20 13:44:02 +0000350
351cc_library {
352 name: "libstatslog_surfaceflinger",
353 generated_sources: ["statslog_surfaceflinger.cpp"],
354 generated_headers: ["statslog_surfaceflinger.h"],
355 export_generated_headers: ["statslog_surfaceflinger.h"],
356 shared_libs: [
Melody Hsub76cb212025-01-07 18:35:14 +0000357 "android.os.statsbootstrap_aidl-cpp",
Alec Mourid05a7452024-09-20 13:44:02 +0000358 "libbinder",
359 "libstatsbootstrap",
360 "libutils",
Alec Mourid05a7452024-09-20 13:44:02 +0000361 ],
362}
363
364genrule {
365 name: "statslog_surfaceflinger.h",
366 tools: ["stats-log-api-gen"],
367 cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_surfaceflinger.h" +
368 " --module surfaceflinger --namespace android,surfaceflinger,stats --bootstrap",
369 out: [
370 "statslog_surfaceflinger.h",
371 ],
372}
373
374genrule {
375 name: "statslog_surfaceflinger.cpp",
376 tools: ["stats-log-api-gen"],
377 cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_surfaceflinger.cpp" +
378 " --module surfaceflinger --namespace android,surfaceflinger,stats" +
379 " --importHeader statslog_surfaceflinger.h --bootstrap",
380 out: [
381 "statslog_surfaceflinger.cpp",
382 ],
383}