get rid of port_config.h
[picodrive.git] / jni / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 include $(CLEAR_VARS)
4
5 ifeq ($(NEON_BUILD)$(TARGET_ARCH_ABI),1armeabi-v7a)
6   LOCAL_MODULE := retro_picodrive-neon
7 else
8   LOCAL_MODULE := retro_picodrive
9 endif
10
11 R := ../
12 FR := $(LOCAL_PATH)/$(R)
13
14 use_cyclone = 0
15 use_fame = 0
16 use_musashi = 0
17 use_drz80 = 0
18 use_cz80 = 0
19 use_sh2drc = 0
20 use_sh2mame = 0
21 use_svpdrc = 0
22
23 asm_memory = 0
24 asm_render = 0
25 asm_ym2612 = 0
26 asm_misc = 0
27 asm_cdpico = 0
28 asm_cdmemory = 0
29 asm_mix = 0
30
31 ifeq ($(TARGET_ARCH),arm)
32   LOCAL_ARM_MODE := arm
33   ifeq ($(NEON_BUILD),1)
34     LOCAL_ARM_NEON := true
35   endif
36
37   use_cyclone = 1
38   use_drz80 = 1
39   use_sh2drc = 1
40   use_svpdrc = 1
41
42   asm_memory = 1
43   asm_render = 1
44   asm_ym2612 = 1
45   asm_misc = 1
46   asm_cdpico = 1
47   asm_cdmemory = 1
48   asm_mix = 1
49 else
50   use_fame = 1
51   use_cz80 = 1
52   use_sh2mame = 1
53 endif
54
55 # sources
56 SRCS_COMMON :=
57 DEFINES :=
58 ARCH := $(TARGET_ARCH)
59 include $(R)platform/common/common.mak
60
61 LOCAL_SRC_FILES += $(SRCS_COMMON)
62 LOCAL_SRC_FILES += $(R)platform/libretro.c
63 LOCAL_SRC_FILES += $(R)platform/common/mp3.c
64 LOCAL_SRC_FILES += $(R)platform/common/mp3_dummy.c
65
66 # zlib/unzip
67 LOCAL_SRC_FILES += $(R)zlib/gzio.c $(R)zlib/inffast.c $(R)zlib/inflate.c \
68         $(R)zlib/inftrees.c $(R)zlib/trees.c $(R)zlib/deflate.c \
69         $(R)zlib/crc32.c $(R)zlib/adler32.c $(R)zlib/zutil.c \
70         $(R)zlib/compress.c $(R)zlib/uncompr.c
71
72 LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c
73
74 LOCAL_C_INCLUDES += $(R)
75
76 LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
77 LOCAL_CFLAGS += -Wall -O3 -ffast-math -DNDEBUG
78 LOCAL_LDLIBS := -llog
79
80 include $(BUILD_SHARED_LIBRARY)