1 LOCAL_PATH:= $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_SRC_FILES := \ 6 assert.c \ 7 ut/OpenSLESUT.c \ 8 ut/slesutResult.c 9 10 LOCAL_C_INCLUDES:= \ 11 $(call include-path-for, wilhelm) 12 13 LOCAL_CFLAGS += -fvisibility=hidden -UNDEBUG 14 LOCAL_CFLAGS += -Wall -Werror 15 16 LOCAL_MODULE := libOpenSLESUT 17 18 include $(BUILD_STATIC_LIBRARY) 19 20 include $(CLEAR_VARS) 21 22 LOCAL_C_INCLUDES:= \ 23 $(call include-path-for, wilhelm) 24 25 LOCAL_CFLAGS += -Wno-initializer-overrides 26 # -Wno-missing-field-initializers 27 # optional, see comments in MPH_to.c: -DUSE_DESIGNATED_INITIALIZERS -S 28 # and also see ../tools/mphgen/Makefile 29 LOCAL_CFLAGS += -DUSE_DESIGNATED_INITIALIZERS -UNDEBUG 30 LOCAL_CFLAGS += -Wall -Werror 31 32 LOCAL_SRC_FILES:= \ 33 assert.c \ 34 MPH_to.c \ 35 handlers.c 36 37 LOCAL_MODULE:= libopensles_helper 38 39 include $(BUILD_STATIC_LIBRARY) 40 41 include $(CLEAR_VARS) 42 43 # do not claim support for any OpenSL ES or OpenMAX AL profiles 44 LOCAL_CFLAGS += -DUSE_PROFILES=0 45 46 # enable API logging; details are set separately by SL_TRACE_DEFAULT below 47 LOCAL_CFLAGS += -DUSE_TRACE 48 # or -UUSE_TRACE to disable API logging 49 50 # see Configuration.h for USE_DEBUG 51 52 # enable assert() to do runtime checking 53 LOCAL_CFLAGS += -UNDEBUG 54 # or -DNDEBUG for no runtime checking 55 56 # select the level of log messages 57 LOCAL_CFLAGS += -DUSE_LOG=SLAndroidLogLevel_Info 58 # or -DUSE_LOG=SLAndroidLogLevel_Verbose for verbose logging 59 60 # log all API entries and exits (also requires Debug or Verbose log level) 61 # LOCAL_CFLAGS += -DSL_TRACE_DEFAULT=SL_TRACE_ALL 62 # (otherwise a warning log on error results only) 63 64 # API level 65 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) 66 67 # Reduce size of .so and hide internal global symbols 68 LOCAL_CFLAGS += -fvisibility=hidden -DLI_API='__attribute__((visibility("default")))' 69 70 LOCAL_SRC_FILES:= \ 71 OpenSLES_IID.c \ 72 assert.c \ 73 classes.c \ 74 data.c \ 75 devices.c \ 76 entry.c \ 77 handler_bodies.c \ 78 trace.c \ 79 locks.c \ 80 sles.c \ 81 sl_iid.c \ 82 sllog.c \ 83 ThreadPool.c \ 84 android/AudioPlayer_to_android.cpp \ 85 android/AudioRecorder_to_android.cpp \ 86 android/MediaPlayer_to_android.cpp \ 87 android/OutputMix_to_android.cpp \ 88 android/VideoCodec_to_android.cpp \ 89 android/BufferQueueSource.cpp \ 90 android/CallbackProtector.cpp \ 91 android/AacBqToPcmCbRenderer.cpp \ 92 android/android_AudioSfDecoder.cpp \ 93 android/android_AudioToCbRenderer.cpp \ 94 android/android_GenericMediaPlayer.cpp\ 95 android/android_GenericPlayer.cpp \ 96 android/android_LocAVPlayer.cpp \ 97 android/android_StreamPlayer.cpp \ 98 android/android_Effect.cpp \ 99 android/util/AacAdtsExtractor.cpp \ 100 android/channels.c \ 101 autogen/IID_to_MPH.c \ 102 objects/C3DGroup.c \ 103 objects/CAudioPlayer.c \ 104 objects/CAudioRecorder.c \ 105 objects/CEngine.c \ 106 objects/COutputMix.c \ 107 objects/CMediaPlayer.c \ 108 itf/IAndroidBufferQueue.c \ 109 itf/IAndroidConfiguration.c \ 110 itf/IAndroidEffect.cpp \ 111 itf/IAndroidEffectCapabilities.c \ 112 itf/IAndroidEffectSend.c \ 113 itf/IAcousticEchoCancellation.c \ 114 itf/IAutomaticGainControl.c \ 115 itf/IBassBoost.c \ 116 itf/IBufferQueue.c \ 117 itf/IDynamicInterfaceManagement.c \ 118 itf/IEffectSend.c \ 119 itf/IEngine.c \ 120 itf/IEngineCapabilities.c \ 121 itf/IEnvironmentalReverb.c \ 122 itf/IEqualizer.c \ 123 itf/IMetadataExtraction.c \ 124 itf/INoiseSuppression.c \ 125 itf/IMuteSolo.c \ 126 itf/IObject.c \ 127 itf/IOutputMix.c \ 128 itf/IPlay.c \ 129 itf/IPlaybackRate.c \ 130 itf/IPrefetchStatus.c \ 131 itf/IPresetReverb.c \ 132 itf/IRecord.c \ 133 itf/ISeek.c \ 134 itf/IStreamInformation.cpp \ 135 itf/IVideoDecoderCapabilities.cpp \ 136 itf/IVirtualizer.c \ 137 itf/IVolume.c 138 139 EXCLUDE_SRC := \ 140 sync.c \ 141 itf/I3DCommit.c \ 142 itf/I3DDoppler.c \ 143 itf/I3DGrouping.c \ 144 itf/I3DLocation.c \ 145 itf/I3DMacroscopic.c \ 146 itf/I3DSource.c \ 147 itf/IAudioDecoderCapabilities.c \ 148 itf/IAudioEncoder.c \ 149 itf/IAudioEncoderCapabilities.c \ 150 itf/IAudioIODeviceCapabilities.c \ 151 itf/IDeviceVolume.c \ 152 itf/IDynamicSource.c \ 153 itf/ILEDArray.c \ 154 itf/IMIDIMessage.c \ 155 itf/IMIDIMuteSolo.c \ 156 itf/IMIDITempo.c \ 157 itf/IMIDITime.c \ 158 itf/IMetadataTraversal.c \ 159 itf/IPitch.c \ 160 itf/IRatePitch.c \ 161 itf/IThreadSync.c \ 162 itf/IVibra.c \ 163 itf/IVisualization.c 164 165 LOCAL_C_INCLUDES:= \ 166 $(call include-path-for, wilhelm) \ 167 frameworks/av/media/libstagefright \ 168 frameworks/av/media/libstagefright/include \ 169 frameworks/av/media/libstagefright/http \ 170 frameworks/native/include/media/openmax \ 171 $(call include-path-for, audio-effects) 172 173 LOCAL_CFLAGS += -x c++ -std=gnu++11 -Wno-multichar -Wno-invalid-offsetof 174 175 LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror 176 177 LOCAL_STATIC_LIBRARIES += \ 178 libopensles_helper \ 179 libOpenSLESUT 180 181 LOCAL_SHARED_LIBRARIES := \ 182 liblog \ 183 libutils \ 184 libmedia \ 185 libbinder \ 186 libstagefright \ 187 libstagefright_foundation \ 188 libcutils \ 189 libgui \ 190 libdl \ 191 libandroid_runtime 192 193 # For Brillo, we do not want this dependency as it significantly increases the 194 # size of the checkout. Also, the library is dependent on Java (which is not 195 # present in Brillo), so it doesn't really make sense to have it anyways. See 196 # b/24507845 for more details. 197 ifndef BRILLO 198 LOCAL_SHARED_LIBRARIES += \ 199 libstagefright_http_support 200 endif 201 202 LOCAL_MODULE := libwilhelm 203 LOCAL_MODULE_TAGS := optional 204 205 ifeq ($(TARGET_BUILD_VARIANT),userdebug) 206 LOCAL_CFLAGS += -DUSERDEBUG_BUILD=1 207 endif 208 209 include $(BUILD_SHARED_LIBRARY) 210 211 include $(CLEAR_VARS) 212 LOCAL_SRC_FILES := sl_entry.c sl_iid.c assert.c 213 LOCAL_C_INCLUDES:= \ 214 $(call include-path-for, wilhelm) \ 215 frameworks/av/media/libstagefright \ 216 frameworks/av/media/libstagefright/include \ 217 frameworks/native/include/media/openmax 218 LOCAL_MODULE := libOpenSLES 219 LOCAL_MODULE_TAGS := optional 220 LOCAL_CFLAGS += -x c++ -std=gnu++11 -DLI_API= -fvisibility=hidden -UNDEBUG \ 221 -DSL_API='__attribute__((visibility("default")))' 222 LOCAL_CFLAGS += -Wall -Werror 223 LOCAL_SHARED_LIBRARIES := libwilhelm liblog 224 include $(BUILD_SHARED_LIBRARY) 225 226 include $(CLEAR_VARS) 227 LOCAL_SRC_FILES := xa_entry.c xa_iid.c assert.c 228 LOCAL_C_INCLUDES:= \ 229 $(call include-path-for, wilhelm) \ 230 frameworks/av/media/libstagefright \ 231 frameworks/av/media/libstagefright/include \ 232 frameworks/native/include/media/openmax 233 LOCAL_MODULE := libOpenMAXAL 234 LOCAL_MODULE_TAGS := optional 235 LOCAL_CFLAGS += -x c++ -std=gnu++11 -DLI_API= -fvisibility=hidden -UNDEBUG \ 236 -DXA_API='__attribute__((visibility("default")))' 237 LOCAL_CFLAGS += -Wall -Werror 238 LOCAL_SHARED_LIBRARIES := libwilhelm liblog 239 include $(BUILD_SHARED_LIBRARY) 240