]> SALOME platform Git repositories - modules/shaper.git/blob - make.sh
Salome HOME
Issue #1440 Crash when edit box with parameter: height of the box using parameter...
[modules/shaper.git] / make.sh
1 #!/bin/bash
2
3 source env.sh
4
5 while [[ $# > 0 ]]; do
6   key="$1"
7
8   case $key in
9     debug|Debug)
10       BUILD_TYPE=Debug
11       shift
12       ;;
13     lcov|coverage)
14       BUILD_TYPE=Debug
15       USE_TEST_COVERAGE=ON
16       shift
17       ;;
18     standalone|Standalone)
19       MODE=Standalone
20       shift
21       ;;
22     *)
23       shift
24       ;;
25   esac
26 done
27
28 if [[ ${MODE} = 'Standalone' ]]; then
29   source ${TOOLS_DIR}/env_standalone.sh
30 else
31   source ${TOOLS_DIR}/env_salome.sh
32 fi
33
34 CMAKE_ARGS=""
35 CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Release}"
36 CMAKE_ARGS="${CMAKE_ARGS} -DUSE_TEST_COVERAGE=${USE_TEST_COVERAGE:-OFF}"
37 CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${SHAPER_ROOT_DIR}"
38 CMAKE_ARGS="${CMAKE_ARGS} ${SOURCES_DIR}"
39
40 mkdir -p ${BUILD_DIR}
41 cd ${BUILD_DIR}
42
43 set -e
44
45 cmake -G "Unix Makefiles" ${CMAKE_ARGS}
46 make -j$(nproc) install