#
# 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, -A, -P, -X.
-# 4) Optional, may be: clang.
+# 2) Optional, may be one or more of:
+# +d, +l, +n, +V, +Q, +E, +N, +D,
+# --enable-shared, --enable-static, --disable-shared, --disable-static,
+# -w, --work, -A, -D, -P, -X,
+# clang.
#
# Modes:
# - "individual"
#
# The -A represents building with android mode.
#
+# The -D represents building with debug mode.
+#
# The -P represents building with pinephone mode.
#
# The -X represents excluding a program when building.
local mode_compiler_value="gcc"
local mode_custom_param=
local mode_custom_value=
+ local mode_debug_param=
+ local mode_debug_value=
local mode_part=
local mode_parameter=
local mode_path=
elif [[ ${p} == "-A" ]] ; then
mode_custom_param="-m"
mode_custom_value="android"
+ elif [[ ${p} == "-D" ]] ; then
+ mode_debug_param="-m"
+ mode_debug_value="debug"
elif [[ ${p} == "-P" ]] ; then
mode_custom_param="-m"
mode_custom_value="pinephone"
${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_custom_param} ${mode_custom_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_debug_param} ${mode_debug_value} ${mode_thread_param} ${mode_thread_value} ${mode_custom_param} ${mode_custom_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_custom_param} ${mode_custom_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_debug_param} ${mode_debug_value} ${mode_thread_param} ${mode_thread_value} ${mode_custom_param} ${mode_custom_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_custom_param} ${mode_custom_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_debug_param} ${mode_debug_value} ${mode_thread_param} ${mode_thread_value} ${mode_custom_param} ${mode_custom_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_custom_param} ${mode_custom_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m level ${mode_debug_param} ${mode_debug_value} ${mode_thread_param} ${mode_thread_value} ${mode_custom_param} ${mode_custom_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_custom_param} ${mode_custom_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m monolithic ${mode_debug_param} ${mode_debug_value} ${mode_thread_param} ${mode_thread_value} ${mode_custom_param} ${mode_custom_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_custom_param} ${mode_custom_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${mode_debug_param} ${mode_debug_value} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_custom_param} ${mode_custom_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_custom_param} ${mode_custom_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ ${shell_command} ./bootstrap.sh build ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${mode_debug_param} ${mode_debug_value} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_custom_param} ${mode_custom_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_custom_param} ${mode_custom_value} ${mode_compiler_param} ${mode_compiler_value} &&
+ fake clean make ${verbose} ${color} ${shared} ${static} -w ${path_work} -m ${build_mode} ${mode_debug_param} ${mode_debug_value} ${build_mode_extra_param_1} ${build_mode_extra_value_1} ${build_mode_extra_param_2} ${build_mode_extra_value_2} ${mode_custom_param} ${mode_custom_value} ${mode_compiler_param} ${mode_compiler_value} &&
${shell_command} ./install.sh ${verbose} ${color} ${shared} ${static} -w ${path_work}