forked from amarullz/AROMA-Installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
179 lines (157 loc) · 5.07 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
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
## Check for ARM NEON
AROMA_ARM_NEON := false
ifeq ($(ARCH_ARM_HAVE_NEON),true)
AROMA_ARM_NEON := true
endif
##
## Force Compiling Without ARM NEON
## -- Uncomment This Line --
##
# AROMA_ARM_NEON := false
#
##
## VERSIONING
##
AROMA_NAME := AROMA Installer
AROMA_VERSION := 2.70RC1
AROMA_BUILD := $(shell date +%y%m%d%H)
AROMA_CN := Flamboyan
## LOCAL PATH COPY
AROMA_INSTALLER_LOCALPATH := $(LOCAL_PATH)
## ZLIB SOURCE FILES
LOCAL_SRC_FILES := \
libs/zlib/adler32.c \
libs/zlib/crc32.c \
libs/zlib/infback.c \
libs/zlib/inffast.c \
libs/zlib/inflate.c \
libs/zlib/inftrees.c \
libs/zlib/zutil.c
## ZLIB NEON SOURCE
ifeq ($(AROMA_ARM_NEON),true)
LOCAL_SRC_FILES += libs/zlib/inflate_fast_copy_neon.s
endif
## PNG SOURCE FILES
LOCAL_SRC_FILES += \
libs/png/png.c \
libs/png/pngerror.c \
libs/png/pnggccrd.c \
libs/png/pngget.c \
libs/png/pngmem.c \
libs/png/pngpread.c \
libs/png/pngread.c \
libs/png/pngrio.c \
libs/png/pngrtran.c \
libs/png/pngrutil.c \
libs/png/pngset.c \
libs/png/pngtrans.c \
libs/png/pngvcrd.c
## PNG NEON SOURCE
ifeq ($(AROMA_ARM_NEON),true)
LOCAL_SRC_FILES += libs/png/png_read_filter_row_neon.s
endif
## MINUTF8 & MINZIP SOURCE FILES
LOCAL_SRC_FILES += \
libs/minutf8/minutf8.c \
libs/minzip/DirUtil.c \
libs/minzip/Hash.c \
libs/minzip/Inlines.c \
libs/minzip/SysUtil.c \
libs/minzip/Zip.c
## FREETYPE SOURCE FILES
LOCAL_SRC_FILES += \
libs/freetype/autofit/autofit.c \
libs/freetype/base/basepic.c \
libs/freetype/base/ftapi.c \
libs/freetype/base/ftbase.c \
libs/freetype/base/ftbbox.c \
libs/freetype/base/ftbitmap.c \
libs/freetype/base/ftglyph.c \
libs/freetype/base/ftinit.c \
libs/freetype/base/ftpic.c \
libs/freetype/base/ftstroke.c \
libs/freetype/base/ftsynth.c \
libs/freetype/base/ftsystem.c \
libs/freetype/cff/cff.c \
libs/freetype/pshinter/pshinter.c \
libs/freetype/psnames/psnames.c \
libs/freetype/raster/raster.c \
libs/freetype/sfnt/sfnt.c \
libs/freetype/smooth/smooth.c \
libs/freetype/truetype/truetype.c \
libs/freetype/base/ftlcdfil.c
## EDIFY PARSER SOURCE FILES
LOCAL_SRC_FILES += \
src/edify/expr.c \
src/edify/lex.yy.c \
src/edify/parser.c
## AROMA CONTROLS SOURCE FILES
LOCAL_SRC_FILES += \
src/controls/aroma_controls.c \
src/controls/aroma_control_button.c \
src/controls/aroma_control_check.c \
src/controls/aroma_control_checkbox.c \
src/controls/aroma_control_menubox.c \
src/controls/aroma_control_checkopt.c \
src/controls/aroma_control_optbox.c \
src/controls/aroma_control_textbox.c \
src/controls/aroma_control_threads.c \
src/controls/aroma_control_imgbutton.c
## AROMA LIBRARIES SOURCE FILES
LOCAL_SRC_FILES += \
src/libs/aroma_array.c \
src/libs/aroma_freetype.c \
src/libs/aroma_graph.c \
src/libs/aroma_input.c \
src/libs/aroma_languages.c \
src/libs/aroma_libs.c \
src/libs/aroma_memory.c \
src/libs/aroma_png.c \
src/libs/aroma_zip.c
## AROMA INSTALLER SOURCE FILES
LOCAL_SRC_FILES += \
src/main/aroma_ui.c \
src/main/aroma_installer.c \
src/main/aroma.c
## MODULE SETTINGS
LOCAL_MODULE := aroma_installer
LOCAL_MODULE_TAGS := eng
LOCAL_FORCE_STATIC_EXECUTABLE := true
## INCLUDES & OUTPUT PATH
LOCAL_C_INCLUDES := $(AROMA_INSTALLER_LOCALPATH)/include
LOCAL_MODULE_PATH := $(AROMA_INSTALLER_LOCALPATH)/out
## COMPILER FLAGS
LOCAL_CFLAGS := -O2
LOCAL_CFLAGS += -DFT2_BUILD_LIBRARY=1 -DDARWIN_NO_CARBON
LOCAL_CFLAGS += -fdata-sections -ffunction-sections
LOCAL_CFLAGS += -Wl,--gc-sections -fPIC -DPIC
LOCAL_CFLAGS += -D_AROMA_NODEBUG
## SET VERSION
LOCAL_CFLAGS += -DAROMA_NAME="\"$(AROMA_NAME)\""
LOCAL_CFLAGS += -DAROMA_VERSION="\"$(AROMA_VERSION)\""
LOCAL_CFLAGS += -DAROMA_BUILD="\"$(AROMA_BUILD)\""
LOCAL_CFLAGS += -DAROMA_BUILD_CN="\"$(AROMA_CN)\""
ifeq ($(AROMA_ARM_NEON),true)
LOCAL_CFLAGS += -mfloat-abi=softfp -mfpu=neon -D__ARM_HAVE_NEON
endif
## INCLUDED LIBRARIES
LOCAL_STATIC_LIBRARIES := libm libc
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := aroma_installer.zip
LOCAL_MODULE_TAGS := eng
ifeq ($(MAKECMDGOALS),aroma_installer.zip)
$(info ==========================================================================)
$(info )
$(info MAKING AROMA Installer ZIP)
OUTPUT_SH := $(shell $(AROMA_INSTALLER_LOCALPATH)/tools/android_building.sh)
ifeq ($(OUTPUT_SH),0)
$(info Please Compile AROMA Installer First, by running: make -j4 aroma_installer)
else
$(info AROMA ZIP is On $(AROMA_INSTALLER_LOCALPATH)/out/aroma.zip)
endif
$(info )
$(info ==========================================================================)
endif