Android.mk revision ba119eb166c9c06060c3d05b23202402287d7566
1#
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 := eng 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)/frameworks/base/include/media/stagefright/openmax \
72    $(TOP)/frameworks/media/libvideoeditor/osal/inc \
73    $(TOP)/frameworks/media/libvideoeditor/vss/common/inc \
74    $(TOP)/frameworks/media/libvideoeditor/vss/mcs/inc \
75    $(TOP)/frameworks/media/libvideoeditor/vss/inc \
76    $(TOP)/frameworks/media/libvideoeditor/vss/stagefrightshells/inc \
77    $(TOP)/frameworks/media/libvideoeditor/lvpp \
78    $(TOP)/frameworks/base/media/jni/mediaeditor \
79    $(TOP)/frameworks/base/services/audioflinger
80
81
82ifeq ($(TARGET_SIMULATOR),true)
83else
84    LOCAL_SHARED_LIBRARIES += libdl
85endif
86
87# All of the shared libraries we link against.
88LOCAL_LDLIBS := \
89    -lpthread -ldl
90
91LOCAL_CFLAGS += -Wno-multichar \
92     -DM4_ENABLE_RENDERINGMODE \
93    -DUSE_STAGEFRIGHT_CODECS \
94    -DUSE_STAGEFRIGHT_AUDIODEC \
95    -DUSE_STAGEFRIGHT_VIDEODEC \
96    -DUSE_STAGEFRIGHT_AUDIOENC \
97    -DUSE_STAGEFRIGHT_VIDEOENC \
98    -DUSE_STAGEFRIGHT_READERS \
99    -DUSE_STAGEFRIGHT_3GPP_READER
100
101
102# Don't prelink this library.  For more efficient code, you may want
103# to add this library to the prelink map and set this to true.
104LOCAL_PRELINK_MODULE := false
105
106include $(BUILD_SHARED_LIBRARY)
107
108#include $(call all-makefiles-under,$(LOCAL_PATH))
109