From: sbh Date: Thu, 30 Apr 2015 13:32:00 +0000 (+0300) Subject: build procedures for centos/debian were separated X-Git-Tag: V_1.2.0~177^2~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=553edcf55fe11e07b09c35ee97f56f61cacc61c2;p=modules%2Fshaper.git build procedures for centos/debian were separated --- diff --git a/eclipse_centos.sh b/eclipse_centos.sh new file mode 100755 index 000000000..ea5e02a63 --- /dev/null +++ b/eclipse_centos.sh @@ -0,0 +1,25 @@ + +# Find absolute path to ROOT_DIR +export ROOT_DIR=$(pwd)/.. +export ROOT_DIR=`cd "${ROOT_DIR}";pwd` + +SRC_DIR=${ROOT_DIR}/sources + +source ${SRC_DIR}/linux_env.sh +mkdir -p ${ROOT_DIR}/build-centos +cd ${ROOT_DIR}/build-centos + +export LD_LIBRARY_PATH=${KERNEL_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH} +export LightAppConfig=${ROOT_DIR}/install/share/salome/resources/newgeom:${GUI_ROOT_DIR}/share/salome/resources/gui + +CMAKE_ARGS="-D_ECLIPSE_VERSION=4.3" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=ON" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${ROOT_DIR}/install" +CMAKE_ARGS="${CMAKE_ARGS} -DPYTHON_EXECUTABLE=${PYTHONHOME}/bin/python" +CMAKE_ARGS="${CMAKE_ARGS} -DUSE_TEST_COVERAGE=OFF" +CMAKE_ARGS="${CMAKE_ARGS} ${SRC_DIR}" + +cmake -G "Eclipse CDT4 - Unix Makefiles" ${CMAKE_ARGS} + +/misc/dn48/newgeom/common/eclipse-4.4.0/eclipse& diff --git a/eclipse_debian.sh b/eclipse_debian.sh new file mode 100755 index 000000000..f7d456aef --- /dev/null +++ b/eclipse_debian.sh @@ -0,0 +1,26 @@ + +# Find absolute path to ROOT_DIR +export ROOT_DIR=$(pwd)/.. +export ROOT_DIR=`cd "${ROOT_DIR}";pwd` + +SRC_DIR=${ROOT_DIR}/sources + +export INST_ROOT=/misc/dn48/newgeom/common/SALOME-7.5.1_Debian-6.0 +source ${SRC_DIR}/linux_env.sh +mkdir -p ${ROOT_DIR}/build-debian +cd ${ROOT_DIR}/build-debian + +export LD_LIBRARY_PATH=${KERNEL_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH} +export LightAppConfig=${ROOT_DIR}/install/share/salome/resources/newgeom:${GUI_ROOT_DIR}/share/salome/resources/gui + +CMAKE_ARGS="-D_ECLIPSE_VERSION=4.3" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=ON" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${ROOT_DIR}/install" +CMAKE_ARGS="${CMAKE_ARGS} -DPYTHON_EXECUTABLE=${PYTHONHOME}/bin/python" +CMAKE_ARGS="${CMAKE_ARGS} -DUSE_TEST_COVERAGE=OFF" +CMAKE_ARGS="${CMAKE_ARGS} ${SRC_DIR}" + +cmake -G "Eclipse CDT4 - Unix Makefiles" ${CMAKE_ARGS} + +/misc/dn48/newgeom/common/eclipse-4.4.0/eclipse& diff --git a/make_centos.sh b/make_centos.sh new file mode 100755 index 000000000..ef61abcce --- /dev/null +++ b/make_centos.sh @@ -0,0 +1,18 @@ + +# Find absolute path to ROOT_DIR +export ROOT_DIR=$(pwd)/.. +export ROOT_DIR=`cd "${ROOT_DIR}";pwd` + +SRC_DIR=${ROOT_DIR}/sources + +source ${SRC_DIR}/linux_env.sh +mkdir -p ${ROOT_DIR}/build +cd ${ROOT_DIR}/build + +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${ROOT_DIR}/install" +CMAKE_ARGS="${CMAKE_ARGS} ${SRC_DIR}" + +cmake -G "Unix Makefiles" ${CMAKE_ARGS} +make +make install diff --git a/make_debian.sh b/make_debian.sh new file mode 100755 index 000000000..e2ce3a0dc --- /dev/null +++ b/make_debian.sh @@ -0,0 +1,19 @@ + +# Find absolute path to ROOT_DIR +export ROOT_DIR=$(pwd)/.. +export ROOT_DIR=`cd "${ROOT_DIR}";pwd` + +SRC_DIR=${ROOT_DIR}/sources + +export INST_ROOT=/misc/dn48/newgeom/common/SALOME-7.5.1_Debian-6.0 +source ${SRC_DIR}/linux_env.sh +mkdir -p ${ROOT_DIR}/build-debian +cd ${ROOT_DIR}/build-debian + +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${ROOT_DIR}/install" +CMAKE_ARGS="${CMAKE_ARGS} ${SRC_DIR}" + +cmake -G "Unix Makefiles" ${CMAKE_ARGS} +make +make install