get rid of port_config.h
[picodrive.git] / jni / Android.mk
... / ...
CommitLineData
1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5ifeq ($(NEON_BUILD)$(TARGET_ARCH_ABI),1armeabi-v7a)
6 LOCAL_MODULE := retro_picodrive-neon
7else
8 LOCAL_MODULE := retro_picodrive
9endif
10
11R := ../
12FR := $(LOCAL_PATH)/$(R)
13
14use_cyclone = 0
15use_fame = 0
16use_musashi = 0
17use_drz80 = 0
18use_cz80 = 0
19use_sh2drc = 0
20use_sh2mame = 0
21use_svpdrc = 0
22
23asm_memory = 0
24asm_render = 0
25asm_ym2612 = 0
26asm_misc = 0
27asm_cdpico = 0
28asm_cdmemory = 0
29asm_mix = 0
30
31ifeq ($(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
49else
50 use_fame = 1
51 use_cz80 = 1
52 use_sh2mame = 1
53endif
54
55# sources
56SRCS_COMMON :=
57DEFINES :=
58ARCH := $(TARGET_ARCH)
59include $(R)platform/common/common.mak
60
61LOCAL_SRC_FILES += $(SRCS_COMMON)
62LOCAL_SRC_FILES += $(R)platform/libretro.c
63LOCAL_SRC_FILES += $(R)platform/common/mp3.c
64LOCAL_SRC_FILES += $(R)platform/common/mp3_dummy.c
65
66# zlib/unzip
67LOCAL_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
72LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c
73
74LOCAL_C_INCLUDES += $(R)
75
76LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
77LOCAL_CFLAGS += -Wall -O3 -ffast-math -DNDEBUG
78LOCAL_LDLIBS := -llog
79
80include $(BUILD_SHARED_LIBRARY)