Android.mk revision 000479f9e325b4e426a67033abd92d47da412725
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4ifneq ($(BUILD_WITHOUT_PV),true)
5include external/opencore/Config.mk
6endif
7
8LOCAL_SRC_FILES:= \
9    android_media_MediaPlayer.cpp \
10    android_media_MediaRecorder.cpp \
11    android_media_MediaScanner.cpp \
12    android_media_MediaMetadataRetriever.cpp \
13    android_media_ResampleInputStream.cpp \
14    android_media_MediaProfiles.cpp
15
16LOCAL_SHARED_LIBRARIES := \
17    libandroid_runtime \
18    libnativehelper \
19    libutils \
20    libbinder \
21    libmedia \
22    libskia \
23    libui \
24    libcutils \
25    libsurfaceflinger_client \
26    libcamera_client
27
28ifneq ($(BUILD_WITHOUT_PV),true)
29
30LOCAL_SRC_FILES += \
31    android_media_AmrInputStream.cpp
32
33LOCAL_SHARED_LIBRARIES += \
34    libopencore_player          \
35    libomx_amrenc_sharedlibrary
36else
37    LOCAL_CFLAGS += -DNO_OPENCORE
38endif
39
40ifeq ($(BUILD_WITH_FULL_STAGEFRIGHT),true)
41
42LOCAL_CFLAGS += -DBUILD_WITH_FULL_STAGEFRIGHT=1
43
44LOCAL_SHARED_LIBRARIES += \
45    libstagefright
46
47endif
48
49LOCAL_STATIC_LIBRARIES :=
50
51LOCAL_C_INCLUDES += \
52    external/tremor/Tremor \
53    frameworks/base/core/jni \
54    frameworks/base/media/libmedia \
55    $(PV_INCLUDES) \
56    $(JNI_H_INCLUDE) \
57    $(call include-path-for, corecg graphics)
58
59LOCAL_CFLAGS +=
60
61LOCAL_LDLIBS := -lpthread
62
63LOCAL_MODULE:= libmedia_jni
64
65include $(BUILD_SHARED_LIBRARY)
66
67# build libsoundpool.so
68include $(LOCAL_PATH)/soundpool/Android.mk
69