blob: b4faa6179de2db6a0a498728d0700d41e150f280 [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 \
Chih-Chung Chang7efb8ef2011-07-22 09:01:36 +080037 PreviewRenderer.cpp \
Chih-Chung Chang2aa01fd2011-08-05 17:52:45 +080038 I420ColorConverter.cpp \
Chih-Chung Chang43fcc392011-08-02 16:17:39 +080039 NativeWindowRenderer.cpp
Chih-Chung Chang99698662011-06-30 14:21:38 +080040
41LOCAL_MODULE_TAGS := optional
42
43LOCAL_STATIC_LIBRARIES := \
44 libvideoeditor_osal \
45 libstagefright_color_conversion
46
47
48
49LOCAL_SHARED_LIBRARIES := \
Glenn Kasten7bdbbc72011-12-16 11:07:44 -080050 libaudioutils \
Chih-Chung Chang99698662011-06-30 14:21:38 +080051 libbinder \
52 libutils \
53 libcutils \
54 libmedia \
Glenn Kasten16252eb2012-03-13 15:12:33 -070055 libmedia_native \
Chih-Chung Chang99698662011-06-30 14:21:38 +080056 libdrmframework \
57 libstagefright \
58 libstagefright_omx \
59 libstagefright_foundation \
60 libgui \
61 libaudioflinger \
Chih-Chung Chang43fcc392011-08-02 16:17:39 +080062 libui \
63 libEGL \
64 libGLESv2
Chih-Chung Chang99698662011-06-30 14:21:38 +080065
66
67LOCAL_C_INCLUDES += \
Glenn Kasten7bdbbc72011-12-16 11:07:44 -080068 $(TOP)/system/media/audio_utils/include \
Chih-Chung Chang99698662011-06-30 14:21:38 +080069 $(TOP)/frameworks/base/core/jni \
Chih-Chung Chang99698662011-06-30 14:21:38 +080070 $(TOP)/frameworks/base/media/libmediaplayerservice \
71 $(TOP)/frameworks/base/media/libstagefright \
72 $(TOP)/frameworks/base/media/libstagefright/include \
73 $(TOP)/frameworks/base/media/libstagefright/rtsp \
74 $(JNI_H_INCLUDE) \
75 $(call include-path-for, corecg graphics) \
James Dongecb31102012-03-22 19:36:39 -070076 $(TOP)/frameworks/av/libvideoeditor/osal/inc \
77 $(TOP)/frameworks/av/libvideoeditor/vss/common/inc \
78 $(TOP)/frameworks/av/libvideoeditor/vss/mcs/inc \
79 $(TOP)/frameworks/av/libvideoeditor/vss/inc \
80 $(TOP)/frameworks/av/libvideoeditor/vss/stagefrightshells/inc \
81 $(TOP)/frameworks/av/libvideoeditor/lvpp \
Chih-Chung Chang99698662011-06-30 14:21:38 +080082 $(TOP)/frameworks/base/media/jni/mediaeditor \
James Dongecb31102012-03-22 19:36:39 -070083 $(TOP)/frameworks/base/services/audioflinger \
84 $(TOP)/frameworks/native/include/media/editor \
85 $(TOP)/frameworks/native/include/media/openmax \
86 $(TOP)/frameworks/native/services/audioflinger
Chih-Chung Chang99698662011-06-30 14:21:38 +080087
88
Jeff Brown2dade012011-07-11 22:12:22 -070089LOCAL_SHARED_LIBRARIES += libdl
Chih-Chung Chang99698662011-06-30 14:21:38 +080090
91# All of the shared libraries we link against.
92LOCAL_LDLIBS := \
93 -lpthread -ldl
94
95LOCAL_CFLAGS += -Wno-multichar \
96 -DM4_ENABLE_RENDERINGMODE \
97 -DUSE_STAGEFRIGHT_CODECS \
98 -DUSE_STAGEFRIGHT_AUDIODEC \
99 -DUSE_STAGEFRIGHT_VIDEODEC \
100 -DUSE_STAGEFRIGHT_AUDIOENC \
101 -DUSE_STAGEFRIGHT_VIDEOENC \
102 -DUSE_STAGEFRIGHT_READERS \
103 -DUSE_STAGEFRIGHT_3GPP_READER
104
105include $(BUILD_SHARED_LIBRARY)
106
107#include $(call all-makefiles-under,$(LOCAL_PATH))