-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Android.mk
219 lines (205 loc) · 9.12 KB
/
Android.mk
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
AMIBERRY_LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PATH := $(AMIBERRY_LOCAL_PATH)
include $(LOCAL_PATH)/external/libguisan/Android.mk
LOCAL_PATH := $(AMIBERRY_LOCAL_PATH)
include $(CLEAR_VARS)
include $(LOCAL_PATH)/external/libxml2/Android.mk
LOCAL_PATH := $(AMIBERRY_LOCAL_PATH)
include $(CLEAR_VARS)
LOCAL_MODULE := amiberry
SDL_PATH := D:/Github/amiberry-android/app/jni/SDL
#LIBMPEG2_PATH := ../mpeg2
LIBPNG_PATH := D:/Github/amiberry-android/app/jni/SDL_image/external/libpng-1.6.37
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src \
$(LOCAL_PATH)/src/osdep \
$(LOCAL_PATH)/src/threaddep \
$(LOCAL_PATH)/src/include \
$(LOCAL_PATH)/src/archivers \
$(LOCAL_PATH)/external/libguisan/include \
$(LOCAL_PATH)/external/libxml2/include \
$(SDL_PATH)/include \
$(LIBPNG_PATH) \
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_ARM_NEON := true
LOCAL_CFLAGS := -DCPU_arm -DARM_HAS_DIV -DARMV6T2 -DARMV6_ASSEMBLY -DAMIBERRY -D_FILE_OFFSET_BITS=64 -DUSE_ARMNEON -DSTATIC_LIBXML
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
LOCAL_CFLAGS := -DCPU_AARCH64 -DAMIBERRY -D_FILE_OFFSET_BITS=64 -DSTATIC_LIBXML
endif
LOCAL_CPPFLAGS := -std=gnu++14 -pipe -frename-registers \
-Wno-shift-overflow -Wno-narrowing
LOCAL_LDFLAGS += -fuse-ld=gold
# Add your application source files here...
LOCAL_SRC_FILES := src/archivers/7z/BraIA64.c \
src/archivers/7z/Delta.c \
src/archivers/7z/Sha256.c \
src/archivers/7z/XzCrc64.c \
src/archivers/7z/XzDec.c \
src/akiko.cpp \
src/ar.cpp \
src/aros.rom.cpp \
src/audio.cpp \
src/autoconf.cpp \
src/blitfunc.cpp \
src/blittable.cpp \
src/blitter.cpp \
src/blkdev.cpp \
src/blkdev_cdimage.cpp \
src/bsdsocket.cpp \
src/calc.cpp \
src/cdrom.cpp \
src/cfgfile.cpp \
src/cia.cpp \
src/crc32.cpp \
src/custom.cpp \
src/devices.cpp \
src/disk.cpp \
src/diskutil.cpp \
src/dlopen.cpp \
src/drawing.cpp \
src/events.cpp \
src/expansion.cpp \
src/fdi2raw.cpp \
src/filesys.cpp \
src/flashrom.cpp \
src/fpp.cpp \
src/fsdb.cpp \
src/fsdb_unix.cpp \
src/fsusage.cpp \
src/gayle.cpp \
src/gfxboard.cpp \
src/gfxutil.cpp \
src/hardfile.cpp \
src/hrtmon.rom.cpp \
src/ide.cpp \
src/inputdevice.cpp \
src/keybuf.cpp \
src/main.cpp \
src/memory.cpp \
src/native2amiga.cpp \
src/rommgr.cpp \
src/rtc.cpp \
src/savestate.cpp \
src/scsi.cpp \
src/statusline.cpp \
src/traps.cpp \
src/uaelib.cpp \
src/uaeresource.cpp \
src/zfile.cpp \
src/zfile_archive.cpp \
src/archivers/7z/7zAlloc.cpp \
src/archivers/7z/7zBuf.cpp \
src/archivers/7z/7zCrc.cpp \
src/archivers/7z/7zCrcOpt.cpp \
src/archivers/7z/7zDec.cpp \
src/archivers/7z/7zIn.cpp \
src/archivers/7z/7zStream.cpp \
src/archivers/7z/Bcj2.cpp \
src/archivers/7z/Bra.cpp \
src/archivers/7z/Bra86.cpp \
src/archivers/7z/LzmaDec.cpp \
src/archivers/7z/Lzma2Dec.cpp \
src/archivers/7z/Xz.cpp \
src/archivers/dms/crc_csum.cpp \
src/archivers/dms/getbits.cpp \
src/archivers/dms/maketbl.cpp \
src/archivers/dms/pfile.cpp \
src/archivers/dms/tables.cpp \
src/archivers/dms/u_deep.cpp \
src/archivers/dms/u_heavy.cpp \
src/archivers/dms/u_init.cpp \
src/archivers/dms/u_medium.cpp \
src/archivers/dms/u_quick.cpp \
src/archivers/dms/u_rle.cpp \
src/archivers/lha/crcio.cpp \
src/archivers/lha/dhuf.cpp \
src/archivers/lha/header.cpp \
src/archivers/lha/huf.cpp \
src/archivers/lha/larc.cpp \
src/archivers/lha/lhamaketbl.cpp \
src/archivers/lha/lharc.cpp \
src/archivers/lha/shuf.cpp \
src/archivers/lha/slide.cpp \
src/archivers/lha/uae_lha.cpp \
src/archivers/lha/util.cpp \
src/archivers/lzx/unlzx.cpp \
src/archivers/mp2/kjmp2.cpp \
src/archivers/wrp/warp.cpp \
src/archivers/zip/unzip.cpp \
src/caps/caps_amiberry.cpp \
src/machdep/support.cpp \
src/osdep/bsdsocket_host.cpp \
src/osdep/cda_play.cpp \
src/osdep/charset.cpp \
src/osdep/fsdb_host.cpp \
src/osdep/amiberry_hardfile.cpp \
src/osdep/keyboard.cpp \
src/osdep/mp3decoder.cpp \
src/osdep/picasso96.cpp \
src/osdep/writelog.cpp \
src/osdep/amiberry.cpp \
src/osdep/amiberry_filesys.cpp \
src/osdep/amiberry_input.cpp \
src/osdep/amiberry_gfx.cpp \
src/osdep/amiberry_gui.cpp \
src/osdep/amiberry_rp9.cpp \
src/osdep/amiberry_mem.cpp \
src/osdep/amiberry_whdbooter.cpp \
src/osdep/sigsegv_handler.cpp \
src/sounddep/sound.cpp \
src/osdep/gui/UaeRadioButton.cpp \
src/osdep/gui/UaeDropDown.cpp \
src/osdep/gui/UaeCheckBox.cpp \
src/osdep/gui/UaeListBox.cpp \
src/osdep/gui/InGameMessage.cpp \
src/osdep/gui/SelectorEntry.cpp \
src/osdep/gui/ShowHelp.cpp \
src/osdep/gui/ShowMessage.cpp \
src/osdep/gui/SelectFolder.cpp \
src/osdep/gui/SelectFile.cpp \
src/osdep/gui/CreateFilesysHardfile.cpp \
src/osdep/gui/EditFilesysVirtual.cpp \
src/osdep/gui/EditFilesysHardfile.cpp \
src/osdep/gui/PanelAbout.cpp \
src/osdep/gui/PanelPaths.cpp \
src/osdep/gui/PanelQuickstart.cpp \
src/osdep/gui/PanelConfig.cpp \
src/osdep/gui/PanelCPU.cpp \
src/osdep/gui/PanelChipset.cpp \
src/osdep/gui/PanelCustom.cpp \
src/osdep/gui/PanelROM.cpp \
src/osdep/gui/PanelRAM.cpp \
src/osdep/gui/PanelFloppy.cpp \
src/osdep/gui/PanelHD.cpp \
src/osdep/gui/PanelInput.cpp \
src/osdep/gui/PanelDisplay.cpp \
src/osdep/gui/PanelSound.cpp \
src/osdep/gui/PanelMisc.cpp \
src/osdep/gui/PanelSavestate.cpp \
src/osdep/gui/main_window.cpp \
src/osdep/gui/Navigation.cpp \
src/osdep/gui/androidsdl_event.cpp \
src/osdep/gui/PanelOnScreen.cpp
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
LOCAL_SRC_FILES += src/osdep/aarch64_helper_min.s
else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_SRC_FILES += src/osdep/arm_helper.s
endif
LOCAL_SRC_FILES += src/newcpu.cpp \
src/newcpu_common.cpp \
src/readcpu.cpp \
src/cpudefs.cpp \
src/cpustbl.cpp \
src/cpuemu_0.cpp \
src/cpuemu_4.cpp \
src/cpuemu_11.cpp \
src/cpuemu_40.cpp \
src/cpuemu_44.cpp \
src/jit/compemu.cpp \
src/jit/compstbl.cpp \
src/jit/compemu_fpp.cpp \
src/jit/compemu_support.cpp
LOCAL_SHARED_LIBRARIES := SDL2 SDL2_image SDL2_ttf SDL2_mixer mpg123 guisan
LOCAL_STATIC_LIBRARIES := xml2
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -lz
include $(BUILD_SHARED_LIBRARY)