Android.mk revision 6cce136651f6fd2c7aecd45bc553270152d75462
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
46
47# Reduce size of .so and hide internal global symbols
48LOCAL_CFLAGS += -fvisibility=hidden -DLI_API='__attribute__((visibility("default")))'
49
50LOCAL_SRC_FILES:=                     \
51        OpenSLES_IID.c                \
52        classes.c                     \
53        data.c                        \
54        devices.c                     \
55        entry.c                       \
56        handler_bodies.c              \
57        trace.c                       \
58        locks.c                       \
59        sles.c                        \
60        sl_iid.c                      \
61        sllog.c                       \
62        ThreadPool.c                  \
63        android/AudioPlayer_to_android.cpp    \
64        android/AudioRecorder_to_android.cpp  \
65        android/MediaPlayer_to_android.cpp    \
66        android/CallbackProtector.cpp         \
67        android/OutputMix_to_android.cpp      \
68        android/android_AudioSfDecoder.cpp    \
69        android/android_AudioToCbRenderer.cpp \
70        android/android_GenericMediaPlayer.cpp\
71        android/android_GenericPlayer.cpp     \
72        android/android_LocAVPlayer.cpp       \
73        android/android_StreamPlayer.cpp      \
74        android/android_Effect.cpp            \
75        autogen/IID_to_MPH.c                  \
76        objects/C3DGroup.c                    \
77        objects/CAudioPlayer.c                \
78        objects/CAudioRecorder.c              \
79        objects/CEngine.c                     \
80        objects/COutputMix.c                  \
81        objects/CMediaPlayer.c                \
82        itf/IAndroidBufferQueue.c         \
83        itf/IAndroidConfiguration.c       \
84        itf/IAndroidEffect.cpp            \
85        itf/IAndroidEffectCapabilities.c  \
86        itf/IAndroidEffectSend.c          \
87        itf/IBassBoost.c                  \
88        itf/IBufferQueue.c                \
89        itf/IDynamicInterfaceManagement.c \
90        itf/IEffectSend.c                 \
91        itf/IEngine.c                     \
92        itf/IEngineCapabilities.c         \
93        itf/IEnvironmentalReverb.c        \
94        itf/IEqualizer.c                  \
95        itf/IMetadataExtraction.c         \
96        itf/IMuteSolo.c                   \
97        itf/IObject.c                     \
98        itf/IOutputMix.c                  \
99        itf/IPlay.c                       \
100        itf/IPlaybackRate.c               \
101        itf/IPrefetchStatus.c             \
102        itf/IPresetReverb.c               \
103        itf/IRecord.c                     \
104        itf/ISeek.c                       \
105        itf/IStreamInformation.cpp        \
106        itf/IVirtualizer.c                \
107        itf/IVolume.c
108
109EXCLUDE_SRC :=                            \
110        sync.c                            \
111        itf/I3DCommit.c                   \
112        itf/I3DDoppler.c                  \
113        itf/I3DGrouping.c                 \
114        itf/I3DLocation.c                 \
115        itf/I3DMacroscopic.c              \
116        itf/I3DSource.c                   \
117        itf/IAudioDecoderCapabilities.c   \
118        itf/IAudioEncoder.c               \
119        itf/IAudioEncoderCapabilities.c   \
120        itf/IAudioIODeviceCapabilities.c  \
121        itf/IDeviceVolume.c               \
122        itf/IDynamicSource.c              \
123        itf/ILEDArray.c                   \
124        itf/IMIDIMessage.c                \
125        itf/IMIDIMuteSolo.c               \
126        itf/IMIDITempo.c                  \
127        itf/IMIDITime.c                   \
128        itf/IMetadataTraversal.c          \
129        itf/IPitch.c                      \
130        itf/IRatePitch.c                  \
131        itf/IThreadSync.c                 \
132        itf/IVibra.c                      \
133        itf/IVisualization.c
134
135LOCAL_C_INCLUDES:=                                                  \
136        system/media/wilhelm/include                                \
137        frameworks/base/media/libstagefright                        \
138        frameworks/base/media/libstagefright/include                \
139        frameworks/base/include/media/stagefright/openmax
140
141LOCAL_CFLAGS += -x c++ -Wno-multichar -Wno-invalid-offsetof
142
143LOCAL_STATIC_LIBRARIES += \
144        libopensles_helper        \
145        libOpenSLESUT
146
147LOCAL_SHARED_LIBRARIES :=         \
148        libutils                  \
149        libmedia                  \
150        libbinder                 \
151        libstagefright            \
152        libstagefright_foundation \
153        libcutils                 \
154        libgui
155
156ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
157        LOCAL_LDLIBS += -lpthread -ldl
158        LOCAL_SHARED_LIBRARIES += libdvm
159        LOCAL_CPPFLAGS += -DANDROID_SIMULATOR
160endif
161
162ifneq ($(TARGET_SIMULATOR),true)
163        LOCAL_SHARED_LIBRARIES += libdl
164else
165        LOCAL_CFLAGS += -DTARGET_SIMULATOR
166endif
167
168ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
169        LOCAL_LDLIBS += -lpthread
170endif
171
172
173
174LOCAL_MODULE := libwilhelm
175LOCAL_MODULE_TAGS := optional
176
177ifeq ($(TARGET_BUILD_VARIANT),userdebug)
178        LOCAL_CFLAGS += -DUSERDEBUG_BUILD=1
179endif
180
181LOCAL_PRELINK_MODULE := false
182include $(BUILD_SHARED_LIBRARY)
183
184include $(CLEAR_VARS)
185LOCAL_SRC_FILES := sl_entry.c sl_iid.c
186LOCAL_C_INCLUDES:=                                                  \
187        system/media/wilhelm/include                                \
188        frameworks/base/media/libstagefright                        \
189        frameworks/base/media/libstagefright/include                \
190        frameworks/base/include/media/stagefright/openmax
191LOCAL_MODULE := libOpenSLES
192LOCAL_PRELINK_MODULE := false
193LOCAL_MODULE_TAGS := optional
194LOCAL_CFLAGS += -x c++ -DLI_API= -fvisibility=hidden \
195                -DSL_API='__attribute__((visibility("default")))'
196LOCAL_SHARED_LIBRARIES := libwilhelm
197include $(BUILD_SHARED_LIBRARY)
198
199include $(CLEAR_VARS)
200LOCAL_SRC_FILES := xa_entry.c xa_iid.c
201LOCAL_C_INCLUDES:=                                                  \
202        system/media/wilhelm/include                                \
203        frameworks/base/media/libstagefright                        \
204        frameworks/base/media/libstagefright/include                \
205        frameworks/base/include/media/stagefright/openmax
206LOCAL_MODULE := libOpenMAXAL
207LOCAL_PRELINK_MODULE := false
208LOCAL_MODULE_TAGS := optional
209LOCAL_CFLAGS += -x c++ -DLI_API= -fvisibility=hidden \
210                -DXA_API='__attribute__((visibility("default")))'
211LOCAL_SHARED_LIBRARIES := libwilhelm
212include $(BUILD_SHARED_LIBRARY)
213