# This only accepts one argument, followed by these optional arguments:
# 1) One of "Modes" from below.
# 2) Optional, may be one of: +d, +l, +n, +V, +Q, +E, +N, +D, --enable-shared, --enable-static, --disable-shared, --disable-static.
-# 3) Optional, may be one of: -w, --work, -X.
+# 3) Optional, may be one of: -w, --work, -X, -A.
# 4) Optional, may be: clang.
#
# Modes:
# The -w/--work requires the path to the work directory following it.
# The clang parameter does not need the "-m".
#
+# The -A represents building with android mode.
+#
# The -X represents excluding a program when building.
#
# This will create a directory at he present working directory of the script caller called "fll" where everything will be installed.
local shared=
local static=
local version=0.8.0
+ local mode_android_param=
+ local mode_android_value=
local mode_compiler_param="-m"
local mode_compiler_value="gcc"
local mode_part=
elif [[ ${p} == "+D" ]] ; then
verbose="+D"
verbose_common="-v"
+ elif [[ ${p} == "-A" ]] ; then
+ mode_android_param="-m"
+ mode_android_value="android"
elif [[ ${p} == "-X" ]] ; then
grab_next="exclude_program"
elif [[ ${p} == "--enable-static" ]] ; then
${shell_command} ./bootstrap.sh clean ${verbose} ${color} &&
- ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m individual -m individual_thread ${mode_thread_param} ${mode_thread_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m individual -m individual_thread ${mode_thread_param} ${mode_thread_value} ${mode_android_param} ${mode_android_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work} &&
${shell_command} ./bootstrap.sh clean ${verbose} ${color} &&
- ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_thread_param} ${mode_thread_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_thread_param} ${mode_thread_value} ${mode_android_param} ${mode_android_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work} &&
${shell_command} ./bootstrap.sh clean ${verbose} ${color} &&
- ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_thread_param} ${mode_thread_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_thread_param} ${mode_thread_value} ${mode_android_param} ${mode_android_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work} &&
${shell_command} ./bootstrap.sh clean ${verbose} ${color} &&
- ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_thread_param} ${mode_thread_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_thread_param} ${mode_thread_value} ${mode_android_param} ${mode_android_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work}
${shell_command} ./bootstrap.sh clean ${verbose} ${color} &&
- ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m monolithic ${mode_thread_param} ${mode_thread_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m monolithic ${mode_thread_param} ${mode_thread_value} ${mode_android_param} ${mode_android_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work}
${shell_command} ./bootstrap.sh clean ${verbose} ${color} &&
- ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_android_param} ${mode_android_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work}
${shell_command} ./bootstrap.sh clean ${verbose} ${color} &&
- ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_android_param} ${mode_android_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work}
if [[ ${i} == "${j}-${version}" ]] ; then
cd ${path_original}package/program/${i} &&
- fake clean make ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_compiler_param} ${mode_compiler_value} &&
+ fake clean make ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_android_param} ${mode_android_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work}