blob: d83f49329a4861076692e66a65a47f2a03999a5d [file] [log] [blame]
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
Andreas Huber55e99c62010-01-27 13:28:08 -08004ifneq ($(BUILD_WITHOUT_PV),true)
5include external/opencore/Config.mk
6endif
7
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -07008LOCAL_SRC_FILES:= \
Jianhong Jiang3ca47d12009-04-13 19:01:51 -07009 android_media_MediaPlayer.cpp \
10 android_media_MediaRecorder.cpp \
11 android_media_MediaScanner.cpp \
12 android_media_MediaMetadataRetriever.cpp \
James Dongc3711942010-01-19 17:45:38 -080013 android_media_ResampleInputStream.cpp \
14 android_media_MediaProfiles.cpp
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070015
16LOCAL_SHARED_LIBRARIES := \
Jianhong Jiang3ca47d12009-04-13 19:01:51 -070017 libandroid_runtime \
18 libnativehelper \
Jianhong Jiang3ca47d12009-04-13 19:01:51 -070019 libutils \
Mathias Agopian25ba5b62009-05-18 15:08:03 -070020 libbinder \
Jianhong Jiang3ca47d12009-04-13 19:01:51 -070021 libmedia \
Mike Reedb5af3252009-07-10 15:33:21 -040022 libskia \
Andreas Hubere4a83802010-01-08 10:57:34 -080023 libui \
24 libcutils
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070025
Andreas Huberbfb9fb12009-12-03 11:31:19 -080026ifneq ($(BUILD_WITHOUT_PV),true)
Andreas Huber37105cc2010-01-27 12:39:39 -080027
Andreas Huberbfb9fb12009-12-03 11:31:19 -080028LOCAL_SRC_FILES += \
29 android_media_AmrInputStream.cpp
30
31LOCAL_SHARED_LIBRARIES += \
32 libopencore_player \
33 libomx_amrenc_sharedlibrary
34else
35 LOCAL_CFLAGS += -DNO_OPENCORE
36endif
37
Andreas Hubere4a83802010-01-08 10:57:34 -080038ifeq ($(BUILD_WITH_FULL_STAGEFRIGHT),true)
39
40LOCAL_CFLAGS += -DBUILD_WITH_FULL_STAGEFRIGHT=1
41
42LOCAL_SHARED_LIBRARIES += \
43 libstagefright
44
45endif
46
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070047LOCAL_STATIC_LIBRARIES :=
48
49LOCAL_C_INCLUDES += \
Jianhong Jiang3ca47d12009-04-13 19:01:51 -070050 external/tremor/Tremor \
Nicolas Catania20cb94e2009-05-12 23:25:55 -070051 frameworks/base/core/jni \
Andreas Huberbfb9fb12009-12-03 11:31:19 -080052 frameworks/base/media/libmedia \
Jianhong Jiang3ca47d12009-04-13 19:01:51 -070053 $(PV_INCLUDES) \
54 $(JNI_H_INCLUDE) \
55 $(call include-path-for, corecg graphics)
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070056
57LOCAL_CFLAGS +=
58
59LOCAL_LDLIBS := -lpthread
60
61LOCAL_MODULE:= libmedia_jni
62
63include $(BUILD_SHARED_LIBRARY)
The Android Open Source Projectf013e1a2008-12-17 18:05:43 -080064
65# build libsoundpool.so
66include $(LOCAL_PATH)/soundpool/Android.mk