Android.mk revision 7107dd44ecaced736f370e60c7a8a50c5e4e1020
1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_SRC_FILES := \ 6 assert.c \ 7 ut/OpenSLESUT.c \ 8 ut/slesutResult.c 9 10LOCAL_C_INCLUDES:= \ 11 $(call include-path-for, wilhelm) 12 13LOCAL_CFLAGS += -fvisibility=hidden -UNDEBUG 14 15LOCAL_MODULE := libOpenSLESUT 16 17include $(BUILD_STATIC_LIBRARY) 18 19include $(CLEAR_VARS) 20 21LOCAL_C_INCLUDES:= \ 22 $(call include-path-for, wilhelm) 23 24LOCAL_CFLAGS += -Wno-override-init 25# -Wno-missing-field-initializers 26# optional, see comments in MPH_to.c: -DUSE_DESIGNATED_INITIALIZERS -S 27# and also see ../tools/mphgen/Makefile 28LOCAL_CFLAGS += -DUSE_DESIGNATED_INITIALIZERS -UNDEBUG 29 30LOCAL_SRC_FILES:= \ 31 assert.c \ 32 MPH_to.c \ 33 handlers.c 34 35LOCAL_MODULE:= libopensles_helper 36 37include $(BUILD_STATIC_LIBRARY) 38 39include $(CLEAR_VARS) 40 41# do not claim support for any OpenSL ES or OpenMAX AL profiles 42LOCAL_CFLAGS += -DUSE_PROFILES=0 43 44# enable API logging; details are set separately by SL_TRACE_DEFAULT below 45LOCAL_CFLAGS += -DUSE_TRACE 46# or -UUSE_TRACE to disable API logging 47 48# enable mutex deadlock detection 49LOCAL_CFLAGS += -DUSE_DEBUG 50# or -UUSE_DEBUG for no mutex deadlock detection 51 52# enable assert() to do runtime checking 53LOCAL_CFLAGS += -UNDEBUG 54# or -DNDEBUG for no runtime checking 55 56# select the level of log messages 57LOCAL_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 65LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) 66 67# Reduce size of .so and hide internal global symbols 68LOCAL_CFLAGS += -fvisibility=hidden -DLI_API='__attribute__((visibility("default")))' 69 70LOCAL_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 autogen/IID_to_MPH.c \ 101 objects/C3DGroup.c \ 102 objects/CAudioPlayer.c \ 103 objects/CAudioRecorder.c \ 104 objects/CEngine.c \ 105 objects/COutputMix.c \ 106 objects/CMediaPlayer.c \ 107 itf/IAndroidBufferQueue.c \ 108 itf/IAndroidConfiguration.c \ 109 itf/IAndroidEffect.cpp \ 110 itf/IAndroidEffectCapabilities.c \ 111 itf/IAndroidEffectSend.c \ 112 itf/IBassBoost.c \ 113 itf/IBufferQueue.c \ 114 itf/IDynamicInterfaceManagement.c \ 115 itf/IEffectSend.c \ 116 itf/IEngine.c \ 117 itf/IEngineCapabilities.c \ 118 itf/IEnvironmentalReverb.c \ 119 itf/IEqualizer.c \ 120 itf/IMetadataExtraction.c \ 121 itf/IMuteSolo.c \ 122 itf/IObject.c \ 123 itf/IOutputMix.c \ 124 itf/IPlay.c \ 125 itf/IPlaybackRate.c \ 126 itf/IPrefetchStatus.c \ 127 itf/IPresetReverb.c \ 128 itf/IRecord.c \ 129 itf/ISeek.c \ 130 itf/IStreamInformation.cpp \ 131 itf/IVideoDecoderCapabilities.cpp \ 132 itf/IVirtualizer.c \ 133 itf/IVolume.c 134 135EXCLUDE_SRC := \ 136 sync.c \ 137 itf/I3DCommit.c \ 138 itf/I3DDoppler.c \ 139 itf/I3DGrouping.c \ 140 itf/I3DLocation.c \ 141 itf/I3DMacroscopic.c \ 142 itf/I3DSource.c \ 143 itf/IAudioDecoderCapabilities.c \ 144 itf/IAudioEncoder.c \ 145 itf/IAudioEncoderCapabilities.c \ 146 itf/IAudioIODeviceCapabilities.c \ 147 itf/IDeviceVolume.c \ 148 itf/IDynamicSource.c \ 149 itf/ILEDArray.c \ 150 itf/IMIDIMessage.c \ 151 itf/IMIDIMuteSolo.c \ 152 itf/IMIDITempo.c \ 153 itf/IMIDITime.c \ 154 itf/IMetadataTraversal.c \ 155 itf/IPitch.c \ 156 itf/IRatePitch.c \ 157 itf/IThreadSync.c \ 158 itf/IVibra.c \ 159 itf/IVisualization.c 160 161LOCAL_C_INCLUDES:= \ 162 $(call include-path-for, wilhelm) \ 163 frameworks/av/media/libstagefright \ 164 frameworks/av/media/libstagefright/include \ 165 frameworks/native/include/media/openmax \ 166 $(call include-path-for, audio-effects) 167 168# __pthread_gettid 169LOCAL_C_INCLUDES += bionic/libc/private 170 171LOCAL_CFLAGS += -x c++ -Wno-multichar -Wno-invalid-offsetof 172 173LOCAL_STATIC_LIBRARIES += \ 174 libopensles_helper \ 175 libOpenSLESUT 176 177LOCAL_SHARED_LIBRARIES := \ 178 liblog \ 179 libutils \ 180 libmedia \ 181 libbinder \ 182 libstagefright \ 183 libstagefright_foundation \ 184 libcutils \ 185 libgui \ 186 libdl 187 188 189 190LOCAL_MODULE := libwilhelm 191LOCAL_MODULE_TAGS := optional 192 193ifeq ($(TARGET_BUILD_VARIANT),userdebug) 194 LOCAL_CFLAGS += -DUSERDEBUG_BUILD=1 195endif 196 197LOCAL_PRELINK_MODULE := false 198include $(BUILD_SHARED_LIBRARY) 199 200include $(CLEAR_VARS) 201LOCAL_SRC_FILES := sl_entry.c sl_iid.c assert.c 202LOCAL_C_INCLUDES:= \ 203 $(call include-path-for, wilhelm) \ 204 frameworks/av/media/libstagefright \ 205 frameworks/av/media/libstagefright/include \ 206 frameworks/native/include/media/openmax 207LOCAL_MODULE := libOpenSLES 208LOCAL_PRELINK_MODULE := false 209LOCAL_MODULE_TAGS := optional 210LOCAL_CFLAGS += -x c++ -DLI_API= -fvisibility=hidden -UNDEBUG \ 211 -DSL_API='__attribute__((visibility("default")))' 212LOCAL_SHARED_LIBRARIES := libwilhelm liblog 213include $(BUILD_SHARED_LIBRARY) 214 215include $(CLEAR_VARS) 216LOCAL_SRC_FILES := xa_entry.c xa_iid.c assert.c 217LOCAL_C_INCLUDES:= \ 218 $(call include-path-for, wilhelm) \ 219 frameworks/av/media/libstagefright \ 220 frameworks/av/media/libstagefright/include \ 221 frameworks/native/include/media/openmax 222LOCAL_MODULE := libOpenMAXAL 223LOCAL_PRELINK_MODULE := false 224LOCAL_MODULE_TAGS := optional 225LOCAL_CFLAGS += -x c++ -DLI_API= -fvisibility=hidden -UNDEBUG \ 226 -DXA_API='__attribute__((visibility("default")))' 227LOCAL_SHARED_LIBRARIES := libwilhelm liblog 228include $(BUILD_SHARED_LIBRARY) 229