]> SALOME platform Git repositories - modules/shaper.git/blob - make.sh
Salome HOME
[bos #29933] [CEA 29931] Redundant constraint in SHAPER SIGSEGV
[modules/shaper.git] / make.sh
1 #!/bin/bash
2
3 while [[ $# > 0 ]]; do
4   key="$1"
5
6   case $key in
7     debug|Debug)
8       BUILD_TYPE=Debug
9       shift
10       ;;
11     lcov|coverage)
12       BUILD_TYPE=Debug
13       USE_TEST_COVERAGE=ON
14       shift
15       ;;
16     models|test-models)
17       ADD_MODELS_TESTS=TRUE
18       shift
19       ;;
20     compatibility|test-compatibility)
21       ADD_COMPATIBILITY_TESTS=TRUE
22       shift
23       ;;
24     hdf|test-hdf-models)
25       ADD_HDF_TESTS=TRUE
26       shift
27       ;;
28     *)
29       shift
30       ;;
31   esac
32 done
33
34 ## Preserve PTHONPATH in order to avoid problems with Sphinx on Fedora26 because of Pigments in ParaView
35 export PYTHONPATH_OLD=$PYTHONPATH
36 source env.sh
37
38 if [[ ${OS_NAME} = Fedora26-64 ]]
39 then
40   export PYTHONPATH=$PYTHONPATH_OLD
41 fi
42
43 CMAKE_ARGS=""
44 CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Release}"
45 CMAKE_ARGS="${CMAKE_ARGS} -DUSE_TEST_COVERAGE=${USE_TEST_COVERAGE:-OFF}"
46 CMAKE_ARGS="${CMAKE_ARGS} -DADD_MODELS_TESTS=${ADD_MODELS_TESTS:-FALSE}"
47 CMAKE_ARGS="${CMAKE_ARGS} -DADD_COMPATIBILITY_TESTS=${ADD_COMPATIBILITY_TESTS:-FALSE}"
48 CMAKE_ARGS="${CMAKE_ARGS} -DADD_HDF_TESTS=${ADD_HDF_TESTS:-FALSE}"
49 CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${SHAPER_ROOT_DIR}"
50 CMAKE_ARGS="${CMAKE_ARGS} ${SOURCES_DIR}"
51
52 mkdir -p ${BUILD_DIR}
53 cd ${BUILD_DIR}
54
55 set -e
56
57 cmake -G "Unix Makefiles" ${CMAKE_ARGS}
58 make -j$(nproc) install