Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/build_cmake.sh
Show All 21 Lines | function usage() { | ||||
echo " TOPLEVEL: the project root directory, (default: ${TOPLEVEL}})" | echo " TOPLEVEL: the project root directory, (default: ${TOPLEVEL}})" | ||||
} | } | ||||
# Default to nothing | # Default to nothing | ||||
: "${CMAKE_FLAGS:=}" | : "${CMAKE_FLAGS:=}" | ||||
mkdir -p "${BUILD_DIR}" | mkdir -p "${BUILD_DIR}" | ||||
cd ${BUILD_DIR} | cd ${BUILD_DIR} | ||||
git clean -xffd | git clean -xffd || true | ||||
read -a CMAKE_FLAGS <<< "${CMAKE_FLAGS}" | read -a CMAKE_FLAGS <<< "${CMAKE_FLAGS}" | ||||
TARGETS=() | TARGETS=() | ||||
while [[ $# -gt 0 ]]; do | while [[ $# -gt 0 ]]; do | ||||
case $1 in | case $1 in | ||||
--clang) | --clang) | ||||
CMAKE_FLAGS+=( | CMAKE_FLAGS+=( | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |