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 # This is the Android makefile for libyuv for both platform and NDK.
# build it with the Android NDK. LOCAL_PATH:= $(call my-dir)
ifneq ($(TARGET_ARCH),x86)
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
common_SRC_FILES := \ LOCAL_SRC_FILES := \
source/compare.cc \ source/compare.cc \
source/convert.cc \ source/convert.cc \
source/convert_from.cc \ source/convert_from.cc \
...@@ -16,33 +17,19 @@ common_SRC_FILES := \ ...@@ -16,33 +17,19 @@ common_SRC_FILES := \
source/row_posix.cc \ source/row_posix.cc \
source/scale.cc \ source/scale.cc \
source/scale_argb.cc \ source/scale_argb.cc \
source/video_common.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
include $(CLEAR_VARS) ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -DLIBYUV_NEON
LOCAL_CPP_EXTENSION := .cc LOCAL_SRC_FILES += \
source/rotate_neon.cc.neon \
LOCAL_NDK_VERSION := 5 source/row_neon.cc.neon
LOCAL_SDK_VERSION := 9 endif
LOCAL_NDK_STL_VARIANT := stlport_static
LOCAL_SRC_FILES := $(common_SRC_FILES) LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_CFLAGS += $(common_CFLAGS)
LOCAL_C_INCLUDES += $(common_C_INCLUDES)
LOCAL_MODULE:= libyuv_static LOCAL_MODULE := libyuv_static
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_LIBRARY) include $(BUILD_STATIC_LIBRARY)
endif
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 389 Version: 390
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -111,7 +111,7 @@ extern "C" { ...@@ -111,7 +111,7 @@ extern "C" {
#endif #endif
// The following are available on Neon platforms // 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_MIRRORROW_NEON
#define HAS_MIRRORROWUV_NEON #define HAS_MIRRORROWUV_NEON
#define HAS_SPLITUV_NEON #define HAS_SPLITUV_NEON
......
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 389 #define LIBYUV_VERSION 390
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #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