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