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