mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
Android makefile allow armv6 without neon and x86.
BUG=110 TEST=android try bot Review URL: https://webrtc-codereview.appspot.com/864007 git-svn-id: http://libyuv.googlecode.com/svn/trunk@390 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
6325869685
commit
6d62980977
43
Android.mk
43
Android.mk
@ -1,10 +1,11 @@
|
||||
# This is the Android makefile for libyuv so that we can
|
||||
# build it with the Android NDK.
|
||||
ifneq ($(TARGET_ARCH),x86)
|
||||
# This is the Android makefile for libyuv for both platform and NDK.
|
||||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
common_SRC_FILES := \
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
source/compare.cc \
|
||||
source/convert.cc \
|
||||
source/convert_from.cc \
|
||||
@ -16,33 +17,19 @@ common_SRC_FILES := \
|
||||
source/row_posix.cc \
|
||||
source/scale.cc \
|
||||
source/scale_argb.cc \
|
||||
source/video_common.cc \
|
||||
source/rotate_neon.cc \
|
||||
source/row_neon.cc
|
||||
source/video_common.cc
|
||||
|
||||
common_CFLAGS := -Wall -fexceptions -DHAVE_ARMEABI_V7A=1 -mfloat-abi=softfp -mfpu=neon
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
LOCAL_CFLAGS += -DLIBYUV_NEON
|
||||
LOCAL_SRC_FILES += \
|
||||
source/rotate_neon.cc.neon \
|
||||
source/row_neon.cc.neon
|
||||
endif
|
||||
|
||||
common_C_INCLUDES = $(LOCAL_PATH)/include
|
||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
|
||||
|
||||
# For the device
|
||||
# =====================================================
|
||||
# Device static library
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
|
||||
LOCAL_NDK_VERSION := 5
|
||||
LOCAL_SDK_VERSION := 9
|
||||
LOCAL_NDK_STL_VARIANT := stlport_static
|
||||
|
||||
LOCAL_SRC_FILES := $(common_SRC_FILES)
|
||||
LOCAL_CFLAGS += $(common_CFLAGS)
|
||||
LOCAL_C_INCLUDES += $(common_C_INCLUDES)
|
||||
|
||||
LOCAL_MODULE:= libyuv_static
|
||||
LOCAL_MODULE := libyuv_static
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
endif
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 389
|
||||
Version: 390
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -111,7 +111,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
// The following are available on Neon platforms
|
||||
#if !defined(YUV_DISABLE_ASM) && defined(__ARM_NEON__)
|
||||
#if !defined(YUV_DISABLE_ASM) && (defined(__ARM_NEON__) || defined(LIBYUV_NEON))
|
||||
#define HAS_MIRRORROW_NEON
|
||||
#define HAS_MIRRORROWUV_NEON
|
||||
#define HAS_SPLITUV_NEON
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 389
|
||||
#define LIBYUV_VERSION 390
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user