blob: 51022bd63cdb94ecc5f2d1d1ad59d7f339ad1e22 [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 \
38 PreviewRenderer.cpp
39
40LOCAL_MODULE_TAGS := development
41
42LOCAL_STATIC_LIBRARIES := \
43 libvideoeditor_osal \
44 libstagefright_color_conversion
45
46
47
48LOCAL_SHARED_LIBRARIES := \
49 libbinder \
50 libutils \
51 libcutils \
52 libmedia \
53 libstagefright \
54 libstagefright_omx \
55 libstagefright_foundation \
56 libsurfaceflinger_client \
57 libaudioflinger \
58 libui
59
60
61LOCAL_C_INCLUDES += \
62 $(TOP)/frameworks/base/core/jni \
63 $(TOP)/frameworks/base/include \
64 $(TOP)/frameworks/base/include/media \
65 $(TOP)/frameworks/base/media/libmediaplayerservice \
66 $(TOP)/frameworks/base/media/libstagefright \
67 $(TOP)/frameworks/base/media/libstagefright/include \
68 $(TOP)/frameworks/base/media/libstagefright/rtsp \
69 $(JNI_H_INCLUDE) \
70 $(call include-path-for, corecg graphics) \
71 $(TOP)/external/opencore/extern_libs_v2/khronos/openmax/include \
72 $(TOP)/external/opencore/android \
73 $(TOP)/vendor/qcom/proprietary/qdsp6/mm-core/omxcore/inc \
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
84ifeq ($(TARGET_SIMULATOR),true)
85else
86 LOCAL_SHARED_LIBRARIES += libdl
87endif
88
89# All of the shared libraries we link against.
90LOCAL_LDLIBS := \
91 -lpthread -ldl
92
93LOCAL_CFLAGS += -Wno-multichar \
94 -DM4_ENABLE_RENDERINGMODE \
95 -DUSE_STAGEFRIGHT_CODECS \
96 -DUSE_STAGEFRIGHT_AUDIODEC \
97 -DUSE_STAGEFRIGHT_VIDEODEC \
98 -DUSE_STAGEFRIGHT_AUDIOENC \
99 -DUSE_STAGEFRIGHT_VIDEOENC \
100 -DUSE_STAGEFRIGHT_READERS \
101 -DUSE_STAGEFRIGHT_3GPP_READER
102
103
104# Don't prelink this library. For more efficient code, you may want
105# to add this library to the prelink map and set this to true.
106LOCAL_PRELINK_MODULE := false
107
108include $(BUILD_SHARED_LIBRARY)
109
110#include $(call all-makefiles-under,$(LOCAL_PATH))