fix(build.sh): Prompt for libcurl support

This commit is contained in:
Michael Carlberg 2016-12-20 05:33:07 +01:00
parent a89c4ef2dd
commit edafb52302
2 changed files with 11 additions and 6 deletions

View File

@ -76,10 +76,11 @@ A compiler with C++14 support ([clang-3.4+](http://llvm.org/releases/download.ht
- xcb-util-image - xcb-util-image
Optional dependencies for extended module support: Optional dependencies for extended module support:
- jsoncpp (required by `internal/i3`)
- wireless_tools (required by `internal/network`)
- alsa-lib (required by `internal/volume`) - alsa-lib (required by `internal/volume`)
- jsoncpp (required by `internal/i3`)
- libmpdclient (required by `internal/mpd`) - libmpdclient (required by `internal/mpd`)
- libcurl (required by `internal/github`)
- wireless_tools (required by `internal/network`)
~~~ sh ~~~ sh
# required # required

View File

@ -32,17 +32,20 @@ function main
local enable_i3="ON" local enable_i3="ON"
local enable_network="ON" local enable_network="ON"
local enable_mpd="ON" local enable_mpd="ON"
local enable_curl="ON"
msg "Setting build options" msg "Setting build options"
read -r -p "$(msg "Enable i3 module ------- [Y/n]: ")" -n 1 p && echo read -r -p "$(msg "Include support for \"internal/i3\" (requires i3) ------------------- [Y/n]: ")" -n 1 p && echo
[[ "${p^^}" != "Y" ]] && enable_i3="OFF" [[ "${p^^}" != "Y" ]] && enable_i3="OFF"
read -r -p "$(msg "Enable volume module --- [Y/n]: ")" -n 1 p && echo read -r -p "$(msg "Include support for \"internal/volume\" (requires alsalib) ---------- [Y/n]: ")" -n 1 p && echo
[[ "${p^^}" != "Y" ]] && enable_alsa="OFF" [[ "${p^^}" != "Y" ]] && enable_alsa="OFF"
read -r -p "$(msg "Enable network module -- [Y/n]: ")" -n 1 p && echo read -r -p "$(msg "Include support for \"internal/network\" (requires wireless_tools) -- [Y/n]: ")" -n 1 p && echo
[[ "${p^^}" != "Y" ]] && enable_network="OFF" [[ "${p^^}" != "Y" ]] && enable_network="OFF"
read -r -p "$(msg "Enable mpd module ------ [Y/n]: ")" -n 1 p && echo read -r -p "$(msg "Include support for \"internal/mpd\" (requires libmpdclient) -------- [Y/n]: ")" -n 1 p && echo
[[ "${p^^}" != "Y" ]] && enable_mpd="OFF" [[ "${p^^}" != "Y" ]] && enable_mpd="OFF"
read -r -p "$(msg "Include support for \"internal/github\" (requires libcurl) ---------- [Y/n]: ")" -n 1 p && echo
[[ "${p^^}" != "Y" ]] && enable_curl="OFF"
local cxx="c++" local cxx="c++"
local cc="cc" local cc="cc"
@ -65,6 +68,7 @@ function main
-DENABLE_I3:BOOL="${enable_i3}" \ -DENABLE_I3:BOOL="${enable_i3}" \
-DENABLE_MPD:BOOL="${enable_mpd}" \ -DENABLE_MPD:BOOL="${enable_mpd}" \
-DENABLE_NETWORK:BOOL="${enable_network}" \ -DENABLE_NETWORK:BOOL="${enable_network}" \
-DENABLE_CURL:BOOL="${enable_curl}" \
.. || msg_err "Failed to generate build... read output to get a hint of what went wrong" .. || msg_err "Failed to generate build... read output to get a hint of what went wrong"
msg "Building project" msg "Building project"