X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=make.sh;h=dcacba097576f5acf49dce5ab02aae18405eea21;hb=37f90ecfa35f52dcfe2bccd139b7c7b7fcf99ba8;hp=fd684dce090a101d4b69ad5c0082e9676fde75a0;hpb=4fc1651c185a906f2fc5cbbe9264d332e9bf66b8;p=modules%2Fshaper.git diff --git a/make.sh b/make.sh index fd684dce0..dcacba097 100755 --- a/make.sh +++ b/make.sh @@ -1,20 +1,42 @@ #!/bin/bash +while [[ $# > 0 ]]; do + key="$1" + + case $key in + debug|Debug) + BUILD_TYPE=Debug + shift + ;; + lcov|coverage) + BUILD_TYPE=Debug + USE_TEST_COVERAGE=ON + shift + ;; + models|test-models) + ADD_MODELS_TESTS=TRUE + shift + ;; + *) + shift + ;; + esac +done + +## Preserve PTHONPATH in order to avoid problems with Sphinx on Fedora26 because of Pigments in ParaView +export PYTHONPATH_OLD=$PYTHONPATH source env.sh -source ${TOOLS_DIR}/env_salome.sh -CMAKE_ARGS="" -if [ -f GCOV ]; then - echo "Use GCOV..." - source env_lcov.sh - CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug" - CMAKE_ARGS="${CMAKE_ARGS} -DUSE_TEST_COVERAGE=ON" -elif [ -f DEBUG ]; then - CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug" -else - CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release" +if [[ ${OS_NAME} = Fedora26-64 ]] +then + export PYTHONPATH=$PYTHONPATH_OLD fi -CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${NEWGEOM_ROOT_DIR}" + +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} -DADD_MODELS_TESTS=${ADD_MODELS_TESTS:-FALSE}" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${SHAPER_ROOT_DIR}" CMAKE_ARGS="${CMAKE_ARGS} ${SOURCES_DIR}" mkdir -p ${BUILD_DIR}