Android.mk revision bb832e853d4afb11b0a3287b2eb0cad87696d631
1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES :=     \
6        ut/OpenSLESUT.c   \
7        ut/slesutResult.c
8
9LOCAL_C_INCLUDES:= \
10        system/media/wilhelm/include
11
12LOCAL_CFLAGS += -fvisibility=hidden
13
14LOCAL_MODULE := libOpenSLESUT
15
16include $(BUILD_STATIC_LIBRARY)
17
18include $(CLEAR_VARS)
19
20LOCAL_C_INCLUDES:= \
21        system/media/wilhelm/include
22
23LOCAL_CFLAGS += -Wno-override-init
24# -Wno-missing-field-initializers
25# optional, see comments in MPH_to.c: -DUSE_DESIGNATED_INITIALIZERS -S
26LOCAL_CFLAGS += -DUSE_DESIGNATED_INITIALIZERS
27
28LOCAL_SRC_FILES:=                     \
29        MPH_to.c \
30        handlers.c
31
32LOCAL_MODULE:= libopensles_helper
33
34include $(BUILD_STATIC_LIBRARY)
35
36include $(CLEAR_VARS)
37
38#LOCAL_CFLAGS += -DSL_API= -DXA_API=SLAPIENTRY -DXAAPIENTRY=
39#LOCAL_CFLAGS += -DUSE_PROFILES=0 -UUSE_TRACE -UUSE_DEBUG -DNDEBUG -DUSE_LOG=SLAndroidLogLevel_Info
40LOCAL_CFLAGS += -DUSE_PROFILES=0 -DUSE_TRACE -DUSE_DEBUG -UNDEBUG \
41# select the level of log messages
42#   -DUSE_LOG=SLAndroidLogLevel_Verbose
43   -DUSE_LOG=SLAndroidLogLevel_Info
44# trace all the OpenSL ES method enter/exit in the logs
45#LOCAL_CFLAGS += -DSL_TRACE_DEFAULT=SL_TRACE_ALL
46LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
47
48# Reduce size of .so and hide internal global symbols
49LOCAL_CFLAGS += -fvisibility=hidden -DLI_API='__attribute__((visibility("default")))'
50
51LOCAL_SRC_FILES:=                     \
52        OpenSLES_IID.c                \
53        classes.c                     \
54        data.c                        \
55        devices.c                     \
56        entry.c                       \
57        handler_bodies.c              \
58        trace.c                       \
59        locks.c                       \
60        sles.c                        \
61        sl_iid.c                      \
62        sllog.c                       \
63        ThreadPool.c                  \
64        android/AudioPlayer_to_android.cpp    \
65        android/AudioRecorder_to_android.cpp  \
66        android/MediaPlayer_to_android.cpp    \
67        android/OutputMix_to_android.cpp      \
68        android/VideoCodec_to_android.cpp     \
69        android/BufferQueueSource.cpp         \
70        android/CallbackProtector.cpp         \
71        android/AacBqToPcmCbRenderer.cpp      \
72        android/android_AudioSfDecoder.cpp    \
73        android/android_AudioToCbRenderer.cpp \
74        android/android_GenericMediaPlayer.cpp\
75        android/android_GenericPlayer.cpp     \
76        android/android_LocAVPlayer.cpp       \
77        android/android_StreamPlayer.cpp      \
78        android/android_Effect.cpp            \
79        android/util/AacAdtsExtractor.cpp     \
80        autogen/IID_to_MPH.c                  \
81        objects/C3DGroup.c                    \
82        objects/CAudioPlayer.c                \
83        objects/CAudioRecorder.c              \
84        objects/CEngine.c                     \
85        objects/COutputMix.c                  \
86        objects/CMediaPlayer.c                \
87        itf/IAndroidBufferQueue.c         \
88        itf/IAndroidConfiguration.c       \
89        itf/IAndroidEffect.cpp            \
90        itf/IAndroidEffectCapabilities.c  \
91        itf/IAndroidEffectSend.c          \
92        itf/IBassBoost.c                  \
93        itf/IBufferQueue.c                \
94        itf/IDynamicInterfaceManagement.c \
95        itf/IEffectSend.c                 \
96        itf/IEngine.c                     \
97        itf/IEngineCapabilities.c         \
98        itf/IEnvironmentalReverb.c        \
99        itf/IEqualizer.c                  \
100        itf/IMetadataExtraction.c         \
101        itf/IMuteSolo.c                   \
102        itf/IObject.c                     \
103        itf/IOutputMix.c                  \
104        itf/IPlay.c                       \
105        itf/IPlaybackRate.c               \
106        itf/IPrefetchStatus.c             \
107        itf/IPresetReverb.c               \
108        itf/IRecord.c                     \
109        itf/ISeek.c                       \
110        itf/IStreamInformation.cpp        \
111        itf/IVideoDecoderCapabilities.cpp \
112        itf/IVirtualizer.c                \
113        itf/IVolume.c
114
115EXCLUDE_SRC :=                            \
116        sync.c                            \
117        itf/I3DCommit.c                   \
118        itf/I3DDoppler.c                  \
119        itf/I3DGrouping.c                 \
120        itf/I3DLocation.c                 \
121        itf/I3DMacroscopic.c              \
122        itf/I3DSource.c                   \
123        itf/IAudioDecoderCapabilities.c   \
124        itf/IAudioEncoder.c               \
125        itf/IAudioEncoderCapabilities.c   \
126        itf/IAudioIODeviceCapabilities.c  \
127        itf/IDeviceVolume.c               \
128        itf/IDynamicSource.c              \
129        itf/ILEDArray.c                   \
130        itf/IMIDIMessage.c                \
131        itf/IMIDIMuteSolo.c               \
132        itf/IMIDITempo.c                  \
133        itf/IMIDITime.c                   \
134        itf/IMetadataTraversal.c          \
135        itf/IPitch.c                      \
136        itf/IRatePitch.c                  \
137        itf/IThreadSync.c                 \
138        itf/IVibra.c                      \
139        itf/IVisualization.c
140
141LOCAL_C_INCLUDES:=                                                  \
142        system/media/wilhelm/include                                \
143        frameworks/base/media/libstagefright                        \
144        frameworks/base/media/libstagefright/include                \
145        frameworks/base/include/media/stagefright/openmax           \
146        system/media/audio_effects/include
147
148LOCAL_CFLAGS += -x c++ -Wno-multichar -Wno-invalid-offsetof
149
150LOCAL_STATIC_LIBRARIES += \
151        libopensles_helper        \
152        libOpenSLESUT
153
154LOCAL_SHARED_LIBRARIES :=         \
155        libutils                  \
156        libmedia                  \
157        libbinder                 \
158        libstagefright            \
159        libstagefright_foundation \
160        libcutils                 \
161        libgui                    \
162        libdl
163
164
165
166LOCAL_MODULE := libwilhelm
167LOCAL_MODULE_TAGS := optional
168
169ifeq ($(TARGET_BUILD_VARIANT),userdebug)
170        LOCAL_CFLAGS += -DUSERDEBUG_BUILD=1
171endif
172
173LOCAL_PRELINK_MODULE := false
174include $(BUILD_SHARED_LIBRARY)
175
176include $(CLEAR_VARS)
177LOCAL_SRC_FILES := sl_entry.c sl_iid.c
178LOCAL_C_INCLUDES:=                                                  \
179        system/media/wilhelm/include                                \
180        frameworks/base/media/libstagefright                        \
181        frameworks/base/media/libstagefright/include                \
182        frameworks/base/include/media/stagefright/openmax
183LOCAL_MODULE := libOpenSLES
184LOCAL_PRELINK_MODULE := false
185LOCAL_MODULE_TAGS := optional
186LOCAL_CFLAGS += -x c++ -DLI_API= -fvisibility=hidden \
187                -DSL_API='__attribute__((visibility("default")))'
188LOCAL_SHARED_LIBRARIES := libwilhelm
189include $(BUILD_SHARED_LIBRARY)
190
191include $(CLEAR_VARS)
192LOCAL_SRC_FILES := xa_entry.c xa_iid.c
193LOCAL_C_INCLUDES:=                                                  \
194        system/media/wilhelm/include                                \
195        frameworks/base/media/libstagefright                        \
196        frameworks/base/media/libstagefright/include                \
197        frameworks/base/include/media/stagefright/openmax
198LOCAL_MODULE := libOpenMAXAL
199LOCAL_PRELINK_MODULE := false
200LOCAL_MODULE_TAGS := optional
201LOCAL_CFLAGS += -x c++ -DLI_API= -fvisibility=hidden \
202                -DXA_API='__attribute__((visibility("default")))'
203LOCAL_SHARED_LIBRARIES := libwilhelm
204include $(BUILD_SHARED_LIBRARY)
205