2013-05-27 01:28:32 +02:00
|
|
|
RARCH_VERSION = "0.9.9"
|
2012-10-14 05:18:53 +02:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
2013-01-02 19:09:58 +01:00
|
|
|
PERF_TEST := 0
|
2012-12-04 07:57:31 +01:00
|
|
|
HAVE_NEON := 1
|
2012-12-16 04:13:31 +01:00
|
|
|
HAVE_LOGGER := 1
|
2012-10-14 05:18:53 +02:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2012-10-21 16:37:15 +02:00
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
LOCAL_CFLAGS += -DANDROID_ARM -marm
|
2012-10-25 20:58:05 +02:00
|
|
|
LOCAL_ARM_MODE := arm
|
2012-10-21 16:37:15 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),x86)
|
2012-11-02 05:32:52 +01:00
|
|
|
LOCAL_CFLAGS += -DANDROID_X86 -DHAVE_SSSE3
|
2012-10-21 16:37:15 +02:00
|
|
|
endif
|
|
|
|
|
2012-11-03 22:25:54 +01:00
|
|
|
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
2012-12-03 04:58:44 +01:00
|
|
|
|
2012-12-04 07:57:31 +01:00
|
|
|
ifeq ($(HAVE_NEON),1)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_NEON
|
2012-12-05 22:45:29 +01:00
|
|
|
LOCAL_SRC_FILES += ../../../audio/utils_neon.S.neon
|
2012-12-03 04:58:44 +01:00
|
|
|
endif
|
|
|
|
|
2012-12-04 07:57:31 +01:00
|
|
|
ifeq ($(HAVE_NEON),1)
|
2012-12-02 23:50:32 +01:00
|
|
|
LOCAL_SRC_FILES += ../../../audio/sinc_neon.S.neon
|
2012-11-03 22:25:54 +01:00
|
|
|
endif
|
2013-04-07 03:41:06 +02:00
|
|
|
LOCAL_CFLAGS += -DSINC_LOWER_QUALITY
|
2012-12-03 04:58:44 +01:00
|
|
|
|
2012-12-03 01:29:04 +01:00
|
|
|
LOCAL_CFLAGS += -DANDROID_ARM_V7
|
|
|
|
endif
|
|
|
|
|
2012-11-03 22:25:54 +01:00
|
|
|
|
2012-10-21 16:37:15 +02:00
|
|
|
ifeq ($(TARGET_ARCH),mips)
|
|
|
|
LOCAL_CFLAGS += -DANDROID_MIPS -D__mips__ -D__MIPSEL__
|
|
|
|
endif
|
|
|
|
|
2012-10-14 07:21:12 +02:00
|
|
|
LOCAL_MODULE := retroarch-activity
|
2012-10-14 05:18:53 +02:00
|
|
|
|
|
|
|
RARCH_PATH := ../../..
|
2013-03-18 05:46:19 +01:00
|
|
|
LOCAL_SRC_FILES += $(RARCH_PATH)/griffin/griffin.c
|
2012-11-17 17:16:11 +01:00
|
|
|
|
2012-12-16 04:13:31 +01:00
|
|
|
ifeq ($(HAVE_LOGGER), 1)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_LOGGER
|
|
|
|
LOGGER_LDLIBS := -llog
|
|
|
|
endif
|
2012-10-14 05:18:53 +02:00
|
|
|
|
2012-10-21 16:37:15 +02:00
|
|
|
ifeq ($(PERF_TEST), 1)
|
|
|
|
LOCAL_CFLAGS += -DPERF_TEST
|
|
|
|
endif
|
2012-10-18 05:45:21 +02:00
|
|
|
|
2013-05-22 16:02:21 +02:00
|
|
|
LOCAL_CFLAGS += -Wall -pthread -Wno-unused-function -O3 -fno-stack-protector -funroll-loops -DNDEBUG -DRARCH_MOBILE -DHAVE_GRIFFIN -DANDROID -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_FBO -DHAVE_OVERLAY -DHAVE_OPENGLES -DHAVE_VID_CONTEXT -DHAVE_OPENGLES2 -DGLSL_DEBUG -DHAVE_GLSL -DHAVE_RGUI -DHAVE_SCREENSHOTS -DWANT_MINIZ -DHAVE_ZLIB -DINLINE=inline -DLSB_FIRST -DHAVE_THREADS -D__LIBRETRO__ -DRARCH_PERFORMANCE_MODE -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -std=gnu99 -I../../../deps/miniz
|
2012-10-14 05:18:53 +02:00
|
|
|
|
2012-12-16 04:13:31 +01:00
|
|
|
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -landroid -lEGL -lGLESv2 $(LOGGER_LDLIBS) -ldl
|
2012-10-14 05:18:53 +02:00
|
|
|
|
2012-10-18 05:45:21 +02:00
|
|
|
LOCAL_CFLAGS += -DHAVE_SL
|
|
|
|
LOCAL_LDLIBS += -lOpenSLES
|
|
|
|
|
2012-10-14 05:18:53 +02:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|