Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #27

Open
wants to merge 20 commits into
base: pre-flamboyan
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
191 changes: 191 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
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.70RC2
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
# LOCAL_CFLAGS += -D_AROMA_VERBOSE_INFO

## 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

ifeq ($(MAKECMDGOALS),$(LOCAL_MODULE))
$(shell rm -rf $(PRODUCT_OUT)/obj/EXECUTABLES/$(LOCAL_MODULE)_intermediates)
endif

##
## Remove Old Build
##
ifeq ($(MAKECMDGOALS),$(LOCAL_MODULE))
$(shell rm -rf $(PRODUCT_OUT)/obj/EXECUTABLES/$(LOCAL_MODULE)_intermediates)
endif

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

29 changes: 29 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
AROMA is an advanced update-binary for Android that contains many features
like Wizard Installation, Touch User Interface (AROMA UI), Customizable Packages,
System Inspecting, Themeable, and User Interactive.

* How To Build With Android Build Environment
1. Copy whole directory into /external/aroma-installer
2. # . build/envsetup.sh
3. # lunch full_yourdevice-eng
4. # make -j4 aroma_installer
5. # make aroma_installer.zip

* Programming Language
It was application which runs on Android device but not on Android OS
Environment that the native applications usually use Java.
AROMA Installer use C (Pure C, not C++), so it may run on another
platform like x86 with small modifications ofcourse.

* Used Libraries
ZLIB - ofcourse, it was the most awesome thing in computer world
PNG, MinZIP, Freetype.
All library need to compiled as static to make sure it runs
without any dependency issue in any devices.

* Official Binary
I Only support ARM device, but it was opensourced, so anyone
can play with the source and compiled it for they own devices.


----------------------------------[ LICENSE ]----------------------------------

Apache License
Version 2.0, January 2004
Expand Down
18 changes: 0 additions & 18 deletions aroma-installer/build.bat

This file was deleted.

31 changes: 0 additions & 31 deletions aroma-installer/buildinstaller.sh

This file was deleted.

25 changes: 0 additions & 25 deletions aroma-installer/cleanup.bat

This file was deleted.

15 changes: 0 additions & 15 deletions aroma-installer/deploy.bat

This file was deleted.

Loading