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"], |
| 8 | } |
| 9 | |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 10 | cc_defaults { |
| 11 | name: "surfaceflinger_defaults", |
| 12 | cflags: [ |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 13 | "-Wall", |
| 14 | "-Werror", |
Marin Shalamanov | bed7fd3 | 2020-12-21 20:02:20 +0100 | [diff] [blame] | 15 | "-Wextra", |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 16 | "-Wformat", |
Lloyd Pique | 755e319 | 2018-01-31 16:46:15 -0800 | [diff] [blame] | 17 | "-Wthread-safety", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 18 | "-Wunused", |
| 19 | "-Wunreachable-code", |
Ady Abraham | b0dbdaa | 2020-01-06 16:19:42 -0800 | [diff] [blame] | 20 | "-Wconversion", |
Ady Abraham | d11bade | 2022-08-01 16:18:03 -0700 | [diff] [blame] | 21 | "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 22 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | cc_defaults { |
| 26 | name: "libsurfaceflinger_defaults", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 27 | defaults: [ |
Sally Qi | 6920a2f | 2022-08-26 10:40:05 -0700 | [diff] [blame] | 28 | "android.hardware.graphics.composer3-ndk_shared", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 29 | "surfaceflinger_defaults", |
Leon Scroggins III | e4169c8 | 2021-04-28 11:31:50 -0400 | [diff] [blame] | 30 | "skia_renderengine_deps", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 31 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 32 | cflags: [ |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 33 | "-DLOG_TAG=\"SurfaceFlinger\"", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 34 | "-DGL_GLEXT_PROTOTYPES", |
| 35 | "-DEGL_EGLEXT_PROTOTYPES", |
| 36 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 37 | shared_libs: [ |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 38 | "android.hardware.configstore-utils", |
| 39 | "android.hardware.configstore@1.0", |
Iris Chang | 7501ed6 | 2018-04-30 14:45:42 +0800 | [diff] [blame] | 40 | "android.hardware.configstore@1.1", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 41 | "android.hardware.graphics.allocator@2.0", |
Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 42 | "android.hardware.graphics.allocator@3.0", |
Valerie Hau | 9758ae0 | 2018-10-09 16:05:09 -0700 | [diff] [blame] | 43 | "android.hardware.graphics.common@1.2", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 44 | "android.hardware.common-V2-ndk", |
| 45 | "android.hardware.common.fmq-V1-ndk", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 46 | "android.hardware.graphics.composer@2.1", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 47 | "android.hardware.graphics.composer@2.2", |
Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 48 | "android.hardware.graphics.composer@2.3", |
Dominik Laskowski | 25a4e7d | 2019-09-20 14:50:10 -0700 | [diff] [blame] | 49 | "android.hardware.graphics.composer@2.4", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 50 | "android.hardware.power@1.0", |
Michael Wright | 5d22d4f | 2018-06-21 02:50:34 +0100 | [diff] [blame] | 51 | "android.hardware.power@1.3", |
Matt Buckley | 06f299a | 2021-09-24 19:43:51 +0000 | [diff] [blame] | 52 | "android.hardware.power-V2-cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 53 | "libbase", |
| 54 | "libbinder", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 55 | "libbinder_ndk", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 56 | "libcutils", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 57 | "libEGL", |
| 58 | "libfmq", |
| 59 | "libGLESv1_CM", |
| 60 | "libGLESv2", |
| 61 | "libgui", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 62 | "libhidlbase", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 63 | "liblayers_proto", |
| 64 | "liblog", |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 65 | "libnativewindow", |
Suren Baghdasaryan | cd82905 | 2018-11-02 19:15:37 -0700 | [diff] [blame] | 66 | "libprocessgroup", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 67 | "libprotobuf-cpp-lite", |
| 68 | "libsync", |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 69 | "libtimestats", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 70 | "libui", |
Robert Carr | 720e506 | 2018-07-30 17:45:14 -0700 | [diff] [blame] | 71 | "libinput", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 72 | "libutils", |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 73 | "libSurfaceFlingerProp", |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 74 | "server_configurable_flags", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 75 | ], |
| 76 | static_libs: [ |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 77 | "libaidlcommonsupport", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 78 | "libcompositionengine", |
Adithya Srinivasan | f279e04 | 2020-08-17 14:56:27 -0700 | [diff] [blame] | 79 | "libframetimeline", |
Huihong Luo | 9e84f33 | 2021-12-16 14:33:46 -0800 | [diff] [blame] | 80 | "libgui_aidl_static", |
Mikael Pessa | 2e1608f | 2019-07-19 11:25:35 -0700 | [diff] [blame] | 81 | "libperfetto_client_experimental", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 82 | "librenderengine", |
Dominik Laskowski | f6b4ba6 | 2021-11-09 12:46:10 -0800 | [diff] [blame] | 83 | "libscheduler", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 84 | "libserviceutils", |
Alec Mouri | 492c85c | 2021-11-19 15:58:10 -0800 | [diff] [blame] | 85 | "libshaders", |
Alec Mouri | 465b296 | 2021-10-08 16:22:21 -0700 | [diff] [blame] | 86 | "libtonemap", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 87 | ], |
| 88 | header_libs: [ |
| 89 | "android.hardware.graphics.composer@2.1-command-buffer", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 90 | "android.hardware.graphics.composer@2.2-command-buffer", |
Peiyong Lin | 698147a | 2018-09-14 13:27:18 -0700 | [diff] [blame] | 91 | "android.hardware.graphics.composer@2.3-command-buffer", |
Peiyong Lin | afa0f57 | 2020-01-13 16:35:02 -0800 | [diff] [blame] | 92 | "android.hardware.graphics.composer@2.4-command-buffer", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 93 | "android.hardware.graphics.composer3-command-buffer", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 94 | ], |
| 95 | export_static_lib_headers: [ |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 96 | "libcompositionengine", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 97 | "librenderengine", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 98 | "libserviceutils", |
| 99 | ], |
| 100 | export_shared_lib_headers: [ |
| 101 | "android.hardware.graphics.allocator@2.0", |
Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 102 | "android.hardware.graphics.allocator@3.0", |
Valerie Hau | 9758ae0 | 2018-10-09 16:05:09 -0700 | [diff] [blame] | 103 | "android.hardware.graphics.common@1.2", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 104 | "android.hardware.graphics.composer@2.1", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 105 | "android.hardware.graphics.composer@2.2", |
Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 106 | "android.hardware.graphics.composer@2.3", |
Dominik Laskowski | 25a4e7d | 2019-09-20 14:50:10 -0700 | [diff] [blame] | 107 | "android.hardware.graphics.composer@2.4", |
Michael Wright | 5d22d4f | 2018-06-21 02:50:34 +0100 | [diff] [blame] | 108 | "android.hardware.power@1.3", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 109 | "libhidlbase", |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 110 | "libtimestats", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 111 | ], |
Marissa Wall | 4858652 | 2019-11-19 14:01:36 -0800 | [diff] [blame] | 112 | // TODO (marissaw): this library is not used by surfaceflinger. This is here so |
| 113 | // the library compiled in a way that is accessible to system partition when running |
| 114 | // IMapper's VTS. |
Vishnu Nair | 6b59115 | 2021-10-08 11:45:14 -0700 | [diff] [blame] | 115 | required: ["libgralloctypes"], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 116 | } |
| 117 | |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 118 | cc_defaults { |
| 119 | name: "libsurfaceflinger_production_defaults", |
| 120 | defaults: ["libsurfaceflinger_defaults"], |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 121 | lto: { |
| 122 | thin: true, |
| 123 | }, |
Yi Kong | bf2aa78 | 2020-09-21 01:25:16 +0800 | [diff] [blame] | 124 | whole_program_vtables: true, // Requires ThinLTO |
Yi Kong | 5cb3bb6 | 2022-01-06 16:01:18 +0800 | [diff] [blame] | 125 | afdo: true, |
Mitch Phillips | 21499ce | 2022-03-02 01:25:22 +0000 | [diff] [blame] | 126 | // TODO(b/131771163): Fix broken fuzzer support with LTO. |
| 127 | sanitize: { |
| 128 | fuzzer: false, |
| 129 | }, |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 130 | } |
| 131 | |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 132 | cc_library_headers { |
| 133 | name: "libsurfaceflinger_headers", |
Alex Vakulenko | 06a7634 | 2017-02-01 22:25:44 -0800 | [diff] [blame] | 134 | export_include_dirs: ["."], |
Logan Chien | 3ac6c96 | 2018-02-27 16:46:00 +0800 | [diff] [blame] | 135 | static_libs: ["libserviceutils"], |
| 136 | export_static_lib_headers: ["libserviceutils"], |
Alex Vakulenko | 06a7634 | 2017-02-01 22:25:44 -0800 | [diff] [blame] | 137 | } |
Kalle Raita | a099a24 | 2017-01-11 11:17:29 -0800 | [diff] [blame] | 138 | |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 139 | filegroup { |
| 140 | name: "libsurfaceflinger_sources", |
| 141 | srcs: [ |
Vishnu Nair | 34eb9ca | 2021-11-18 15:23:23 -0800 | [diff] [blame] | 142 | "BackgroundExecutor.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 143 | "Client.cpp", |
Dominik Laskowski | b363c4c | 2022-08-02 14:03:41 -0700 | [diff] [blame] | 144 | "ClientCache.cpp", |
| 145 | "Display/DisplaySnapshot.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 146 | "DisplayDevice.cpp", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 147 | "DisplayHardware/AidlComposerHal.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 148 | "DisplayHardware/ComposerHal.cpp", |
| 149 | "DisplayHardware/FramebufferSurface.cpp", |
| 150 | "DisplayHardware/HWC2.cpp", |
| 151 | "DisplayHardware/HWComposer.cpp", |
Dominik Laskowski | b363c4c | 2022-08-02 14:03:41 -0700 | [diff] [blame] | 152 | "DisplayHardware/HidlComposerHal.cpp", |
Michael Wright | 5d22d4f | 2018-06-21 02:50:34 +0100 | [diff] [blame] | 153 | "DisplayHardware/PowerAdvisor.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 154 | "DisplayHardware/VirtualDisplaySurface.cpp", |
Marin Shalamanov | f6b5d18 | 2020-06-12 02:08:51 +0200 | [diff] [blame] | 155 | "DisplayRenderArea.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 156 | "Effects/Daltonizer.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 157 | "EventLog/EventLog.cpp", |
Vishnu Nair | a61e4fb | 2022-10-18 18:29:37 +0000 | [diff] [blame^] | 158 | "FrontEnd/TransactionHandler.cpp", |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 159 | "FlagManager.cpp", |
Alec Mouri | adebf5c | 2021-01-05 12:57:36 -0800 | [diff] [blame] | 160 | "FpsReporter.cpp", |
Mikael Pessa | 90092f4 | 2019-08-26 17:22:04 -0700 | [diff] [blame] | 161 | "FrameTracer/FrameTracer.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 162 | "FrameTracker.cpp", |
John Reck | 8827090 | 2021-03-18 11:27:35 -0400 | [diff] [blame] | 163 | "HdrLayerInfoReporter.cpp", |
Vishnu Nair | 397a0e3 | 2022-07-26 00:01:48 +0000 | [diff] [blame] | 164 | "HwcSlotGenerator.cpp", |
chaviw | 60c9d3e | 2021-06-04 12:52:17 -0500 | [diff] [blame] | 165 | "WindowInfosListenerInvoker.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 166 | "Layer.cpp", |
Vishnu Nair | e14c6b3 | 2022-08-06 04:20:15 +0000 | [diff] [blame] | 167 | "LayerFE.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 168 | "LayerProtoHelper.cpp", |
Marin Shalamanov | f6b5d18 | 2020-06-12 02:08:51 +0200 | [diff] [blame] | 169 | "LayerRenderArea.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 170 | "LayerVector.cpp", |
Lloyd Pique | 2209836 | 2018-09-13 11:46:49 -0700 | [diff] [blame] | 171 | "NativeWindowSurface.cpp", |
Ady Abraham | 03b02dd | 2019-03-21 15:40:11 -0700 | [diff] [blame] | 172 | "RefreshRateOverlay.cpp", |
Dan Stoza | ec46008 | 2018-12-17 15:35:09 -0800 | [diff] [blame] | 173 | "RegionSamplingThread.cpp", |
Ady Abraham | 03b02dd | 2019-03-21 15:40:11 -0700 | [diff] [blame] | 174 | "RenderArea.cpp", |
Ana Krulec | 241cf83 | 2018-08-10 15:03:23 -0700 | [diff] [blame] | 175 | "Scheduler/DispSyncSource.cpp", |
Ana Krulec | fefcb58 | 2018-08-07 14:22:37 -0700 | [diff] [blame] | 176 | "Scheduler/EventThread.cpp", |
Andy Yu | 2ae6b6b | 2021-11-18 14:51:06 -0800 | [diff] [blame] | 177 | "Scheduler/FrameRateOverrideMappings.cpp", |
Ana Krulec | f2c006d | 2019-06-21 15:37:07 -0700 | [diff] [blame] | 178 | "Scheduler/OneShotTimer.cpp", |
Marin Shalamanov | 1bc43ee | 2020-11-20 16:56:52 +0100 | [diff] [blame] | 179 | "Scheduler/LayerHistory.cpp", |
| 180 | "Scheduler/LayerInfo.cpp", |
Ana Krulec | fefcb58 | 2018-08-07 14:22:37 -0700 | [diff] [blame] | 181 | "Scheduler/MessageQueue.cpp", |
Ady Abraham | b4b1e0a | 2019-11-20 18:25:35 -0800 | [diff] [blame] | 182 | "Scheduler/RefreshRateConfigs.cpp", |
Ana Krulec | 98b5b24 | 2018-08-10 15:03:23 -0700 | [diff] [blame] | 183 | "Scheduler/Scheduler.cpp", |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 184 | "Scheduler/VSyncDispatchTimerQueue.cpp", |
| 185 | "Scheduler/VSyncPredictor.cpp", |
Kevin DuBois | b2501ba | 2019-11-12 14:20:29 -0800 | [diff] [blame] | 186 | "Scheduler/VSyncReactor.cpp", |
Ady Abraham | c581d3c | 2020-08-06 17:34:27 -0700 | [diff] [blame] | 187 | "Scheduler/VsyncConfiguration.cpp", |
Dominik Laskowski | 068173d | 2021-08-11 17:22:59 -0700 | [diff] [blame] | 188 | "Scheduler/VsyncModulator.cpp", |
| 189 | "Scheduler/VsyncSchedule.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 190 | "StartPropertySetThread.cpp", |
| 191 | "SurfaceFlinger.cpp", |
Lloyd Pique | 24f3bfe | 2019-10-02 19:29:10 -0700 | [diff] [blame] | 192 | "SurfaceFlingerDefaultFactory.cpp", |
Vishnu Nair | 00b9013 | 2021-11-05 14:03:40 -0700 | [diff] [blame] | 193 | "Tracing/LayerTracing.cpp", |
Vishnu Nair | 7891e96 | 2021-11-11 12:07:21 -0800 | [diff] [blame] | 194 | "Tracing/TransactionTracing.cpp", |
Vishnu Nair | 6b59115 | 2021-10-08 11:45:14 -0700 | [diff] [blame] | 195 | "Tracing/TransactionProtoParser.cpp", |
Robert Carr | 9a803c3 | 2021-01-14 16:57:58 -0800 | [diff] [blame] | 196 | "TransactionCallbackInvoker.cpp", |
Galia Peycheva | 8f04b30 | 2021-04-27 13:25:38 +0200 | [diff] [blame] | 197 | "TunnelModeEnabledReporter.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 198 | ], |
| 199 | } |
| 200 | |
John Reck | 8b1ae3f | 2020-09-10 17:01:09 +0000 | [diff] [blame] | 201 | cc_defaults { |
| 202 | name: "libsurfaceflinger_binary", |
| 203 | defaults: [ |
| 204 | "surfaceflinger_defaults", |
| 205 | "libsurfaceflinger_production_defaults", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 206 | ], |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 207 | cflags: [ |
John Reck | 8b1ae3f | 2020-09-10 17:01:09 +0000 | [diff] [blame] | 208 | "-DLOG_TAG=\"SurfaceFlinger\"", |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 209 | ], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 210 | shared_libs: [ |
| 211 | "android.frameworks.displayservice@1.0", |
| 212 | "android.hardware.configstore-utils", |
| 213 | "android.hardware.configstore@1.0", |
| 214 | "android.hardware.graphics.allocator@2.0", |
Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 215 | "android.hardware.graphics.allocator@3.0", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 216 | "libbinder", |
| 217 | "libcutils", |
| 218 | "libdisplayservicehidl", |
| 219 | "libhidlbase", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 220 | "liblog", |
Suren Baghdasaryan | cd82905 | 2018-11-02 19:15:37 -0700 | [diff] [blame] | 221 | "libprocessgroup", |
Alec Mouri | 0a9c7b8 | 2018-11-16 13:05:25 -0800 | [diff] [blame] | 222 | "libsync", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 223 | "libutils", |
| 224 | ], |
| 225 | static_libs: [ |
| 226 | "libserviceutils", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 227 | ], |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 228 | } |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 229 | |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 230 | filegroup { |
| 231 | name: "surfaceflinger_binary_sources", |
John Reck | 8b1ae3f | 2020-09-10 17:01:09 +0000 | [diff] [blame] | 232 | srcs: [ |
| 233 | ":libsurfaceflinger_sources", |
Lloyd Pique | d777be4 | 2020-09-11 15:38:53 -0700 | [diff] [blame] | 234 | "main_surfaceflinger.cpp", |
John Reck | 8b1ae3f | 2020-09-10 17:01:09 +0000 | [diff] [blame] | 235 | ], |
Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 236 | } |
| 237 | |
| 238 | cc_binary { |
| 239 | name: "surfaceflinger", |
| 240 | defaults: ["libsurfaceflinger_binary"], |
| 241 | init_rc: ["surfaceflinger.rc"], |
Lloyd Pique | d777be4 | 2020-09-11 15:38:53 -0700 | [diff] [blame] | 242 | srcs: [ |
| 243 | ":surfaceflinger_binary_sources", |
| 244 | // Note: SurfaceFlingerFactory is not in the filegroup so that it |
| 245 | // can be easily replaced. |
| 246 | "SurfaceFlingerFactory.cpp", |
| 247 | ], |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 248 | shared_libs: [ |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 249 | "libSurfaceFlingerProp", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 250 | ], |
Alec Mouri | 0a9bc47 | 2020-09-10 18:03:43 -0700 | [diff] [blame] | 251 | |
Vishnu Nair | 6b59115 | 2021-10-08 11:45:14 -0700 | [diff] [blame] | 252 | logtags: ["EventLog/EventLogTags.logtags"], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 253 | } |
| 254 | |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 255 | subdirs = [ |
| 256 | "layerproto", |
| 257 | "tests", |
| 258 | ] |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 259 | |
| 260 | cc_library_shared { |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 261 | name: "libSurfaceFlingerProp", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 262 | srcs: [ |
| 263 | "SurfaceFlingerProperties.cpp", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 264 | ], |
| 265 | shared_libs: [ |
| 266 | "android.hardware.configstore-utils", |
| 267 | "android.hardware.configstore@1.0", |
| 268 | "android.hardware.configstore@1.1", |
Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 269 | "android.hardware.graphics.common@1.2", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 270 | "libhidlbase", |
Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 271 | "libui", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 272 | "libutils", |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 273 | "liblog", |
| 274 | ], |
| 275 | static_libs: [ |
Trevor Radcliffe | ba8800d | 2022-07-08 17:58:06 +0000 | [diff] [blame] | 276 | "libSurfaceFlingerProperties", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 277 | ], |
| 278 | export_shared_lib_headers: [ |
Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 279 | "android.hardware.graphics.common@1.2", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 280 | "libhidlbase", |
Sundong Ahn | 204fb1f | 2020-04-23 21:56:36 +0900 | [diff] [blame] | 281 | "libui", |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 282 | ], |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 283 | export_static_lib_headers: [ |
Trevor Radcliffe | ba8800d | 2022-07-08 17:58:06 +0000 | [diff] [blame] | 284 | "libSurfaceFlingerProperties", |
Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 285 | ], |
Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 286 | } |