blob: e2d8417e761efa673fa5aad0e62442cf25477a7f [file] [log] [blame]
Chih-Chung Chang99698662011-06-30 14:21:38 +08001#
2# Copyright (C) 2011 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH:= $(call my-dir)
18
19#
20# libvideoeditorplayer
21#
22
23include $(CLEAR_VARS)
24
25LOCAL_MODULE:= libvideoeditorplayer
26
27LOCAL_SRC_FILES:= \
28 VideoEditorTools.cpp \
29 VideoEditorPlayer.cpp \
30 PreviewPlayer.cpp \
31 VideoEditorAudioPlayer.cpp \
32 VideoEditorPreviewController.cpp \
33 VideoEditorSRC.cpp \
34 DummyAudioSource.cpp \
35 DummyVideoSource.cpp \
36 VideoEditorBGAudioProcessing.cpp \
37 AudioPlayerBase.cpp \
38 PreviewPlayerBase.cpp \
Chih-Chung Chang7efb8ef2011-07-22 09:01:36 +080039 PreviewRenderer.cpp \
Chih-Chung Chang2aa01fd2011-08-05 17:52:45 +080040 I420ColorConverter.cpp \
Chih-Chung Chang43fcc392011-08-02 16:17:39 +080041 NativeWindowRenderer.cpp
Chih-Chung Chang99698662011-06-30 14:21:38 +080042
43LOCAL_MODULE_TAGS := optional
44
45LOCAL_STATIC_LIBRARIES := \
46 libvideoeditor_osal \
47 libstagefright_color_conversion
48
49
50
51LOCAL_SHARED_LIBRARIES := \
Glenn Kasten7bdbbc72011-12-16 11:07:44 -080052 libaudioutils \
Chih-Chung Chang99698662011-06-30 14:21:38 +080053 libbinder \
54 libutils \
55 libcutils \
56 libmedia \
57 libdrmframework \
58 libstagefright \
59 libstagefright_omx \
60 libstagefright_foundation \
61 libgui \
62 libaudioflinger \
Chih-Chung Chang43fcc392011-08-02 16:17:39 +080063 libui \
64 libEGL \
65 libGLESv2
Chih-Chung Chang99698662011-06-30 14:21:38 +080066
67
68LOCAL_C_INCLUDES += \
Glenn Kasten7bdbbc72011-12-16 11:07:44 -080069 $(TOP)/system/media/audio_utils/include \
Chih-Chung Chang99698662011-06-30 14:21:38 +080070 $(TOP)/frameworks/base/core/jni \
71 $(TOP)/frameworks/base/include \
72 $(TOP)/frameworks/base/include/media \
73 $(TOP)/frameworks/base/media/libmediaplayerservice \
74 $(TOP)/frameworks/base/media/libstagefright \
75 $(TOP)/frameworks/base/media/libstagefright/include \
76 $(TOP)/frameworks/base/media/libstagefright/rtsp \
77 $(JNI_H_INCLUDE) \
78 $(call include-path-for, corecg graphics) \
79 $(TOP)/frameworks/base/include/media/stagefright/openmax \
80 $(TOP)/frameworks/media/libvideoeditor/osal/inc \
81 $(TOP)/frameworks/media/libvideoeditor/vss/common/inc \
82 $(TOP)/frameworks/media/libvideoeditor/vss/mcs/inc \
83 $(TOP)/frameworks/media/libvideoeditor/vss/inc \
84 $(TOP)/frameworks/media/libvideoeditor/vss/stagefrightshells/inc \
85 $(TOP)/frameworks/media/libvideoeditor/lvpp \
Chih-Chung Chang7efb8ef2011-07-22 09:01:36 +080086 $(TOP)/frameworks/media/libvideoeditor/include \
Chih-Chung Chang99698662011-06-30 14:21:38 +080087 $(TOP)/frameworks/base/media/jni/mediaeditor \
88 $(TOP)/frameworks/base/services/audioflinger
89
90
Jeff Brown2dade012011-07-11 22:12:22 -070091LOCAL_SHARED_LIBRARIES += libdl
Chih-Chung Chang99698662011-06-30 14:21:38 +080092
93# All of the shared libraries we link against.
94LOCAL_LDLIBS := \
95 -lpthread -ldl
96
97LOCAL_CFLAGS += -Wno-multichar \
98 -DM4_ENABLE_RENDERINGMODE \
99 -DUSE_STAGEFRIGHT_CODECS \
100 -DUSE_STAGEFRIGHT_AUDIODEC \
101 -DUSE_STAGEFRIGHT_VIDEODEC \
102 -DUSE_STAGEFRIGHT_AUDIOENC \
103 -DUSE_STAGEFRIGHT_VIDEOENC \
104 -DUSE_STAGEFRIGHT_READERS \
105 -DUSE_STAGEFRIGHT_3GPP_READER
106
107include $(BUILD_SHARED_LIBRARY)
108
109#include $(call all-makefiles-under,$(LOCAL_PATH))