Android.mk revision 947721ba962c19913b76658cdbb19ae8c77c9c50
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# libvideoeditor_osal
22#
23
24include $(CLEAR_VARS)
25
26LOCAL_MODULE:= libvideoeditor_osal
27
28LOCAL_SRC_FILES:=          \
29    M4OSA_CharStar.c \
30    M4OSA_Clock.c \
31    M4OSA_FileCommon.c \
32    M4OSA_FileReader.c \
33    M4OSA_FileWriter.c \
34    M4OSA_Mutex.c \
35    M4OSA_Random.c \
36    M4OSA_Semaphore.c \
37    M4OSA_Thread.c \
38    M4PSW_DebugTrace.c \
39    M4PSW_MemoryInterface.c \
40    M4PSW_Trace.c \
41    LVOSA_FileReader_optim.c
42
43LOCAL_MODULE_TAGS := optional
44
45LOCAL_SHARED_LIBRARIES := libcutils libutils
46
47LOCAL_C_INCLUDES += \
48    $(TOP)/frameworks/media/libvideoeditor/osal/inc \
49
50ifeq ($(TARGET_SIMULATOR),true)
51else
52    LOCAL_SHARED_LIBRARIES += libdl
53endif
54
55# All of the shared libraries we link against.
56LOCAL_LDLIBS := \
57    -lpthread -ldl
58
59LOCAL_CFLAGS += -Wno-multichar \
60    -D__ANDROID__ \
61    -DM4OSA_FILE_BLOCK_WITH_SEMAPHORE \
62    -DUSE_STAGEFRIGHT_CODECS \
63    -DUSE_STAGEFRIGHT_AUDIODEC \
64    -DUSE_STAGEFRIGHT_VIDEODEC \
65    -DUSE_STAGEFRIGHT_AUDIOENC \
66    -DUSE_STAGEFRIGHT_VIDEOENC \
67    -DUSE_STAGEFRIGHT_READERS \
68    -DUSE_STAGEFRIGHT_3GPP_READER
69
70include $(BUILD_STATIC_LIBRARY)
71
72