aboutsummaryrefslogtreecommitdiff
path: root/jni/Android.mk
blob: 579cb12f93075c6428383a0cf1fd5917f2567719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
	LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif

CORE_DIR     := ../source
LIBRETRO_DIR := ..

DEBUG                 = 0
PERF_TEST             = 0
#HAVE_GRIFFIN          = 1
HAVE_GRIFFIN          = 0
LOAD_FROM_MEMORY_TEST = 1
USE_BLARGG_APU        = 0


LOCAL_MODULE    := retro

ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DANDROID_ARM
LOCAL_ARM_MODE := arm
endif

ifeq ($(TARGET_ARCH),x86)
LOCAL_CFLAGS +=  -DANDROID_X86
endif

ifeq ($(TARGET_ARCH),mips)
LOCAL_CFLAGS += -DANDROID_MIPS -D__mips__ -D__MIPSEL__
endif


include ../Makefile.common

LOCAL_SRC_FILES += $(SOURCES_C)
LOCAL_CFLAGS    += -std=gnu99 -ffast-math -DINLINE=inline $(FLAGS)

include $(BUILD_SHARED_LIBRARY)