Bob Badour | e155dce | 2021-02-12 15:35:42 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
Bob Badour | abed605 | 2022-01-19 15:46:36 -0800 | [diff] [blame] | 3 | default_applicable_licenses: [ |
| 4 | "Android-Apache-2.0", |
| 5 | "frameworks_wilhelm_license", // MIT |
| 6 | ], |
Bob Badour | e155dce | 2021-02-12 15:35:42 -0800 | [diff] [blame] | 7 | } |
| 8 | |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 9 | cc_library_static { |
| 10 | name: "libOpenSLESUT", |
| 11 | |
| 12 | srcs: [ |
| 13 | "assert.cpp", |
| 14 | "ut/OpenSLESUT.c", |
| 15 | "ut/slesutResult.c", |
| 16 | ], |
| 17 | |
Orion Hodson | e09babb | 2020-04-08 20:18:15 +0100 | [diff] [blame] | 18 | header_libs: [ |
| 19 | "jni_headers", |
| 20 | "libOpenSLES_headers", |
| 21 | ], |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 22 | export_header_lib_headers: ["libOpenSLES_headers"], |
| 23 | export_include_dirs: ["ut"], |
| 24 | |
| 25 | cflags: [ |
| 26 | "-fvisibility=hidden", |
| 27 | "-UNDEBUG", |
| 28 | |
| 29 | "-Wall", |
| 30 | "-Werror", |
| 31 | ], |
| 32 | } |
| 33 | |
| 34 | cc_library_static { |
| 35 | name: "libopensles_helper", |
| 36 | |
| 37 | header_libs: ["libOpenSLES_headers"], |
| 38 | export_header_lib_headers: ["libOpenSLES_headers"], |
| 39 | |
| 40 | cflags: [ |
| 41 | "-Wno-initializer-overrides", |
| 42 | //"-Wno-missing-field-initializers", |
| 43 | // optional, see comments in MPH_to.c: |
| 44 | //"-DUSE_DESIGNATED_INITIALIZERS", |
| 45 | //"-S", |
| 46 | // and also see ../tools/mphgen/Makefile |
| 47 | "-DUSE_DESIGNATED_INITIALIZERS", |
| 48 | "-UNDEBUG", |
| 49 | |
| 50 | "-Wall", |
| 51 | "-Werror", |
| 52 | ], |
| 53 | |
| 54 | srcs: [ |
| 55 | "assert.cpp", |
| 56 | "MPH_to.c", |
| 57 | "handlers.c", |
| 58 | ], |
| 59 | } |
| 60 | |
| 61 | |
| 62 | cc_library_shared { |
| 63 | name: "libwilhelm", |
| 64 | |
| 65 | cflags: [ |
| 66 | // do not claim support for any OpenSL ES or OpenMAX AL profiles |
| 67 | "-DUSE_PROFILES=0", |
| 68 | |
| 69 | // enable API logging; details are set separately by SL_TRACE_DEFAULT below |
| 70 | // or -UUSE_TRACE to disable API logging |
| 71 | "-DUSE_TRACE", |
| 72 | |
| 73 | // see Configuration.h for USE_DEBUG |
| 74 | |
| 75 | // enable assert() to do runtime checking |
| 76 | // or -DNDEBUG for no runtime checking |
| 77 | "-UNDEBUG", |
| 78 | |
| 79 | // select the level of log messages |
| 80 | // or -DUSE_LOG=SLAndroidLogLevel_Verbose for verbose logging |
| 81 | "-DUSE_LOG=SLAndroidLogLevel_Info", |
| 82 | |
| 83 | // log all API entries and exits (also requires Debug or Verbose log level) |
| 84 | // (otherwise a warning log on error results only) |
| 85 | //"-DSL_TRACE_DEFAULT=SL_TRACE_ALL", |
| 86 | |
| 87 | // Reduce size of .so and hide internal global symbols |
| 88 | "-fvisibility=hidden", |
| 89 | "-DLI_API=__attribute__((visibility(\"default\")))", |
| 90 | |
| 91 | "-Wno-multichar", |
| 92 | "-Wno-invalid-offsetof", |
| 93 | |
| 94 | "-Wall", |
| 95 | "-Wextra", |
| 96 | "-Wno-unused-parameter", |
| 97 | "-Werror", |
| 98 | ], |
| 99 | |
Marco Nelissen | 421a8db | 2018-10-09 15:17:52 -0700 | [diff] [blame] | 100 | ldflags: [ |
| 101 | "-Wl,--exclude-libs,ALL", |
| 102 | ], |
| 103 | |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 104 | product_variables: { |
| 105 | platform_sdk_version: { |
| 106 | // API level |
| 107 | cflags: ["-DPLATFORM_SDK_VERSION=%d"], |
| 108 | }, |
| 109 | }, |
| 110 | |
| 111 | srcs: [ |
| 112 | "OpenSLES_IID.cpp", |
| 113 | "assert.cpp", |
| 114 | "classes.cpp", |
| 115 | "data.cpp", |
| 116 | "devices.cpp", |
| 117 | "entry.cpp", |
| 118 | "handler_bodies.cpp", |
| 119 | "trace.cpp", |
| 120 | "locks.cpp", |
| 121 | "sles.cpp", |
| 122 | "sl_iid.cpp", |
| 123 | "sllog.cpp", |
| 124 | "ThreadPool.cpp", |
| 125 | "android/AudioPlayer_to_android.cpp", |
| 126 | "android/AudioRecorder_to_android.cpp", |
| 127 | "android/MediaPlayer_to_android.cpp", |
| 128 | "android/OutputMix_to_android.cpp", |
| 129 | "android/VideoCodec_to_android.cpp", |
| 130 | "android/BufferQueueSource.cpp", |
| 131 | "android/CallbackProtector.cpp", |
| 132 | "android/AacBqToPcmCbRenderer.cpp", |
| 133 | "android/android_AudioSfDecoder.cpp", |
| 134 | "android/android_AudioToCbRenderer.cpp", |
| 135 | "android/android_GenericMediaPlayer.cpp", |
| 136 | "android/android_GenericPlayer.cpp", |
| 137 | "android/android_LocAVPlayer.cpp", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 138 | "android/android_StreamPlayer.cpp", |
| 139 | "android/android_Effect.cpp", |
| 140 | "android/util/AacAdtsExtractor.cpp", |
| 141 | "android/channels.cpp", |
| 142 | "autogen/IID_to_MPH.cpp", |
| 143 | "objects/C3DGroup.cpp", |
| 144 | "objects/CAudioPlayer.cpp", |
| 145 | "objects/CAudioRecorder.cpp", |
| 146 | "objects/CEngine.cpp", |
| 147 | "objects/COutputMix.cpp", |
| 148 | "objects/CMediaPlayer.cpp", |
| 149 | "itf/IAndroidBufferQueue.cpp", |
| 150 | "itf/IAndroidConfiguration.cpp", |
| 151 | "itf/IAndroidEffect.cpp", |
| 152 | "itf/IAndroidEffectCapabilities.cpp", |
| 153 | "itf/IAndroidEffectSend.cpp", |
| 154 | "itf/IAcousticEchoCancellation.cpp", |
| 155 | "itf/IAutomaticGainControl.cpp", |
| 156 | "itf/IBassBoost.cpp", |
| 157 | "itf/IBufferQueue.cpp", |
| 158 | "itf/IDynamicInterfaceManagement.cpp", |
| 159 | "itf/IEffectSend.cpp", |
| 160 | "itf/IEngine.cpp", |
| 161 | "itf/IEngineCapabilities.cpp", |
| 162 | "itf/IEnvironmentalReverb.cpp", |
| 163 | "itf/IEqualizer.cpp", |
| 164 | "itf/IMetadataExtraction.cpp", |
| 165 | "itf/INoiseSuppression.cpp", |
| 166 | "itf/IMuteSolo.cpp", |
| 167 | "itf/IObject.cpp", |
| 168 | "itf/IOutputMix.cpp", |
| 169 | "itf/IPlay.cpp", |
| 170 | "itf/IPlaybackRate.cpp", |
| 171 | "itf/IPrefetchStatus.cpp", |
| 172 | "itf/IPresetReverb.cpp", |
| 173 | "itf/IRecord.cpp", |
| 174 | "itf/ISeek.cpp", |
| 175 | "itf/IStreamInformation.cpp", |
| 176 | "itf/IVideoDecoderCapabilities.cpp", |
| 177 | "itf/IVirtualizer.cpp", |
| 178 | "itf/IVolume.cpp", |
| 179 | |
| 180 | /* unused source files: |
| 181 | "sync.cpp", |
| 182 | "itf/I3DCommit.cpp", |
| 183 | "itf/I3DDoppler.cpp", |
| 184 | "itf/I3DGrouping.cpp", |
| 185 | "itf/I3DLocation.cpp", |
| 186 | "itf/I3DMacroscopic.cpp", |
| 187 | "itf/I3DSource.cpp", |
| 188 | "itf/IAudioDecoderCapabilities.cpp", |
| 189 | "itf/IAudioEncoder.cpp", |
| 190 | "itf/IAudioEncoderCapabilities.cpp", |
| 191 | "itf/IAudioIODeviceCapabilities.cpp", |
| 192 | "itf/IDeviceVolume.cpp", |
| 193 | "itf/IDynamicSource.cpp", |
| 194 | "itf/ILEDArray.cpp", |
| 195 | "itf/IMIDIMessage.cpp", |
| 196 | "itf/IMIDIMuteSolo.cpp", |
| 197 | "itf/IMIDITempo.cpp", |
| 198 | "itf/IMIDITime.cpp", |
| 199 | "itf/IMetadataTraversal.cpp", |
| 200 | "itf/IPitch.cpp", |
| 201 | "itf/IRatePitch.cpp", |
| 202 | "itf/IThreadSync.cpp", |
| 203 | "itf/IVibra.cpp", |
| 204 | "itf/IVisualization.cpp", |
| 205 | */ |
| 206 | ], |
| 207 | |
Pawin Vongmasa | 18ddf4c | 2017-08-18 23:43:45 -0700 | [diff] [blame] | 208 | header_libs: [ |
Orion Hodson | e09babb | 2020-04-08 20:18:15 +0100 | [diff] [blame] | 209 | "jni_headers", |
Marco Nelissen | 312aad7 | 2020-01-10 16:30:40 -0800 | [diff] [blame] | 210 | "libmediametrics_headers", |
Pawin Vongmasa | 18ddf4c | 2017-08-18 23:43:45 -0700 | [diff] [blame] | 211 | "libOpenSLES_headers", |
Ray Essick | 4dd1862 | 2022-01-15 12:23:46 -0800 | [diff] [blame] | 212 | "libstagefright_mpeg2support_headers", |
Pawin Vongmasa | 18ddf4c | 2017-08-18 23:43:45 -0700 | [diff] [blame] | 213 | "media_plugin_headers", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 214 | ], |
| 215 | |
Pawin Vongmasa | 18ddf4c | 2017-08-18 23:43:45 -0700 | [diff] [blame] | 216 | export_header_lib_headers: [ |
Orion Hodson | e09babb | 2020-04-08 20:18:15 +0100 | [diff] [blame] | 217 | "jni_headers", |
Pawin Vongmasa | 18ddf4c | 2017-08-18 23:43:45 -0700 | [diff] [blame] | 218 | "libOpenSLES_headers", |
| 219 | "media_plugin_headers", |
| 220 | ], |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 221 | |
| 222 | static_libs: [ |
| 223 | "libopensles_helper", |
| 224 | "libOpenSLESUT", |
Dongwon Kang | 8c48e96 | 2018-01-29 09:01:57 -0800 | [diff] [blame] | 225 | "libstagefright_metadatautils", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 226 | ], |
| 227 | |
| 228 | shared_libs: [ |
Svet Ganov | 5e53f6b | 2021-05-20 16:11:47 +0000 | [diff] [blame] | 229 | "framework-permission-aidl-cpp", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 230 | "liblog", |
| 231 | "libutils", |
| 232 | "libmedia", |
Dongwon Kang | 3cabe1f | 2019-09-23 17:48:41 -0700 | [diff] [blame] | 233 | "libmedia_codeclist", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 234 | "libaudioclient", |
Eric Laurent | 44133e7 | 2021-06-07 14:34:25 +0200 | [diff] [blame] | 235 | "libaudioclient_aidl_conversion", |
Eric Laurent | 058acaf | 2019-11-13 12:26:55 -0800 | [diff] [blame] | 236 | "libaudiofoundation", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 237 | "libaudiomanager", |
| 238 | "libbinder", |
Marco Nelissen | 2fa05c4 | 2019-09-23 12:16:54 -0700 | [diff] [blame] | 239 | "libdatasource", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 240 | "libstagefright", |
| 241 | "libstagefright_foundation", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 242 | "libgui", |
| 243 | "libdl", |
| 244 | "libandroid_runtime", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 245 | "libstagefright_http_support", |
| 246 | ], |
Pawin Vongmasa | 18ddf4c | 2017-08-18 23:43:45 -0700 | [diff] [blame] | 247 | |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 248 | export_shared_lib_headers: [ |
| 249 | "libmedia", |
| 250 | "libstagefright", |
Eric Laurent | 17df18c | 2017-05-31 14:58:56 -0700 | [diff] [blame] | 251 | "libaudioclient", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 252 | ], |
| 253 | } |
| 254 | |
| 255 | cc_library_shared { |
| 256 | name: "libOpenSLES", |
| 257 | |
| 258 | srcs: [ |
| 259 | "sl_entry.cpp", |
| 260 | "sl_iid.cpp", |
| 261 | "assert.cpp", |
| 262 | ], |
| 263 | include_dirs: [ |
| 264 | "frameworks/native/include/media/openmax", |
| 265 | ], |
| 266 | |
| 267 | export_shared_lib_headers: ["libwilhelm"], |
| 268 | cflags: [ |
| 269 | "-DLI_API=", |
| 270 | "-fvisibility=hidden", |
| 271 | "-UNDEBUG", |
| 272 | "-DSL_API=__attribute__((visibility(\"default\")))", |
| 273 | |
| 274 | "-Wall", |
| 275 | "-Werror", |
| 276 | ], |
| 277 | shared_libs: [ |
| 278 | "libwilhelm", |
| 279 | "liblog", |
| 280 | "libnativewindow", |
| 281 | ], |
Marco Nelissen | 312aad7 | 2020-01-10 16:30:40 -0800 | [diff] [blame] | 282 | header_libs: [ |
| 283 | "libmediametrics_headers", |
| 284 | ], |
dimitry | 51cac32 | 2018-11-20 10:56:42 +0100 | [diff] [blame] | 285 | version_script: "libOpenSLES.map.txt", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 286 | } |
| 287 | |
| 288 | cc_library_shared { |
| 289 | name: "libOpenMAXAL", |
| 290 | |
| 291 | srcs: [ |
| 292 | "xa_entry.cpp", |
| 293 | "xa_iid.cpp", |
| 294 | "assert.cpp", |
| 295 | ], |
| 296 | include_dirs: [ |
| 297 | "frameworks/native/include/media/openmax", |
| 298 | ], |
| 299 | |
| 300 | export_shared_lib_headers: ["libwilhelm"], |
| 301 | cflags: [ |
| 302 | "-DLI_API=", |
| 303 | "-fvisibility=hidden", |
| 304 | "-UNDEBUG", |
| 305 | "-DXA_API=__attribute__((visibility(\"default\")))", |
| 306 | |
| 307 | "-Wall", |
| 308 | "-Werror", |
| 309 | ], |
| 310 | shared_libs: [ |
| 311 | "libwilhelm", |
| 312 | "liblog", |
| 313 | "libnativewindow", |
| 314 | ], |
Marco Nelissen | 312aad7 | 2020-01-10 16:30:40 -0800 | [diff] [blame] | 315 | header_libs: [ |
| 316 | "libmediametrics_headers", |
| 317 | ], |
dimitry | 51cac32 | 2018-11-20 10:56:42 +0100 | [diff] [blame] | 318 | version_script: "libOpenMAXAL.map.txt", |
Colin Cross | 2717c87 | 2017-05-08 14:44:19 -0700 | [diff] [blame] | 319 | } |