Android.mk revision 2dade0141b45b3538183bd2d6c0c53a0345e92af
1#
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 \
39    PreviewRenderer.cpp
40
41LOCAL_MODULE_TAGS := optional
42
43LOCAL_STATIC_LIBRARIES := \
44    libvideoeditor_osal \
45    libstagefright_color_conversion
46
47
48
49LOCAL_SHARED_LIBRARIES := \
50    libbinder          \
51    libutils           \
52    libcutils          \
53    libmedia           \
54    libdrmframework    \
55    libstagefright  \
56    libstagefright_omx  \
57    libstagefright_foundation \
58    libgui \
59    libaudioflinger \
60    libui
61
62
63LOCAL_C_INCLUDES += \
64    $(TOP)/frameworks/base/core/jni \
65    $(TOP)/frameworks/base/include \
66    $(TOP)/frameworks/base/include/media \
67    $(TOP)/frameworks/base/media/libmediaplayerservice \
68    $(TOP)/frameworks/base/media/libstagefright \
69    $(TOP)/frameworks/base/media/libstagefright/include \
70    $(TOP)/frameworks/base/media/libstagefright/rtsp \
71    $(JNI_H_INCLUDE) \
72    $(call include-path-for, corecg graphics) \
73    $(TOP)/frameworks/base/include/media/stagefright/openmax \
74    $(TOP)/frameworks/media/libvideoeditor/osal/inc \
75    $(TOP)/frameworks/media/libvideoeditor/vss/common/inc \
76    $(TOP)/frameworks/media/libvideoeditor/vss/mcs/inc \
77    $(TOP)/frameworks/media/libvideoeditor/vss/inc \
78    $(TOP)/frameworks/media/libvideoeditor/vss/stagefrightshells/inc \
79    $(TOP)/frameworks/media/libvideoeditor/lvpp \
80    $(TOP)/frameworks/base/media/jni/mediaeditor \
81    $(TOP)/frameworks/base/services/audioflinger
82
83
84LOCAL_SHARED_LIBRARIES += libdl
85
86# All of the shared libraries we link against.
87LOCAL_LDLIBS := \
88    -lpthread -ldl
89
90LOCAL_CFLAGS += -Wno-multichar \
91     -DM4_ENABLE_RENDERINGMODE \
92    -DUSE_STAGEFRIGHT_CODECS \
93    -DUSE_STAGEFRIGHT_AUDIODEC \
94    -DUSE_STAGEFRIGHT_VIDEODEC \
95    -DUSE_STAGEFRIGHT_AUDIOENC \
96    -DUSE_STAGEFRIGHT_VIDEOENC \
97    -DUSE_STAGEFRIGHT_READERS \
98    -DUSE_STAGEFRIGHT_3GPP_READER
99
100include $(BUILD_SHARED_LIBRARY)
101
102#include $(call all-makefiles-under,$(LOCAL_PATH))
103