blob: 8b5a6f57f82bcca12e60c50b9aef7d0e1fba8961 [file] [log] [blame]
Dharmaray Kundargi643290d2011-01-16 16:02:42 -08001#
2# Copyright (C) 2011 NXP Software
3# Copyright (C) 2011 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
18LOCAL_PATH:= $(call my-dir)
19
20#
21# libvideoeditorplayer
22#
23
24include $(CLEAR_VARS)
25
26LOCAL_MODULE:= libvideoeditorplayer
27
28LOCAL_SRC_FILES:= \
29 VideoEditorTools.cpp \
30 VideoEditorPlayer.cpp \
31 PreviewPlayer.cpp \
32 VideoEditorAudioPlayer.cpp \
33 VideoEditorPreviewController.cpp \
34 VideoEditorSRC.cpp \
35 DummyAudioSource.cpp \
36 DummyVideoSource.cpp \
37 VideoEditorBGAudioProcessing.cpp \
James Dongc9dedc42011-05-01 12:36:22 -070038 AudioPlayerBase.cpp \
39 PreviewPlayerBase.cpp \
Dharmaray Kundargi643290d2011-01-16 16:02:42 -080040 PreviewRenderer.cpp
41
Dharmaray Kundargibf327082011-01-19 12:08:27 -080042LOCAL_MODULE_TAGS := optional
Dharmaray Kundargi643290d2011-01-16 16:02:42 -080043
44LOCAL_STATIC_LIBRARIES := \
45 libvideoeditor_osal \
46 libstagefright_color_conversion
47
48
49
50LOCAL_SHARED_LIBRARIES := \
51 libbinder \
52 libutils \
53 libcutils \
54 libmedia \
James Dongc9dedc42011-05-01 12:36:22 -070055 libdrmframework \
Dharmaray Kundargi643290d2011-01-16 16:02:42 -080056 libstagefright \
57 libstagefright_omx \
58 libstagefright_foundation \
Mathias Agopiand9789f22011-03-25 18:56:28 -070059 libgui \
Dharmaray Kundargi643290d2011-01-16 16:02:42 -080060 libaudioflinger \
61 libui
62
63
64LOCAL_C_INCLUDES += \
65 $(TOP)/frameworks/base/core/jni \
66 $(TOP)/frameworks/base/include \
67 $(TOP)/frameworks/base/include/media \
68 $(TOP)/frameworks/base/media/libmediaplayerservice \
69 $(TOP)/frameworks/base/media/libstagefright \
70 $(TOP)/frameworks/base/media/libstagefright/include \
71 $(TOP)/frameworks/base/media/libstagefright/rtsp \
72 $(JNI_H_INCLUDE) \
73 $(call include-path-for, corecg graphics) \
Dharmaray Kundargiba119eb2011-01-18 13:04:07 -080074 $(TOP)/frameworks/base/include/media/stagefright/openmax \
Dharmaray Kundargi643290d2011-01-16 16:02:42 -080075 $(TOP)/frameworks/media/libvideoeditor/osal/inc \
76 $(TOP)/frameworks/media/libvideoeditor/vss/common/inc \
77 $(TOP)/frameworks/media/libvideoeditor/vss/mcs/inc \
78 $(TOP)/frameworks/media/libvideoeditor/vss/inc \
79 $(TOP)/frameworks/media/libvideoeditor/vss/stagefrightshells/inc \
80 $(TOP)/frameworks/media/libvideoeditor/lvpp \
81 $(TOP)/frameworks/base/media/jni/mediaeditor \
82 $(TOP)/frameworks/base/services/audioflinger
83
84
85ifeq ($(TARGET_SIMULATOR),true)
86else
87 LOCAL_SHARED_LIBRARIES += libdl
88endif
89
90# All of the shared libraries we link against.
91LOCAL_LDLIBS := \
92 -lpthread -ldl
93
94LOCAL_CFLAGS += -Wno-multichar \
95 -DM4_ENABLE_RENDERINGMODE \
96 -DUSE_STAGEFRIGHT_CODECS \
97 -DUSE_STAGEFRIGHT_AUDIODEC \
98 -DUSE_STAGEFRIGHT_VIDEODEC \
99 -DUSE_STAGEFRIGHT_AUDIOENC \
100 -DUSE_STAGEFRIGHT_VIDEOENC \
101 -DUSE_STAGEFRIGHT_READERS \
102 -DUSE_STAGEFRIGHT_3GPP_READER
103
Dharmaray Kundargi643290d2011-01-16 16:02:42 -0800104include $(BUILD_SHARED_LIBRARY)
105
106#include $(call all-makefiles-under,$(LOCAL_PATH))