Commit 6d629809 authored by fbarchard@google.com's avatar fbarchard@google.com

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
parent 63258696
# 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)
LOCAL_CPP_EXTENSION := .cc
common_SRC_FILES := \
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
common_CFLAGS := -Wall -fexceptions -DHAVE_ARMEABI_V7A=1 -mfloat-abi=softfp -mfpu=neon
common_C_INCLUDES = $(LOCAL_PATH)/include
# For the device
# =====================================================
# Device static library
source/video_common.cc
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
LOCAL_NDK_VERSION := 5
LOCAL_SDK_VERSION := 9
LOCAL_NDK_STL_VARIANT := stlport_static
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -DLIBYUV_NEON
LOCAL_SRC_FILES += \
source/rotate_neon.cc.neon \
source/row_neon.cc.neon
endif
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_CFLAGS += $(common_CFLAGS)
LOCAL_C_INCLUDES += $(common_C_INCLUDES)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_MODULE:= libyuv_static
LOCAL_MODULE := libyuv_static
LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_LIBRARY)
endif
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment