Skip to content

Commit

Permalink
feat: Remove build_and_install function
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Jun 22, 2022
1 parent 4f1e059 commit 6f1891c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
21 changes: 0 additions & 21 deletions assets/build/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,3 @@ function extract()
log_info "Unpacking file: ${FILE}"
tar xzf "${FILE}" --strip-components 1
}

#--- FUNCTION -------------------------------------------------------------------------------------------------------
# NAME: build_and_install
# DESCRIPTION: Build and install the given package from the current directory using cmake.
#----------------------------------------------------------------------------------------------------------------------
function build_and_install()
{
local PACKAGE_NAME="${1}"; shift
local CMAKE_ARGS=(
-Wno-dev
-DCMAKE_BUILD_TYPE=Release
)

# shellcheck disable=SC2206
CMAKE_ARGS+=( $@ )

log_info "Building and installing ${PACKAGE_NAME} ..."
log_debug "CMAKE_ARGS: ${CMAKE_ARGS[@]}"
cmake ${CMAKE_ARGS[@]} .
cmake --build . --target install --config Release
}
3 changes: 1 addition & 2 deletions assets/build/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ REQUIRED_PACKAGES=(
)

BUILD_DEPENDENCIES=(
make gcc g++ cmake pkg-config libssl-dev zlib1g-dev libffi-dev
libpcre3-dev heimdal-dev
make gcc g++
)

apt-get update
Expand Down

0 comments on commit 6f1891c

Please sign in to comment.