blob: 3b678cbe991e1442ad86f5f8db2e0a0938546833 [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 \
Mathias Agopian000479f2010-02-09 17:46:37 -080016 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 += \
22 StagefrightPlayer.cpp \
Andreas Huberea6a38c2009-11-16 15:43:38 -080023 StagefrightRecorder.cpp
Andreas Huber2aa39c42009-09-11 09:54:52 -070024
25LOCAL_CFLAGS += -DBUILD_WITH_FULL_STAGEFRIGHT=1
26
27endif
28
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070029ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
30LOCAL_LDLIBS += -ldl -lpthread
31endif
32
Mathias Agopian000479f2010-02-09 17:46:37 -080033LOCAL_SHARED_LIBRARIES := \
34 libcutils \
35 libutils \
36 libbinder \
37 libvorbisidec \
38 libsonivox \
39 libmedia \
James Dongb00e2462010-04-26 17:48:26 -070040 libcamera_client \
Mathias Agopian000479f2010-02-09 17:46:37 -080041 libandroid_runtime \
42 libstagefright \
43 libstagefright_omx \
44 libstagefright_color_conversion \
45 libsurfaceflinger_client
Jean-Baptiste Queru680f8c72009-03-21 11:40:18 -070046
Andreas Huberbfb9fb12009-12-03 11:31:19 -080047ifneq ($(BUILD_WITHOUT_PV),true)
48LOCAL_SHARED_LIBRARIES += \
49 libopencore_player \
50 libopencore_author
51else
52LOCAL_CFLAGS += -DNO_OPENCORE
53endif
54
Nicolas Catania8f5fcab2009-07-13 14:37:49 -070055ifneq ($(TARGET_SIMULATOR),true)
56LOCAL_SHARED_LIBRARIES += libdl
57endif
58
Mathias Agopian000479f2010-02-09 17:46:37 -080059LOCAL_C_INCLUDES := \
Andreas Huber9f9afef2009-09-15 12:49:11 -070060 $(JNI_H_INCLUDE) \
Andreas Huber0d596d42009-08-07 09:30:32 -070061 $(call include-path-for, graphics corecg) \
62 $(TOP)/external/opencore/extern_libs_v2/khronos/openmax/include \
Gloria Wang8d00b532010-02-12 16:28:53 -080063 $(TOP)/frameworks/base/media/libstagefright/include \
Gloria Wang2c510142010-02-08 14:37:41 -080064 $(TOP)/external/tremolo/Tremolo
Gloria Wang2c510142010-02-08 14:37:41 -080065
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070066LOCAL_MODULE:= libmediaplayerservice
67
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -070068include $(BUILD_SHARED_LIBRARY)
69