blob: b73b9ae7a2a94a027376da6b1e36e2976167aafa [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# libvideoeditor_osal
21#
22
23include $(CLEAR_VARS)
24
25LOCAL_MODULE:= libvideoeditor_osal
26
27LOCAL_SRC_FILES:= \
28 M4OSA_CharStar.c \
29 M4OSA_Clock.c \
30 M4OSA_FileCommon.c \
31 M4OSA_FileReader.c \
32 M4OSA_FileWriter.c \
33 M4OSA_Mutex.c \
34 M4OSA_Random.c \
35 M4OSA_Semaphore.c \
36 M4OSA_Thread.c \
37 M4PSW_DebugTrace.c \
38 M4PSW_MemoryInterface.c \
39 M4PSW_Trace.c \
40 LVOSA_FileReader_optim.c
41
42LOCAL_MODULE_TAGS := optional
43
44LOCAL_SHARED_LIBRARIES := libcutils libutils
45
46LOCAL_C_INCLUDES += \
James Dongecb31102012-03-22 19:36:39 -070047 $(TOP)/frameworks/av/libvideoeditor/osal/inc \
Chih-Chung Chang99698662011-06-30 14:21:38 +080048
Jeff Brown2dade012011-07-11 22:12:22 -070049LOCAL_SHARED_LIBRARIES += libdl
Chih-Chung Chang99698662011-06-30 14:21:38 +080050
51# All of the shared libraries we link against.
52LOCAL_LDLIBS := \
53 -lpthread -ldl
54
55LOCAL_CFLAGS += -Wno-multichar \
56 -D__ANDROID__ \
57 -DM4OSA_FILE_BLOCK_WITH_SEMAPHORE \
58 -DUSE_STAGEFRIGHT_CODECS \
59 -DUSE_STAGEFRIGHT_AUDIODEC \
60 -DUSE_STAGEFRIGHT_VIDEODEC \
61 -DUSE_STAGEFRIGHT_AUDIOENC \
62 -DUSE_STAGEFRIGHT_VIDEOENC \
63 -DUSE_STAGEFRIGHT_READERS \
64 -DUSE_STAGEFRIGHT_3GPP_READER
65
James Donga86c8092012-05-15 00:27:46 -070066include $(BUILD_SHARED_LIBRARY)
Chih-Chung Chang99698662011-06-30 14:21:38 +080067