Dharmaray Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 1 | #
|
Dharmaray Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 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 |
|
| 17 | LOCAL_PATH:= $(call my-dir)
|
| 18 |
|
| 19 | #
|
| 20 | # libvideoeditor_osal
|
| 21 | #
|
| 22 |
|
| 23 | include $(CLEAR_VARS)
|
| 24 |
|
| 25 | LOCAL_MODULE:= libvideoeditor_osal
|
| 26 |
|
| 27 | LOCAL_SRC_FILES:= \
|
| 28 | M4OSA_CharStar.c \
|
| 29 | M4OSA_Clock.c \
|
Dharmaray Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 30 | M4OSA_FileCommon.c \
|
Dharmaray Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 31 | M4OSA_FileReader.c \
|
Dharmaray Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 32 | M4OSA_FileWriter.c \
|
Dharmaray Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 33 | M4OSA_Mutex.c \
|
| 34 | M4OSA_Random.c \
|
| 35 | M4OSA_Semaphore.c \
|
Dharmaray Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 36 | M4OSA_Thread.c \
|
| 37 | M4PSW_DebugTrace.c \
|
| 38 | M4PSW_MemoryInterface.c \
|
| 39 | M4PSW_Trace.c \
|
| 40 | LVOSA_FileReader_optim.c
|
| 41 |
|
Dharmaray Kundargi | bf32708 | 2011-01-19 12:08:27 -0800 | [diff] [blame] | 42 | LOCAL_MODULE_TAGS := optional
|
Dharmaray Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 43 |
|
| 44 | LOCAL_SHARED_LIBRARIES := libcutils libutils
|
| 45 |
|
| 46 | LOCAL_C_INCLUDES += \
|
| 47 | $(TOP)/frameworks/media/libvideoeditor/osal/inc \
|
| 48 |
|
| 49 | ifeq ($(TARGET_SIMULATOR),true)
|
| 50 | else
|
| 51 | LOCAL_SHARED_LIBRARIES += libdl
|
| 52 | endif
|
| 53 |
|
| 54 | # All of the shared libraries we link against.
|
| 55 | LOCAL_LDLIBS := \
|
| 56 | -lpthread -ldl
|
| 57 |
|
| 58 | LOCAL_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 Kundargi | 855ec7c | 2011-01-16 16:05:58 -0800 | [diff] [blame] | 69 | include $(BUILD_STATIC_LIBRARY)
|
| 70 |
|