blob: 6e1d79ac00f41b6e64f2dac8ef44b92164cfa190 [file] [log] [blame]
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -08001#
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -08002# 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 \
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -080030 M4OSA_FileCommon.c \
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -080031 M4OSA_FileReader.c \
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -080032 M4OSA_FileWriter.c \
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -080033 M4OSA_Mutex.c \
34 M4OSA_Random.c \
35 M4OSA_Semaphore.c \
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -080036 M4OSA_Thread.c \
37 M4PSW_DebugTrace.c \
38 M4PSW_MemoryInterface.c \
39 M4PSW_Trace.c \
40 LVOSA_FileReader_optim.c
41
Dharmaray Kundargibf327082011-01-19 12:08:27 -080042LOCAL_MODULE_TAGS := optional
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -080043
44LOCAL_SHARED_LIBRARIES := libcutils libutils
45
46LOCAL_C_INCLUDES += \
47 $(TOP)/frameworks/media/libvideoeditor/osal/inc \
48
49ifeq ($(TARGET_SIMULATOR),true)
50else
51 LOCAL_SHARED_LIBRARIES += libdl
52endif
53
54# All of the shared libraries we link against.
55LOCAL_LDLIBS := \
56 -lpthread -ldl
57
58LOCAL_CFLAGS += -Wno-multichar \
59 -D__ANDROID__ \
60 -DM4OSA_FILE_BLOCK_WITH_SEMAPHORE \
61 -DUSE_STAGEFRIGHT_CODECS \
62 -DUSE_STAGEFRIGHT_AUDIODEC \
63 -DUSE_STAGEFRIGHT_VIDEODEC \
64 -DUSE_STAGEFRIGHT_AUDIOENC \
65 -DUSE_STAGEFRIGHT_VIDEOENC \
66 -DUSE_STAGEFRIGHT_READERS \
67 -DUSE_STAGEFRIGHT_3GPP_READER
68
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -080069include $(BUILD_STATIC_LIBRARY)
70