blob: bfb440b427f07e43654f83056971079b359039b6 [file] [log] [blame]
Dharmaray Kundargi855ec7c2011-01-16 16:05:58 -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# 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_FileCache.c \
32 M4OSA_FileCommon.c \
33 M4OSA_FileExtra.c \
34 M4OSA_FileReader.c \
35 M4OSA_FileReader_RAM.c \
36 M4OSA_FileWriter.c \
37 M4OSA_FileWriter_RAM.c \
38 M4OSA_Mutex.c \
39 M4OSA_Random.c \
40 M4OSA_Semaphore.c \
41 M4OSA_String.c \
42 M4OSA_String_priv.c \
43 M4OSA_Thread.c \
44 M4PSW_DebugTrace.c \
45 M4PSW_MemoryInterface.c \
46 M4PSW_Trace.c \
47 LVOSA_FileReader_optim.c
48
49LOCAL_MODULE_TAGS := development
50
51LOCAL_SHARED_LIBRARIES := libcutils libutils
52
53LOCAL_C_INCLUDES += \
54 $(TOP)/frameworks/media/libvideoeditor/osal/inc \
55
56ifeq ($(TARGET_SIMULATOR),true)
57else
58 LOCAL_SHARED_LIBRARIES += libdl
59endif
60
61# All of the shared libraries we link against.
62LOCAL_LDLIBS := \
63 -lpthread -ldl
64
65LOCAL_CFLAGS += -Wno-multichar \
66 -D__ANDROID__ \
67 -DM4OSA_FILE_BLOCK_WITH_SEMAPHORE \
68 -DUSE_STAGEFRIGHT_CODECS \
69 -DUSE_STAGEFRIGHT_AUDIODEC \
70 -DUSE_STAGEFRIGHT_VIDEODEC \
71 -DUSE_STAGEFRIGHT_AUDIOENC \
72 -DUSE_STAGEFRIGHT_VIDEOENC \
73 -DUSE_STAGEFRIGHT_READERS \
74 -DUSE_STAGEFRIGHT_3GPP_READER
75
76# Don't prelink this library. For more efficient code, you may want
77# to add this library to the prelink map and set this to true.
78LOCAL_PRELINK_MODULE := false
79
80include $(BUILD_STATIC_LIBRARY)
81