X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=make.sh;h=8aac14dde9aab41e773abef99ff1568894968c4a;hb=0f22bfc2773dcbb793c2c9c6562d25e114250617;hp=15b951265c280548253548ee4de85d763d9d6487;hpb=097c824c946eba5d37f29713b69dab6b324fc1d2;p=modules%2Fshaper.git diff --git a/make.sh b/make.sh index 15b951265..8aac14dde 100755 --- a/make.sh +++ b/make.sh @@ -1,40 +1,30 @@ #!/bin/bash -source env.sh - while [[ $# > 0 ]]; do key="$1" case $key in debug|Debug) - BUILD_TYPE=Debug - shift - ;; + BUILD_TYPE=Debug + shift + ;; lcov|coverage) - BUILD_TYPE=Debug - USE_TEST_COVERAGE=ON - shift - ;; - standalone|Standalone) - MODE=Standalone - shift - ;; + BUILD_TYPE=Debug + USE_TEST_COVERAGE=ON + shift + ;; *) - shift - ;; + shift + ;; esac done -if [[ ${MODE} = 'Standalone' ]]; then - source ${TOOLS_DIR}/env_standalone.sh -else - source ${TOOLS_DIR}/env_salome.sh -fi +source env.sh CMAKE_ARGS="" CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Release}" CMAKE_ARGS="${CMAKE_ARGS} -DUSE_TEST_COVERAGE=${USE_TEST_COVERAGE:-OFF}" -CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${NEWGEOM_ROOT_DIR}" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${SHAPER_ROOT_DIR}" CMAKE_ARGS="${CMAKE_ARGS} ${SOURCES_DIR}" mkdir -p ${BUILD_DIR}