blob: b8defde45d5dbf6b343ceb9fe335f2fdbe4198b8 [file] [log] [blame]
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -07001LOCAL_PATH:= $(call my-dir)
2
3#
4# libmediaplayerservice
5#
6
7include $(CLEAR_VARS)
8
9LOCAL_SRC_FILES:= \
Andreas Huber0d596d42009-08-07 09:30:32 -070010 MediaRecorderClient.cpp \
11 MediaPlayerService.cpp \
Jianhong Jiang3ca47d12009-04-13 19:01:51 -070012 MetadataRetrieverClient.cpp \
Andreas Huber0d596d42009-08-07 09:30:32 -070013 TestPlayerStub.cpp \
14 VorbisPlayer.cpp \
James Dong392ff3b2009-09-06 14:29:45 -070015 VorbisMetadataRetriever.cpp \
16 MidiMetadataRetriever.cpp \
Jianhong Jiang3ca47d12009-04-13 19:01:51 -070017 MidiFile.cpp
Jean-Baptiste Queru680f8c72009-03-21 11:40:18 -070018
Andreas Huber2aa39c42009-09-11 09:54:52 -070019ifeq ($(BUILD_WITH_FULL_STAGEFRIGHT),true)
20
Andreas Huber53a76bd2009-10-06 16:20:44 -070021LOCAL_SRC_FILES += \
Andreas Huberea6a38c2009-11-16 15:43:38 -080022 StagefrightMetadataRetriever.cpp \
Andreas Huber53a76bd2009-10-06 16:20:44 -070023 StagefrightPlayer.cpp \
Andreas Huberea6a38c2009-11-16 15:43:38 -080024 StagefrightRecorder.cpp
Andreas Huber2aa39c42009-09-11 09:54:52 -070025
26LOCAL_CFLAGS += -DBUILD_WITH_FULL_STAGEFRIGHT=1
27
28endif
29
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070030ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
31LOCAL_LDLIBS += -ldl -lpthread
32endif
33
Andreas Huber0d596d42009-08-07 09:30:32 -070034LOCAL_SHARED_LIBRARIES := \
35 libcutils \
36 libutils \
37 libbinder \
38 libvorbisidec \
39 libsonivox \
Andreas Huber0d596d42009-08-07 09:30:32 -070040 libmedia \
41 libandroid_runtime \
42 libstagefright \
43 libstagefright_omx
Jean-Baptiste Queru680f8c72009-03-21 11:40:18 -070044
Andreas Huberbfb9fb12009-12-03 11:31:19 -080045ifneq ($(BUILD_WITHOUT_PV),true)
46LOCAL_SHARED_LIBRARIES += \
47 libopencore_player \
48 libopencore_author
49else
50LOCAL_CFLAGS += -DNO_OPENCORE
51endif
52
Nicolas Catania8f5fcab2009-07-13 14:37:49 -070053ifneq ($(TARGET_SIMULATOR),true)
54LOCAL_SHARED_LIBRARIES += libdl
55endif
56
Andreas Huber0d596d42009-08-07 09:30:32 -070057LOCAL_C_INCLUDES := external/tremor/Tremor \
Andreas Huber9f9afef2009-09-15 12:49:11 -070058 $(JNI_H_INCLUDE) \
Andreas Huber0d596d42009-08-07 09:30:32 -070059 $(call include-path-for, graphics corecg) \
60 $(TOP)/external/opencore/extern_libs_v2/khronos/openmax/include \
Andreas Huber784202e2009-10-15 13:46:54 -070061 $(TOP)/frameworks/base/media/libstagefright/include
Jean-Baptiste Queru680f8c72009-03-21 11:40:18 -070062
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070063LOCAL_MODULE:= libmediaplayerservice
64
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070065include $(BUILD_SHARED_LIBRARY)
66