summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/Android.mk
diff options
context:
space:
mode:
authorNicolas Catania <niko@google.com>2009-07-13 14:37:49 -0700
committerNicolas Catania <niko@google.com>2009-07-16 11:22:31 -0700
commit14d2747c7e54037e267bcff78b29e65b2181f0fa (patch)
treedecfefe1e3d86b5f246afda53200aca2a981709e /media/libmediaplayerservice/Android.mk
parent20111aa043c5f404472bc63b90bc5aad906b1101 (diff)
downloadframeworks_av-14d2747c7e54037e267bcff78b29e65b2181f0fa.zip
frameworks_av-14d2747c7e54037e267bcff78b29e65b2181f0fa.tar.gz
frameworks_av-14d2747c7e54037e267bcff78b29e65b2181f0fa.tar.bz2
New test player stub to load mock native players.
Added a new class TestPlayerStub that takes a magic url in the setDataSource call. Based on the value of the url, the stub is going to load a DL and create the concrete player used during the test. After these initialization steps TestPlayerStub is just a wrapper. Added a new functional test MediaPlayerInvokeTest to demonstrate how a new mock player to test the invoke method can be loaded. Added a new mock player for the invoke test: invoke_mock_media_player.cpp.
Diffstat (limited to 'media/libmediaplayerservice/Android.mk')
-rw-r--r--media/libmediaplayerservice/Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/Android.mk b/media/libmediaplayerservice/Android.mk
index 6978b3d..f74ef3a 100644
--- a/media/libmediaplayerservice/Android.mk
+++ b/media/libmediaplayerservice/Android.mk
@@ -10,6 +10,7 @@ LOCAL_SRC_FILES:= \
MediaRecorderClient.cpp \
MediaPlayerService.cpp \
MetadataRetrieverClient.cpp \
+ TestPlayerStub.cpp \
VorbisPlayer.cpp \
MidiFile.cpp
@@ -28,6 +29,10 @@ LOCAL_SHARED_LIBRARIES := \
libmedia \
libandroid_runtime
+ifneq ($(TARGET_SIMULATOR),true)
+LOCAL_SHARED_LIBRARIES += libdl
+endif
+
LOCAL_C_INCLUDES := external/tremor/Tremor \
$(call include-path-for, graphics corecg) \
$(TOP)/external/opencore/extern_libs_v2/khronos/openmax/include