(Android) Refactor Android.mk - better defines

This commit is contained in:
twinaphex 2012-12-03 04:58:44 +01:00
parent 6a7e03aadb
commit ddc9c94884
2 changed files with 11 additions and 2 deletions

View File

@ -2,7 +2,8 @@ RARCH_VERSION = "0.9.8-beta3"
LOCAL_PATH := $(call my-dir)
PERF_TEST := 1
HAVE_OPENSL := 1
WANT_NEON := 0
WANT_NEON := 1
HAVE_SINC := 1
include $(CLEAR_VARS)
@ -16,10 +17,18 @@ LOCAL_CFLAGS += -DANDROID_X86 -DHAVE_SSSE3
endif
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
ifeq ($(WANT_NEON),1)
LOCAL_CFLAGS += -DWANT_NEON
endif
ifeq ($(HAVE_SINC),1)
ifeq ($(WANT_NEON),1)
LOCAL_SRC_FILES += ../../../audio/sinc_neon.S.neon
endif
LOCAL_CFLAGS += -DHAVE_SINC
endif
LOCAL_CFLAGS += -DANDROID_ARM_V7
endif

View File

@ -247,7 +247,7 @@ FIFO BUFFER
/*============================================================
AUDIO HERMITE
============================================================ */
#ifdef WANT_NEON
#ifdef HAVE_SINC
#include "../../audio/sinc.c"
#else
#include "../../audio/hermite.c"