• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14LOCAL_CFLAGS += -Wall -Werror
15
16LOCAL_MODULE := libOpenSLESUT
17
18include $(BUILD_STATIC_LIBRARY)
19
20include $(CLEAR_VARS)
21
22LOCAL_C_INCLUDES:= \
23        $(call include-path-for, wilhelm)
24
25LOCAL_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
29LOCAL_CFLAGS += -DUSE_DESIGNATED_INITIALIZERS -UNDEBUG
30LOCAL_CFLAGS += -Wall -Werror
31
32LOCAL_SRC_FILES:=                     \
33        assert.c \
34        MPH_to.c \
35        handlers.c
36
37LOCAL_MODULE:= libopensles_helper
38
39include $(BUILD_STATIC_LIBRARY)
40
41include $(CLEAR_VARS)
42
43# do not claim support for any OpenSL ES or OpenMAX AL profiles
44LOCAL_CFLAGS += -DUSE_PROFILES=0
45
46# enable API logging; details are set separately by SL_TRACE_DEFAULT below
47LOCAL_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
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        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
139EXCLUDE_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
165LOCAL_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
173LOCAL_CFLAGS += -x c++ -std=gnu++11 -Wno-multichar -Wno-invalid-offsetof
174
175LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror
176
177LOCAL_STATIC_LIBRARIES += \
178        libopensles_helper        \
179        libOpenSLESUT
180
181LOCAL_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.
197ifndef BRILLO
198LOCAL_SHARED_LIBRARIES += \
199        libstagefright_http_support
200endif
201
202LOCAL_MODULE := libwilhelm
203LOCAL_MODULE_TAGS := optional
204
205ifeq ($(TARGET_BUILD_VARIANT),userdebug)
206        LOCAL_CFLAGS += -DUSERDEBUG_BUILD=1
207endif
208
209include $(BUILD_SHARED_LIBRARY)
210
211include $(CLEAR_VARS)
212LOCAL_SRC_FILES := sl_entry.c sl_iid.c assert.c
213LOCAL_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
218LOCAL_MODULE := libOpenSLES
219LOCAL_MODULE_TAGS := optional
220LOCAL_CFLAGS += -x c++ -std=gnu++11 -DLI_API= -fvisibility=hidden -UNDEBUG \
221                -DSL_API='__attribute__((visibility("default")))'
222LOCAL_CFLAGS += -Wall -Werror
223LOCAL_SHARED_LIBRARIES := libwilhelm liblog
224include $(BUILD_SHARED_LIBRARY)
225
226include $(CLEAR_VARS)
227LOCAL_SRC_FILES := xa_entry.c xa_iid.c assert.c
228LOCAL_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
233LOCAL_MODULE := libOpenMAXAL
234LOCAL_MODULE_TAGS := optional
235LOCAL_CFLAGS += -x c++ -std=gnu++11 -DLI_API= -fvisibility=hidden -UNDEBUG \
236                -DXA_API='__attribute__((visibility("default")))'
237LOCAL_CFLAGS += -Wall -Werror
238LOCAL_SHARED_LIBRARIES := libwilhelm liblog
239include $(BUILD_SHARED_LIBRARY)
240