forked from RSDKModding/RSDKv5-Decompilation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroid.mk
129 lines (107 loc) · 4.95 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
LOCAL_PATH := $(call my-dir)
RSDK_PATH := $(LOCAL_PATH)
OGG_DIR := dependencies/android/libogg
THEORA_DIR := dependencies/android/libtheora
OGG_INCLUDES := $(RSDK_PATH)/$(OGG_DIR)/include
THEORA_INCLUDES := $(RSDK_PATH)/$(THEORA_DIR)/include \
$(RSDK_PATH)/$(THEORA_DIR)/lib
######################################################################
# OGG
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_MODULE := libogg
LOCAL_CFLAGS := -ffast-math -fsigned-char -O2 -fPIC -DPIC \
-DBYTE_ORDER=LITTLE_ENDIAN -D_ARM_ASSEM_ -w
LOCAL_C_INCLUDES := $(OGG_INCLUDES)
LOCAL_SRC_FILES := \
$(RSDK_PATH)/$(OGG_DIR)/src/bitwise.c \
$(RSDK_PATH)/$(OGG_DIR)/src/framing.c
include $(BUILD_STATIC_LIBRARY)
######################################################################
# THEORA
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_MODULE := libtheora
LOCAL_CFLAGS := -ffast-math -fsigned-char -O2 -fPIC -DPIC \
-DBYTE_ORDER=LITTLE_ENDIAN -D_ARM_ASSEM_ -w
LOCAL_C_INCLUDES := $(OGG_INCLUDES) $(THEORA_INCLUDES)
LOCAL_SRC_FILES := \
$(RSDK_PATH)/$(THEORA_DIR)/lib/analyze.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/apiwrapper.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/bitpack.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/cpu.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/decapiwrapper.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/decinfo.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/decode.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/dequant.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/encapiwrapper.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/encfrag.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/encinfo.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/encode.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/encoder_disabled.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/enquant.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/fdct.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/fragment.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/huffdec.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/huffenc.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/idct.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/info.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/internal.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/mathops.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/mcenc.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/quant.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/rate.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/state.c \
$(RSDK_PATH)/$(THEORA_DIR)/lib/tokenize.c
include $(BUILD_STATIC_LIBRARY)
######################################################################
#RSDK
include $(CLEAR_VARS)
LOCAL_MODULE := RetroEngine
LOCAL_CFLAGS := -fexceptions -frtti -DRSDK_USE_GL3
LOCAL_C_INCLUDES := \
$(RSDK_PATH)/RSDKv5/ \
$(RSDK_PATH)/dependencies/android/libogg/include/ \
$(RSDK_PATH)/dependencies/android/libtheora/include/ \
$(RSDK_PATH)/dependencies/android/ \
$(RSDK_PATH)/dependencies/all/ \
$(RSDK_PATH)/dependencies/all/tinyxml2/ \
$(RSDK_PATH)/dependencies/all/iniparser/
LOCAL_SRC_FILES := \
$(RSDK_PATH)/RSDKv5/main.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Core/RetroEngine.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Core/Math.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Core/Reader.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Core/Link.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Core/ModAPI.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Dev/Debug.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Storage/Storage.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Storage/Text.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Graphics/Drawing.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Graphics/Scene3D.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Graphics/Animation.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Graphics/Sprite.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Graphics/Palette.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Graphics/Video.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Audio/Audio.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Input/Input.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Scene/Scene.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Scene/Collision.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Scene/Object.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Scene/Objects/DefaultObject.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/Scene/Objects/DevOutput.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/User/Core/UserAchievements.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/User/Core/UserCore.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/User/Core/UserLeaderboards.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/User/Core/UserPresence.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/User/Core/UserStats.cpp \
$(RSDK_PATH)/RSDKv5/RSDK/User/Core/UserStorage.cpp \
$(RSDK_PATH)/dependencies/all/tinyxml2/tinyxml2.cpp \
$(RSDK_PATH)/dependencies/all/iniparser/iniparser.cpp \
$(RSDK_PATH)/dependencies/all/iniparser/dictionary.cpp \
$(RSDK_PATH)/dependencies/all/miniz/miniz.c \
$(RSDK_PATH)/dependencies/android/androidHelpers.cpp
LOCAL_SHARED_LIBRARIES := libogg libtheora
LOCAL_LDLIBS := -lGLESv3 -lEGL -llog -lz -landroid -ljnigraphics -laaudio -lpaddleboat
include $(BUILD_SHARED_LIBRARY)
######################################################################