shithub: openh264

Download patch

ref: a01d6812edcb72844ffc05a4bb3a65aba526ea63
parent: d8e78fee09c4fcb31cf126f41fec10fa42abfe98
author: Martin Storsjö <[email protected]>
date: Sun Jun 29 15:58:46 EDT 2014

Simplify the compiler flags for the android test projects

These parts aren't performance critical, thus overriding the
compiler optimization flags (and arm instruction mode) isn't
necessary.

--- a/codec/build/android/dec/jni/welsdecdemo.mk
+++ b/codec/build/android/dec/jni/welsdecdemo.mk
@@ -37,11 +37,7 @@
 #
 # Compile Flags and Link Libraries
 #
-LOCAL_CFLAGS := -O3 -DANDROID_NDK
-
-ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
-LOCAL_ARM_MODE := arm
-endif
+LOCAL_CFLAGS := -DANDROID_NDK
 
 LOCAL_LDLIBS := -llog
 LOCAL_SHARED_LIBRARIES := wels
--- a/codec/build/android/enc/jni/welsencdemo.mk
+++ b/codec/build/android/enc/jni/welsencdemo.mk
@@ -41,11 +41,7 @@
 #
 # Compile Flags and Link Libraries
 #
-LOCAL_CFLAGS := -O3 -DANDROID_NDK
-
-ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
-LOCAL_ARM_MODE := arm
-endif
+LOCAL_CFLAGS := -DANDROID_NDK
 
 LOCAL_LDLIBS := -llog
 LOCAL_SHARED_LIBRARIES := wels
--- a/test/build/android/jni/Android.mk
+++ b/test/build/android/jni/Android.mk
@@ -30,11 +30,7 @@
 #
 # Compile Flags and Link Libraries
 #
-LOCAL_CFLAGS := -O3 -DANDROID_NDK
-
-ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
-LOCAL_ARM_MODE := arm
-endif
+LOCAL_CFLAGS := -DANDROID_NDK
 
 LOCAL_LDLIBS := -llog
 LOCAL_SHARED_LIBRARIES := libUT