X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=make.sh;h=15b951265c280548253548ee4de85d763d9d6487;hb=45d7a2bd3a8c6f9de2927a53bea219ade14a733c;hp=9aaa3ae614eebf72e7d105eb135fe1e0ed8fee29;hpb=6357e81ac1e8926e6d6bdd6f0d9a7a41b1f09259;p=modules%2Fshaper.git diff --git a/make.sh b/make.sh index 9aaa3ae61..15b951265 100755 --- a/make.sh +++ b/make.sh @@ -7,23 +7,32 @@ while [[ $# > 0 ]]; do case $key in debug|Debug) - CMAKE_BUILD_TYPE=Debug + BUILD_TYPE=Debug shift ;; lcov|coverage) - CMAKE_BUILD_TYPE=Debug + BUILD_TYPE=Debug USE_TEST_COVERAGE=ON shift ;; + standalone|Standalone) + MODE=Standalone + shift + ;; + *) + shift + ;; esac - - shift done -source ${TOOLS_DIR}/env_salome.sh +if [[ ${MODE} = 'Standalone' ]]; then + source ${TOOLS_DIR}/env_standalone.sh +else + source ${TOOLS_DIR}/env_salome.sh +fi CMAKE_ARGS="" -CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}" +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} ${SOURCES_DIR}"