| Bob Badour | 3c53823 | 2021-02-12 21:26:48 -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", | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 15 | "-Wformat", | 
| Lloyd Pique | 755e319 | 2018-01-31 16:46:15 -0800 | [diff] [blame] | 16 | "-Wthread-safety", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 17 | "-Wunused", | 
|  | 18 | "-Wunreachable-code", | 
| Ady Abraham | b0dbdaa | 2020-01-06 16:19:42 -0800 | [diff] [blame] | 19 | "-Wconversion", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 20 | ], | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 21 | } | 
|  | 22 |  | 
|  | 23 | cc_defaults { | 
|  | 24 | name: "libsurfaceflinger_defaults", | 
|  | 25 | defaults: ["surfaceflinger_defaults"], | 
|  | 26 | cflags: [ | 
| Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 27 | "-DLOG_TAG=\"SurfaceFlinger\"", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 28 | "-DGL_GLEXT_PROTOTYPES", | 
|  | 29 | "-DEGL_EGLEXT_PROTOTYPES", | 
|  | 30 | ], | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 31 | shared_libs: [ | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 32 | "android.hardware.configstore-utils", | 
|  | 33 | "android.hardware.configstore@1.0", | 
| Iris Chang | 7501ed6 | 2018-04-30 14:45:42 +0800 | [diff] [blame] | 34 | "android.hardware.configstore@1.1", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 35 | "android.hardware.graphics.allocator@2.0", | 
| Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 36 | "android.hardware.graphics.allocator@3.0", | 
| Valerie Hau | 9758ae0 | 2018-10-09 16:05:09 -0700 | [diff] [blame] | 37 | "android.hardware.graphics.common@1.2", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 38 | "android.hardware.graphics.composer@2.1", | 
| Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 39 | "android.hardware.graphics.composer@2.2", | 
| Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 40 | "android.hardware.graphics.composer@2.3", | 
| Dominik Laskowski | 25a4e7d | 2019-09-20 14:50:10 -0700 | [diff] [blame] | 41 | "android.hardware.graphics.composer@2.4", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 42 | "android.hardware.power@1.0", | 
| Michael Wright | 5d22d4f | 2018-06-21 02:50:34 +0100 | [diff] [blame] | 43 | "android.hardware.power@1.3", | 
| Jeongik Cha | 204e03d | 2021-01-26 22:34:54 +0900 | [diff] [blame] | 44 | "android.hardware.power-V1-cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 45 | "libbase", | 
|  | 46 | "libbinder", | 
| Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 47 | "libbufferhubqueue", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 48 | "libcutils", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 49 | "libEGL", | 
|  | 50 | "libfmq", | 
|  | 51 | "libGLESv1_CM", | 
|  | 52 | "libGLESv2", | 
|  | 53 | "libgui", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 54 | "libhidlbase", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 55 | "liblayers_proto", | 
|  | 56 | "liblog", | 
| Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 57 | "libnativewindow", | 
| Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 58 | "libpdx_default_transport", | 
| Suren Baghdasaryan | cd82905 | 2018-11-02 19:15:37 -0700 | [diff] [blame] | 59 | "libprocessgroup", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 60 | "libprotobuf-cpp-lite", | 
| Alec Mouri | 989ddbe | 2020-02-06 09:26:19 -0800 | [diff] [blame] | 61 | "libstatslog", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 62 | "libsync", | 
| Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 63 | "libtimestats", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 64 | "libui", | 
| Robert Carr | 720e506 | 2018-07-30 17:45:14 -0700 | [diff] [blame] | 65 | "libinput", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 66 | "libutils", | 
| Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 67 | "libSurfaceFlingerProp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 68 | ], | 
|  | 69 | static_libs: [ | 
| Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 70 | "libcompositionengine", | 
| Mikael Pessa | 2e1608f | 2019-07-19 11:25:35 -0700 | [diff] [blame] | 71 | "libperfetto_client_experimental", | 
| Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 72 | "librenderengine", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 73 | "libserviceutils", | 
|  | 74 | "libtrace_proto", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 75 | ], | 
|  | 76 | header_libs: [ | 
|  | 77 | "android.hardware.graphics.composer@2.1-command-buffer", | 
| Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 78 | "android.hardware.graphics.composer@2.2-command-buffer", | 
| Peiyong Lin | 698147a | 2018-09-14 13:27:18 -0700 | [diff] [blame] | 79 | "android.hardware.graphics.composer@2.3-command-buffer", | 
| Peiyong Lin | afa0f57 | 2020-01-13 16:35:02 -0800 | [diff] [blame] | 80 | "android.hardware.graphics.composer@2.4-command-buffer", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 81 | ], | 
|  | 82 | export_static_lib_headers: [ | 
| Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 83 | "libcompositionengine", | 
| Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 84 | "librenderengine", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 85 | "libserviceutils", | 
|  | 86 | ], | 
|  | 87 | export_shared_lib_headers: [ | 
|  | 88 | "android.hardware.graphics.allocator@2.0", | 
| Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 89 | "android.hardware.graphics.allocator@3.0", | 
| Valerie Hau | 9758ae0 | 2018-10-09 16:05:09 -0700 | [diff] [blame] | 90 | "android.hardware.graphics.common@1.2", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 91 | "android.hardware.graphics.composer@2.1", | 
| Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 92 | "android.hardware.graphics.composer@2.2", | 
| Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 93 | "android.hardware.graphics.composer@2.3", | 
| Dominik Laskowski | 25a4e7d | 2019-09-20 14:50:10 -0700 | [diff] [blame] | 94 | "android.hardware.graphics.composer@2.4", | 
| Michael Wright | 5d22d4f | 2018-06-21 02:50:34 +0100 | [diff] [blame] | 95 | "android.hardware.power@1.3", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 96 | "libhidlbase", | 
| Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 97 | "libtimestats", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 98 | ], | 
| Marissa Wall | 4858652 | 2019-11-19 14:01:36 -0800 | [diff] [blame] | 99 | // TODO (marissaw): this library is not used by surfaceflinger. This is here so | 
|  | 100 | // the library compiled in a way that is accessible to system partition when running | 
|  | 101 | // IMapper's VTS. | 
|  | 102 | required: ["libgralloctypes"] | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 103 | } | 
|  | 104 |  | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 105 | cc_defaults { | 
|  | 106 | name: "libsurfaceflinger_production_defaults", | 
|  | 107 | defaults: ["libsurfaceflinger_defaults"], | 
|  | 108 | cflags: [ | 
|  | 109 | "-fvisibility=hidden", | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 110 | ], | 
|  | 111 | lto: { | 
|  | 112 | thin: true, | 
|  | 113 | }, | 
| Yi Kong | bf2aa78 | 2020-09-21 01:25:16 +0800 | [diff] [blame] | 114 | whole_program_vtables: true, // Requires ThinLTO | 
| Yi Kong | 2598f20 | 2021-02-19 17:48:33 +0800 | [diff] [blame] | 115 | pgo: { | 
|  | 116 | sampling: true, | 
|  | 117 | profile_file: "surfaceflinger/surfaceflinger.profdata", | 
|  | 118 | }, | 
| Mitch Phillips | c2049af | 2019-05-14 13:08:29 -0700 | [diff] [blame] | 119 | // TODO(b/131771163): Fix broken fuzzer support with LTO. | 
|  | 120 | sanitize: { | 
|  | 121 | fuzzer: false, | 
|  | 122 | }, | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 123 | } | 
|  | 124 |  | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 125 | cc_library_headers { | 
|  | 126 | name: "libsurfaceflinger_headers", | 
| Alex Vakulenko | 06a7634 | 2017-02-01 22:25:44 -0800 | [diff] [blame] | 127 | export_include_dirs: ["."], | 
| Logan Chien | 3ac6c96 | 2018-02-27 16:46:00 +0800 | [diff] [blame] | 128 | static_libs: ["libserviceutils"], | 
|  | 129 | export_static_lib_headers: ["libserviceutils"], | 
| Alex Vakulenko | 06a7634 | 2017-02-01 22:25:44 -0800 | [diff] [blame] | 130 | } | 
| Kalle Raita | a099a24 | 2017-01-11 11:17:29 -0800 | [diff] [blame] | 131 |  | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 132 | filegroup { | 
|  | 133 | name: "libsurfaceflinger_sources", | 
|  | 134 | srcs: [ | 
|  | 135 | "BufferLayer.cpp", | 
|  | 136 | "BufferLayerConsumer.cpp", | 
| Marissa Wall | fd66862 | 2018-05-10 10:21:13 -0700 | [diff] [blame] | 137 | "BufferQueueLayer.cpp", | 
| Marissa Wall | 61c5862 | 2018-07-18 10:12:20 -0700 | [diff] [blame] | 138 | "BufferStateLayer.cpp", | 
| Marissa Wall | 947d34e | 2019-03-29 14:03:53 -0700 | [diff] [blame] | 139 | "ClientCache.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 140 | "Client.cpp", | 
| Vishnu Nair | fa247b1 | 2020-02-11 08:58:26 -0800 | [diff] [blame] | 141 | "EffectLayer.cpp", | 
| Robert Carr | cdf8320 | 2018-03-07 12:48:34 -0800 | [diff] [blame] | 142 | "ContainerLayer.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 143 | "DisplayDevice.cpp", | 
|  | 144 | "DisplayHardware/ComposerHal.cpp", | 
| Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 145 | "DisplayHardware/DisplayIdentification.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 146 | "DisplayHardware/FramebufferSurface.cpp", | 
|  | 147 | "DisplayHardware/HWC2.cpp", | 
|  | 148 | "DisplayHardware/HWComposer.cpp", | 
| Michael Wright | 5d22d4f | 2018-06-21 02:50:34 +0100 | [diff] [blame] | 149 | "DisplayHardware/PowerAdvisor.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 150 | "DisplayHardware/VirtualDisplaySurface.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 151 | "Effects/Daltonizer.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 152 | "EventLog/EventLog.cpp", | 
| Mikael Pessa | 90092f4 | 2019-08-26 17:22:04 -0700 | [diff] [blame] | 153 | "FrameTracer/FrameTracer.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 154 | "FrameTracker.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 155 | "Layer.cpp", | 
|  | 156 | "LayerProtoHelper.cpp", | 
|  | 157 | "LayerRejecter.cpp", | 
|  | 158 | "LayerVector.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 159 | "MonitoredProducer.cpp", | 
| Lloyd Pique | 2209836 | 2018-09-13 11:46:49 -0700 | [diff] [blame] | 160 | "NativeWindowSurface.cpp", | 
| Ady Abraham | 03b02dd | 2019-03-21 15:40:11 -0700 | [diff] [blame] | 161 | "RefreshRateOverlay.cpp", | 
| Dan Stoza | ec46008 | 2018-12-17 15:35:09 -0800 | [diff] [blame] | 162 | "RegionSamplingThread.cpp", | 
| Ady Abraham | 03b02dd | 2019-03-21 15:40:11 -0700 | [diff] [blame] | 163 | "RenderArea.cpp", | 
| Ana Krulec | fefcb58 | 2018-08-07 14:22:37 -0700 | [diff] [blame] | 164 | "Scheduler/DispSync.cpp", | 
| Ana Krulec | 241cf83 | 2018-08-10 15:03:23 -0700 | [diff] [blame] | 165 | "Scheduler/DispSyncSource.cpp", | 
| Ana Krulec | fefcb58 | 2018-08-07 14:22:37 -0700 | [diff] [blame] | 166 | "Scheduler/EventControlThread.cpp", | 
|  | 167 | "Scheduler/EventThread.cpp", | 
| Ana Krulec | f2c006d | 2019-06-21 15:37:07 -0700 | [diff] [blame] | 168 | "Scheduler/OneShotTimer.cpp", | 
| Ana Krulec | 61f86db | 2018-11-19 14:16:35 +0100 | [diff] [blame] | 169 | "Scheduler/LayerHistory.cpp", | 
| Ady Abraham | 8a82ba6 | 2020-01-17 12:43:17 -0800 | [diff] [blame] | 170 | "Scheduler/LayerHistoryV2.cpp", | 
| Ady Abraham | 09bd392 | 2019-04-08 10:44:56 -0700 | [diff] [blame] | 171 | "Scheduler/LayerInfo.cpp", | 
| Ady Abraham | 8a82ba6 | 2020-01-17 12:43:17 -0800 | [diff] [blame] | 172 | "Scheduler/LayerInfoV2.cpp", | 
| Ana Krulec | fefcb58 | 2018-08-07 14:22:37 -0700 | [diff] [blame] | 173 | "Scheduler/MessageQueue.cpp", | 
| Alec Mouri | b488afa | 2019-05-23 10:22:24 -0700 | [diff] [blame] | 174 | "Scheduler/PhaseOffsets.cpp", | 
| Ady Abraham | b4b1e0a | 2019-11-20 18:25:35 -0800 | [diff] [blame] | 175 | "Scheduler/RefreshRateConfigs.cpp", | 
| Ana Krulec | 98b5b24 | 2018-08-10 15:03:23 -0700 | [diff] [blame] | 176 | "Scheduler/Scheduler.cpp", | 
| Ana Krulec | 434c22d | 2018-11-28 13:48:36 +0100 | [diff] [blame] | 177 | "Scheduler/SchedulerUtils.cpp", | 
| Kevin DuBois | cc27b50 | 2019-11-13 09:40:07 -0800 | [diff] [blame] | 178 | "Scheduler/Timer.cpp", | 
| Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 179 | "Scheduler/VSyncDispatchTimerQueue.cpp", | 
|  | 180 | "Scheduler/VSyncPredictor.cpp", | 
| Alec Mouri | b488afa | 2019-05-23 10:22:24 -0700 | [diff] [blame] | 181 | "Scheduler/VSyncModulator.cpp", | 
| Kevin DuBois | b2501ba | 2019-11-12 14:20:29 -0800 | [diff] [blame] | 182 | "Scheduler/VSyncReactor.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 183 | "StartPropertySetThread.cpp", | 
|  | 184 | "SurfaceFlinger.cpp", | 
| Lloyd Pique | 24f3bfe | 2019-10-02 19:29:10 -0700 | [diff] [blame] | 185 | "SurfaceFlingerDefaultFactory.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 186 | "SurfaceInterceptor.cpp", | 
|  | 187 | "SurfaceTracing.cpp", | 
| Marissa Wall | e2ffb42 | 2018-10-12 11:33:52 -0700 | [diff] [blame] | 188 | "TransactionCompletedThread.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 189 | ], | 
|  | 190 | } | 
|  | 191 |  | 
|  | 192 | cc_library_shared { | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 193 | // Please use libsurfaceflinger_defaults to configure how the sources are | 
|  | 194 | // built, so the same settings can be used elsewhere. | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 195 | name: "libsurfaceflinger", | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 196 | defaults: ["libsurfaceflinger_production_defaults"], | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 197 | srcs: [ | 
|  | 198 | ":libsurfaceflinger_sources", | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 199 |  | 
|  | 200 | // Note: SurfaceFlingerFactory is not in the default sources so that it | 
|  | 201 | // can be easily replaced. | 
|  | 202 | "SurfaceFlingerFactory.cpp", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 203 | ], | 
| Lloyd Pique | f58625d | 2017-12-19 13:22:33 -0800 | [diff] [blame] | 204 | logtags: ["EventLog/EventLogTags.logtags"], | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 205 | } | 
|  | 206 |  | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 207 | cc_defaults { | 
|  | 208 | name: "libsurfaceflinger_binary", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 209 | defaults: ["surfaceflinger_defaults"], | 
| Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 210 | cflags: [ | 
|  | 211 | "-DLOG_TAG=\"SurfaceFlinger\"", | 
|  | 212 | ], | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 213 | shared_libs: [ | 
|  | 214 | "android.frameworks.displayservice@1.0", | 
|  | 215 | "android.hardware.configstore-utils", | 
|  | 216 | "android.hardware.configstore@1.0", | 
|  | 217 | "android.hardware.graphics.allocator@2.0", | 
| Marissa Wall | 925bf7f | 2018-12-29 14:27:11 -0800 | [diff] [blame] | 218 | "android.hardware.graphics.allocator@3.0", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 219 | "libbinder", | 
|  | 220 | "libcutils", | 
|  | 221 | "libdisplayservicehidl", | 
|  | 222 | "libhidlbase", | 
| Robert Carr | 720e506 | 2018-07-30 17:45:14 -0700 | [diff] [blame] | 223 | "libinput", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 224 | "liblayers_proto", | 
|  | 225 | "liblog", | 
| Suren Baghdasaryan | cd82905 | 2018-11-02 19:15:37 -0700 | [diff] [blame] | 226 | "libprocessgroup", | 
| Alec Mouri | 0a9c7b8 | 2018-11-16 13:05:25 -0800 | [diff] [blame] | 227 | "libsync", | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 228 | "libutils", | 
|  | 229 | ], | 
|  | 230 | static_libs: [ | 
|  | 231 | "libserviceutils", | 
|  | 232 | "libtrace_proto", | 
|  | 233 | ], | 
|  | 234 | ldflags: ["-Wl,--export-dynamic"], | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 235 | } | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 236 |  | 
| Lloyd Pique | ea0a5fb | 2018-09-12 15:04:56 -0700 | [diff] [blame] | 237 | filegroup { | 
|  | 238 | name: "surfaceflinger_binary_sources", | 
|  | 239 | srcs: ["main_surfaceflinger.cpp"], | 
|  | 240 | } | 
|  | 241 |  | 
|  | 242 | cc_binary { | 
|  | 243 | name: "surfaceflinger", | 
|  | 244 | defaults: ["libsurfaceflinger_binary"], | 
|  | 245 | init_rc: ["surfaceflinger.rc"], | 
|  | 246 | srcs: [":surfaceflinger_binary_sources"], | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 247 | shared_libs: [ | 
|  | 248 | "libsurfaceflinger", | 
| 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 | ], | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 251 | } | 
|  | 252 |  | 
| Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 253 | subdirs = [ | 
|  | 254 | "layerproto", | 
|  | 255 | "tests", | 
|  | 256 | ] | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 257 |  | 
|  | 258 | cc_library_shared { | 
| Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 259 | name: "libSurfaceFlingerProp", | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 260 | srcs: [ | 
|  | 261 | "SurfaceFlingerProperties.cpp", | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 262 | ], | 
|  | 263 | shared_libs: [ | 
|  | 264 | "android.hardware.configstore-utils", | 
|  | 265 | "android.hardware.configstore@1.0", | 
|  | 266 | "android.hardware.configstore@1.1", | 
| Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 267 | "android.hardware.graphics.common@1.2", | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 268 | "libhidlbase", | 
| Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 269 | "libui", | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 270 | "libutils", | 
| Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 271 | "liblog", | 
|  | 272 | ], | 
|  | 273 | static_libs: [ | 
|  | 274 | "SurfaceFlingerProperties", | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 275 | ], | 
|  | 276 | export_shared_lib_headers: [ | 
| Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 277 | "android.hardware.graphics.common@1.2", | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 278 | "libhidlbase", | 
| Sundong Ahn | 204fb1f | 2020-04-23 21:56:36 +0900 | [diff] [blame] | 279 | "libui", | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 280 | ], | 
| Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 281 | export_static_lib_headers: [ | 
|  | 282 | "SurfaceFlingerProperties", | 
|  | 283 | ], | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 284 | } |