Steven Moreland | bf0cfe7 | 2017-04-14 04:12:13 -0700 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "libmedia_headers", |
| 3 | vendor_available: true, |
Jooyung Han | e3cf41a | 2020-04-30 04:22:22 +0900 | [diff] [blame] | 4 | min_sdk_version: "29", |
| 5 | |
Pawin Vongmasa | 255735a | 2017-07-19 11:24:56 -0700 | [diff] [blame] | 6 | export_include_dirs: ["include"], |
Chong Zhang | 181e695 | 2019-10-09 13:23:39 -0700 | [diff] [blame] | 7 | header_libs: [ |
Chih-Hung Hsieh | 38bdd65 | 2018-09-13 14:26:05 -0700 | [diff] [blame] | 8 | "libbase_headers", |
Pawin Vongmasa | 4c7a5b9 | 2018-03-30 18:53:29 -0700 | [diff] [blame] | 9 | "libgui_headers", |
Pawin Vongmasa | 255735a | 2017-07-19 11:24:56 -0700 | [diff] [blame] | 10 | "libstagefright_headers", |
| 11 | "media_plugin_headers", |
| 12 | ], |
| 13 | export_header_lib_headers: [ |
Pawin Vongmasa | 4c7a5b9 | 2018-03-30 18:53:29 -0700 | [diff] [blame] | 14 | "libgui_headers", |
Pawin Vongmasa | 255735a | 2017-07-19 11:24:56 -0700 | [diff] [blame] | 15 | "libstagefright_headers", |
| 16 | "media_plugin_headers", |
| 17 | ], |
Steven Moreland | bf0cfe7 | 2017-04-14 04:12:13 -0700 | [diff] [blame] | 18 | } |
| 19 | |
S Vasudev Prasad | c2c91db | 2020-04-27 15:05:15 +0530 | [diff] [blame] | 20 | cc_library_headers { |
| 21 | name: "libmedia_datasource_headers", |
| 22 | export_include_dirs: ["include"], |
| 23 | host_supported: true, |
| 24 | target: { |
| 25 | darwin: { |
| 26 | enabled: false, |
| 27 | }, |
| 28 | }, |
Jiyong Park | 995b936 | 2020-05-04 20:22:12 +0900 | [diff] [blame] | 29 | apex_available: [ |
| 30 | "//apex_available:platform", |
| 31 | "com.android.media", |
| 32 | ], |
Jooyung Han | a680e7a | 2020-06-03 15:52:42 +0900 | [diff] [blame] | 33 | min_sdk_version: "29", |
S Vasudev Prasad | c2c91db | 2020-04-27 15:05:15 +0530 | [diff] [blame] | 34 | } |
| 35 | |
Dan Willemsen | faeab0f | 2018-09-14 21:17:46 -0700 | [diff] [blame] | 36 | filegroup { |
| 37 | name: "libmedia_omx_aidl", |
| 38 | srcs: [ |
Dan Willemsen | faeab0f | 2018-09-14 21:17:46 -0700 | [diff] [blame] | 39 | "aidl/android/IOMXBufferSource.aidl", |
| 40 | ], |
| 41 | path: "aidl", |
| 42 | } |
| 43 | |
Marco Nelissen | dab79b3 | 2019-11-18 08:25:47 -0800 | [diff] [blame] | 44 | filegroup { |
| 45 | name: "mediaextractorservice_aidl", |
| 46 | srcs: [ |
| 47 | "aidl/android/IMediaExtractorService.aidl", |
| 48 | ], |
| 49 | path: "aidl", |
| 50 | } |
| 51 | |
Amy Zhang | b94ef88 | 2020-06-08 21:38:53 -0700 | [diff] [blame] | 52 | filegroup { |
| 53 | name: "resourcemanager_aidl", |
Chong Zhang | 181e695 | 2019-10-09 13:23:39 -0700 | [diff] [blame] | 54 | srcs: [ |
| 55 | "aidl/android/media/IResourceManagerClient.aidl", |
| 56 | "aidl/android/media/IResourceManagerService.aidl", |
| 57 | "aidl/android/media/MediaResourceType.aidl", |
| 58 | "aidl/android/media/MediaResourceSubType.aidl", |
| 59 | "aidl/android/media/MediaResourceParcel.aidl", |
| 60 | "aidl/android/media/MediaResourcePolicyParcel.aidl", |
| 61 | ], |
Amy Zhang | b94ef88 | 2020-06-08 21:38:53 -0700 | [diff] [blame] | 62 | path: "aidl", |
| 63 | } |
| 64 | |
| 65 | aidl_interface { |
| 66 | name: "resourcemanager_aidl_interface", |
| 67 | unstable: true, |
| 68 | local_include_dir: "aidl", |
| 69 | srcs: [ |
| 70 | ":resourcemanager_aidl", |
| 71 | ], |
Chong Zhang | 181e695 | 2019-10-09 13:23:39 -0700 | [diff] [blame] | 72 | } |
| 73 | |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 74 | cc_library_shared { |
| 75 | name: "libmedia_omx", |
| 76 | vendor_available: true, |
| 77 | vndk: { |
| 78 | enabled: true, |
| 79 | }, |
Jiyong Park | fcd1537 | 2018-04-09 12:13:06 +0900 | [diff] [blame] | 80 | double_loadable: true, |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 81 | |
| 82 | srcs: [ |
Dan Willemsen | faeab0f | 2018-09-14 21:17:46 -0700 | [diff] [blame] | 83 | ":libmedia_omx_aidl", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 84 | |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 85 | "IOMX.cpp", |
| 86 | "MediaCodecBuffer.cpp", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 87 | "OMXBuffer.cpp", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 88 | "omx/1.0/WOmxBufferSource.cpp", |
| 89 | "omx/1.0/WOmxNode.cpp", |
| 90 | "omx/1.0/WOmxObserver.cpp", |
| 91 | ], |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 92 | |
| 93 | aidl: { |
| 94 | local_include_dirs: ["aidl"], |
| 95 | export_aidl_headers: true, |
| 96 | }, |
Marco Nelissen | cf90b49 | 2019-09-26 11:20:54 -0700 | [diff] [blame] | 97 | |
Chong Zhang | 0fe4c47 | 2019-04-08 21:51:46 +0000 | [diff] [blame] | 98 | local_include_dirs: [ |
| 99 | "include", |
| 100 | ], |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 101 | |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 102 | shared_libs: [ |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 103 | "android.hidl.token@1.0-utils", |
| 104 | "android.hardware.media.omx@1.0", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 105 | "libbinder", |
| 106 | "libcutils", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 107 | "libhidlbase", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 108 | "liblog", |
| 109 | "libstagefright_foundation", |
| 110 | "libui", |
| 111 | "libutils", |
| 112 | ], |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 113 | |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 114 | export_shared_lib_headers: [ |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 115 | "android.hidl.token@1.0-utils", |
| 116 | "android.hardware.media.omx@1.0", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 117 | "libstagefright_foundation", |
| 118 | "libui", |
| 119 | ], |
| 120 | |
| 121 | header_libs: [ |
Chong Zhang | 0fe4c47 | 2019-04-08 21:51:46 +0000 | [diff] [blame] | 122 | "libstagefright_headers", |
| 123 | "media_plugin_headers", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 124 | ], |
| 125 | |
| 126 | export_header_lib_headers: [ |
Chong Zhang | 0fe4c47 | 2019-04-08 21:51:46 +0000 | [diff] [blame] | 127 | "libstagefright_headers", |
| 128 | "media_plugin_headers", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 129 | ], |
| 130 | |
| 131 | export_include_dirs: [ |
| 132 | "aidl", |
Chong Zhang | 0fe4c47 | 2019-04-08 21:51:46 +0000 | [diff] [blame] | 133 | "include", |
| 134 | ], |
| 135 | |
| 136 | cflags: [ |
| 137 | "-Werror", |
| 138 | "-Wno-error=deprecated-declarations", |
| 139 | "-Wall", |
| 140 | ], |
| 141 | |
| 142 | sanitize: { |
| 143 | misc_undefined: [ |
| 144 | "unsigned-integer-overflow", |
| 145 | "signed-integer-overflow", |
| 146 | ], |
| 147 | cfi: true, |
| 148 | }, |
| 149 | } |
| 150 | |
Chong Zhang | 0fe4c47 | 2019-04-08 21:51:46 +0000 | [diff] [blame] | 151 | cc_library_shared { |
| 152 | name: "libmedia_omx_client", |
| 153 | |
| 154 | srcs: [ |
| 155 | "omx/1.0/WOmx.cpp", |
| 156 | ], |
| 157 | |
| 158 | local_include_dirs: [ |
| 159 | "include", |
| 160 | ], |
| 161 | |
| 162 | shared_libs: [ |
| 163 | "libbinder", |
| 164 | "libcutils", |
| 165 | "libgui", |
| 166 | "libhidlbase", |
Chong Zhang | 0fe4c47 | 2019-04-08 21:51:46 +0000 | [diff] [blame] | 167 | "liblog", |
| 168 | "libmedia_omx", |
| 169 | "libstagefright_foundation", |
| 170 | "libui", |
| 171 | "libutils", |
| 172 | ], |
| 173 | |
| 174 | export_shared_lib_headers: [ |
| 175 | "libgui", |
| 176 | "libmedia_omx", |
| 177 | "libstagefright_foundation", |
| 178 | "libui", |
| 179 | ], |
| 180 | |
| 181 | header_libs: [ |
| 182 | "libstagefright_headers", |
| 183 | "media_plugin_headers", |
| 184 | ], |
| 185 | |
| 186 | export_header_lib_headers: [ |
| 187 | "libstagefright_headers", |
| 188 | "media_plugin_headers", |
| 189 | ], |
| 190 | |
| 191 | export_include_dirs: [ |
| 192 | "include", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 193 | ], |
| 194 | |
| 195 | cflags: [ |
| 196 | "-Werror", |
| 197 | "-Wno-error=deprecated-declarations", |
| 198 | "-Wall", |
| 199 | ], |
| 200 | |
| 201 | sanitize: { |
| 202 | misc_undefined: [ |
| 203 | "unsigned-integer-overflow", |
| 204 | "signed-integer-overflow", |
| 205 | ], |
| 206 | cfi: true, |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 207 | }, |
| 208 | } |
| 209 | |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 210 | cc_library_static { |
| 211 | name: "libmedia_midiiowrapper", |
| 212 | |
Jooyung Han | e3cf41a | 2020-04-30 04:22:22 +0900 | [diff] [blame] | 213 | min_sdk_version: "29", |
| 214 | |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 215 | srcs: ["MidiIoWrapper.cpp"], |
| 216 | |
| 217 | static_libs: [ |
Marco Nelissen | 1ba10c4 | 2020-04-22 15:41:43 -0700 | [diff] [blame] | 218 | "libsonivoxwithoutjet", |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 219 | ], |
| 220 | |
Marco Nelissen | 5dcf85a | 2018-10-11 09:49:02 -0700 | [diff] [blame] | 221 | header_libs: [ |
S Vasudev Prasad | 62006dd | 2020-03-23 14:15:59 +0530 | [diff] [blame] | 222 | "libmedia_datasource_headers", |
Marco Nelissen | 5dcf85a | 2018-10-11 09:49:02 -0700 | [diff] [blame] | 223 | "media_ndk_headers", |
| 224 | ], |
| 225 | |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 226 | cflags: [ |
| 227 | "-Werror", |
| 228 | "-Wno-error=deprecated-declarations", |
| 229 | "-Wall", |
| 230 | ], |
| 231 | |
| 232 | sanitize: { |
| 233 | misc_undefined: [ |
| 234 | "unsigned-integer-overflow", |
| 235 | "signed-integer-overflow", |
| 236 | ], |
| 237 | cfi: true, |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 238 | }, |
S Vasudev Prasad | 62006dd | 2020-03-23 14:15:59 +0530 | [diff] [blame] | 239 | |
| 240 | host_supported: true, |
| 241 | |
| 242 | target: { |
| 243 | darwin: { |
| 244 | enabled: false, |
| 245 | }, |
| 246 | }, |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 247 | } |
| 248 | |
Dongwon Kang | 23a180b | 2019-09-23 17:48:14 -0700 | [diff] [blame] | 249 | cc_library_shared { |
| 250 | name: "libmedia_codeclist", |
| 251 | |
| 252 | srcs: [ |
| 253 | "IMediaCodecList.cpp", |
| 254 | "MediaCodecInfo.cpp", |
| 255 | ], |
| 256 | |
| 257 | local_include_dirs: [ |
| 258 | "include", |
| 259 | ], |
| 260 | |
| 261 | shared_libs: [ |
| 262 | "android.hardware.media.omx@1.0", |
| 263 | "libbinder", |
| 264 | "liblog", |
| 265 | "libstagefright_foundation", |
| 266 | "libutils", |
| 267 | ], |
| 268 | |
| 269 | include_dirs: [ |
| 270 | "system/libhidl/transport/token/1.0/utils/include", |
| 271 | ], |
| 272 | |
| 273 | export_include_dirs: [ |
| 274 | "include", |
| 275 | ], |
| 276 | |
| 277 | cflags: [ |
| 278 | "-Werror", |
| 279 | "-Wno-error=deprecated-declarations", |
| 280 | "-Wall", |
| 281 | ], |
| 282 | |
| 283 | sanitize: { |
| 284 | misc_undefined: [ |
| 285 | "unsigned-integer-overflow", |
| 286 | "signed-integer-overflow", |
| 287 | ], |
| 288 | cfi: true, |
| 289 | }, |
| 290 | } |
| 291 | |
Wei Jia | 4049f13 | 2018-01-22 10:37:31 -0800 | [diff] [blame] | 292 | cc_library { |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 293 | name: "libmedia", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 294 | |
| 295 | srcs: [ |
Marco Nelissen | dab79b3 | 2019-11-18 08:25:47 -0800 | [diff] [blame] | 296 | ":mediaextractorservice_aidl", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 297 | "IDataSource.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 298 | "BufferingSettings.cpp", |
| 299 | "mediaplayer.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 300 | "IMediaHTTPConnection.cpp", |
| 301 | "IMediaHTTPService.cpp", |
| 302 | "IMediaExtractor.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 303 | "IMediaPlayerService.cpp", |
| 304 | "IMediaPlayerClient.cpp", |
| 305 | "IMediaRecorderClient.cpp", |
| 306 | "IMediaPlayer.cpp", |
| 307 | "IMediaRecorder.cpp", |
| 308 | "IMediaSource.cpp", |
| 309 | "IRemoteDisplay.cpp", |
| 310 | "IRemoteDisplayClient.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 311 | "IStreamSource.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 312 | "Metadata.cpp", |
| 313 | "mediarecorder.cpp", |
| 314 | "IMediaMetadataRetriever.cpp", |
| 315 | "mediametadataretriever.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 316 | "MediaScanner.cpp", |
| 317 | "MediaScannerClient.cpp", |
| 318 | "CharacterEncodingDetector.cpp", |
| 319 | "IMediaDeathNotifier.cpp", |
| 320 | "MediaProfiles.cpp", |
| 321 | "MediaResource.cpp", |
| 322 | "MediaResourcePolicy.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 323 | "StringArray.cpp", |
Marco Nelissen | 98603d8 | 2018-07-17 11:06:55 -0700 | [diff] [blame] | 324 | "NdkMediaFormatPriv.cpp", |
Marco Nelissen | 5dcf85a | 2018-10-11 09:49:02 -0700 | [diff] [blame] | 325 | "NdkMediaErrorPriv.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 326 | ], |
| 327 | |
Dongwon Kang | 3e6d245 | 2017-06-29 15:21:53 -0700 | [diff] [blame] | 328 | aidl: { |
| 329 | local_include_dirs: ["aidl"], |
| 330 | export_aidl_headers: true, |
| 331 | }, |
| 332 | |
Pawin Vongmasa | 4c7a5b9 | 2018-03-30 18:53:29 -0700 | [diff] [blame] | 333 | header_libs: [ |
| 334 | "libstagefright_headers", |
Marco Nelissen | 5dcf85a | 2018-10-11 09:49:02 -0700 | [diff] [blame] | 335 | "media_ndk_headers", |
Orion Hodson | d3fd1ae | 2020-04-03 09:42:02 +0100 | [diff] [blame] | 336 | "jni_headers", |
Pawin Vongmasa | 4c7a5b9 | 2018-03-30 18:53:29 -0700 | [diff] [blame] | 337 | ], |
| 338 | |
| 339 | export_header_lib_headers: [ |
| 340 | "libstagefright_headers", |
Marco Nelissen | 5dcf85a | 2018-10-11 09:49:02 -0700 | [diff] [blame] | 341 | "media_ndk_headers", |
Orion Hodson | d3fd1ae | 2020-04-03 09:42:02 +0100 | [diff] [blame] | 342 | "jni_headers", |
Pawin Vongmasa | 4c7a5b9 | 2018-03-30 18:53:29 -0700 | [diff] [blame] | 343 | ], |
| 344 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 345 | shared_libs: [ |
Lajos Molnar | 79c49ae | 2018-05-24 23:40:20 -0700 | [diff] [blame] | 346 | "android.hidl.token@1.0-utils", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 347 | "liblog", |
| 348 | "libcutils", |
Suren Baghdasaryan | 7435e7d | 2018-12-19 17:09:28 -0800 | [diff] [blame] | 349 | "libprocessgroup", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 350 | "libutils", |
| 351 | "libbinder", |
Chong Zhang | fdd512a | 2019-11-22 11:03:14 -0800 | [diff] [blame] | 352 | "libbinder_ndk", |
Marco Nelissen | 1ba10c4 | 2020-04-22 15:41:43 -0700 | [diff] [blame] | 353 | //"libsonivox", |
Victor Chang | b6826d9 | 2018-11-20 19:11:07 +0000 | [diff] [blame] | 354 | "libandroidicu", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 355 | "libexpat", |
| 356 | "libcamera_client", |
| 357 | "libstagefright_foundation", |
| 358 | "libgui", |
| 359 | "libdl", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 360 | "libaudioclient", |
Dongwon Kang | 23a180b | 2019-09-23 17:48:14 -0700 | [diff] [blame] | 361 | "libmedia_codeclist", |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 362 | "libmedia_omx", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 363 | ], |
| 364 | |
| 365 | export_shared_lib_headers: [ |
Ivan Lozano | ff6900d | 2017-08-01 15:47:38 -0700 | [diff] [blame] | 366 | "libaudioclient", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 367 | "libbinder", |
Victor Chang | b6826d9 | 2018-11-20 19:11:07 +0000 | [diff] [blame] | 368 | "libandroidicu", |
Marco Nelissen | 1ba10c4 | 2020-04-22 15:41:43 -0700 | [diff] [blame] | 369 | //"libsonivox", |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 370 | "libmedia_omx", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 371 | ], |
| 372 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 373 | static_libs: [ |
Chong Zhang | fdd512a | 2019-11-22 11:03:14 -0800 | [diff] [blame] | 374 | "resourcemanager_aidl_interface-ndk_platform", |
Chong Zhang | 181e695 | 2019-10-09 13:23:39 -0700 | [diff] [blame] | 375 | ], |
| 376 | |
| 377 | export_static_lib_headers: [ |
Chong Zhang | fdd512a | 2019-11-22 11:03:14 -0800 | [diff] [blame] | 378 | "resourcemanager_aidl_interface-ndk_platform", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 379 | ], |
| 380 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 381 | export_include_dirs: [ |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 382 | "include", |
| 383 | ], |
Pawin Vongmasa | 255735a | 2017-07-19 11:24:56 -0700 | [diff] [blame] | 384 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 385 | cflags: [ |
| 386 | "-Werror", |
| 387 | "-Wno-error=deprecated-declarations", |
| 388 | "-Wall", |
| 389 | ], |
| 390 | |
Marco Nelissen | 7ffa062 | 2017-12-15 16:07:12 -0800 | [diff] [blame] | 391 | version_script: "exports.lds", |
| 392 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 393 | sanitize: { |
| 394 | misc_undefined: [ |
| 395 | "unsigned-integer-overflow", |
| 396 | "signed-integer-overflow", |
| 397 | ], |
| 398 | cfi: true, |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 399 | }, |
| 400 | } |
S Vasudev Prasad | 6a8a8dd | 2020-04-21 14:42:14 +0530 | [diff] [blame] | 401 | |
| 402 | cc_library_static { |
| 403 | name: "libmedia_ndkformatpriv", |
| 404 | |
| 405 | host_supported: true, |
| 406 | |
| 407 | srcs: [ |
| 408 | "NdkMediaFormatPriv.cpp", |
| 409 | "NdkMediaErrorPriv.cpp", |
| 410 | ], |
| 411 | |
| 412 | header_libs: [ |
| 413 | "libstagefright_foundation_headers", |
| 414 | "libstagefright_headers", |
| 415 | "media_ndk_headers", |
| 416 | ], |
| 417 | |
| 418 | cflags: [ |
| 419 | "-DEXPORT=__attribute__((visibility(\"default\")))", |
| 420 | "-Werror", |
| 421 | "-Wall", |
| 422 | ], |
| 423 | |
| 424 | export_include_dirs: ["include"], |
| 425 | |
| 426 | target: { |
| 427 | darwin: { |
| 428 | enabled: false, |
| 429 | }, |
| 430 | }, |
| 431 | |
| 432 | apex_available: ["com.android.media"], |
| 433 | } |