Android.mk revision 3cf613507f1e2f7bd932d921a6e222e426fd3be4
1LOCAL_PATH:= $(call my-dir)
2
3#
4# libmediaplayerservice
5#
6
7include $(CLEAR_VARS)
8
9LOCAL_SRC_FILES:=               \
10    MediaRecorderClient.cpp     \
11    MediaPlayerService.cpp      \
12    MetadataRetrieverClient.cpp \
13    TestPlayerStub.cpp          \
14    VorbisPlayer.cpp            \
15    VorbisMetadataRetriever.cpp \
16    MidiMetadataRetriever.cpp 	\
17    MidiFile.cpp
18
19ifeq ($(BUILD_WITH_FULL_STAGEFRIGHT),true)
20
21LOCAL_SRC_FILES +=                      \
22    StagefrightPlayer.cpp               \
23    StagefrightRecorder.cpp
24
25LOCAL_CFLAGS += -DBUILD_WITH_FULL_STAGEFRIGHT=1
26
27endif
28
29ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
30LOCAL_LDLIBS += -ldl -lpthread
31endif
32
33LOCAL_SHARED_LIBRARIES :=     		\
34	libcutils             			\
35	libutils              			\
36	libbinder             			\
37	libvorbisidec         			\
38	libsonivox            			\
39	libmedia              			\
40	libandroid_runtime    			\
41	libstagefright        			\
42	libstagefright_omx    			\
43	libstagefright_color_conversion \
44	libsurfaceflinger_client
45
46ifneq ($(BUILD_WITHOUT_PV),true)
47LOCAL_SHARED_LIBRARIES += \
48	libopencore_player    \
49	libopencore_author
50else
51LOCAL_CFLAGS += -DNO_OPENCORE
52endif
53
54ifneq ($(TARGET_SIMULATOR),true)
55LOCAL_SHARED_LIBRARIES += libdl
56endif
57
58LOCAL_C_INCLUDES :=                                                 \
59	$(JNI_H_INCLUDE)                                                \
60	$(call include-path-for, graphics corecg)                       \
61	$(TOP)/external/opencore/extern_libs_v2/khronos/openmax/include \
62	$(TOP)/frameworks/base/media/libstagefright/include
63
64ifeq ($(TARGET_ARCH),arm)
65    LOCAL_C_INCLUDES += \
66        $(TOP)/external/tremolo/Tremolo
67else
68    LOCAL_C_INCLUDES += \
69        $(TOP)/external/tremor/Tremor
70endif
71
72LOCAL_MODULE:= libmediaplayerservice
73
74include $(BUILD_SHARED_LIBRARY)
75
76