]> Creatis software - cpPlugins.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 25 Apr 2016 20:13:26 +0000 (15:13 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 25 Apr 2016 20:13:26 +0000 (15:13 -0500)
third_party_installers/cpPlugins_Install_ITK.sh
third_party_installers/cpPlugins_Install_QT4.sh
third_party_installers/cpPlugins_Install_VTK.sh

index d716a854ffd4af4b7ad47bf6cfd3940b0ea3e4f4..8529fed20f5c25d110781ef362450019bf80e6c9 100755 (executable)
@@ -20,7 +20,6 @@ function abspath()
 
 ## Some configuration variables
 number_of_processes="-j4"
-comp_type=Debug
 
 ## Locate cmake executable
 cmake_locations=("/usr/bin" "/usr/local/bin" "${HOME}/local/bin")
@@ -43,7 +42,7 @@ if [ ! -x $cmake_exec ]; then
 fi
 
 ## Check input parameters and process inputs (if needed)
-if [ "$#" -eq 1 ]; then
+if [ "$#" -eq 2 ]; then
     valid_extensions=("zip" "tar" "tar.gz" "tar.bz2")
     actual_ext=""
     for ext in ${valid_extensions[@]}; do
@@ -80,11 +79,13 @@ if [ "$#" -eq 1 ]; then
         exit 1
     fi
     echo "done!"
-elif [ "$#" -eq 2 ]; then
+    build_type=$2
+elif [ "$#" -eq 3 ]; then
     source_dir=`dirname $1`
     build_dir=`dirname $2`
+    build_type=$3
 else
-    echo "Usage: [itk_package] or [itk_source_dir itk_build_dir]
+    echo "Usage: [itk_package] or [itk_source_dir itk_build_dir] [build_type]"
 fi
 
 echo "Given source dir : \"$source_dir\""
@@ -98,7 +99,7 @@ $cmake_exec \
     -DBUILD_EXAMPLES:BOOL=OFF \
     -DBUILD_SHARED_LIBS:BOOL=ON \
     -DBUILD_TESTING:BOOL=OFF \
-    -DCMAKE_BUILD_TYPE:STRING=$comp_type \
+    -DCMAKE_BUILD_TYPE:STRING=$build_type \
     -DModule_ITKReview:BOOL=ON \
     -DModule_ITKVtkGlue:BOOL=OFF \
     -DCMAKE_INSTALL_PREFIX:PATH=${HOME}/local \
index 6d2c30d44f1ab8b36475f2fc8b78c61c6d1d9f18..76fdddeccf9183ec4b71b77e14e13a3ec162d30d 100755 (executable)
@@ -20,7 +20,6 @@ function abspath()
 
 ## Some configuration variables
 number_of_processes="-j4"
-comp_type=-debug
 platform=`uname`
 particular_options=""
 if [ "$platform" == "Darwin" ]; then
@@ -28,7 +27,7 @@ if [ "$platform" == "Darwin" ]; then
 fi
 
 ## Check input parameters and process inputs (if needed)
-if [ "$#" -eq 1 ]; then
+if [ "$#" -eq 2 ]; then
     valid_extensions=("zip" "tar" "tar.gz" "tar.bz2")
     actual_ext=""
     for ext in ${valid_extensions[@]}; do
@@ -65,11 +64,13 @@ if [ "$#" -eq 1 ]; then
         exit 1
     fi
     echo "done!"
-elif [ "$#" -eq 2 ]; then
+    build_type=$2
+elif [ "$#" -eq 3 ]; then
     source_dir=`dirname $1`
     build_dir=`dirname $2`
+    build_type=$3
 else
-    echo "Usage: [qt4_package] or [qt4_source_dir qt4_build_dir]" 
+    echo "Usage: [qt4_package] or [qt4_source_dir qt4_build_dir] [build_type]
 fi
 
 echo "Given source dir : \"$source_dir\""
@@ -79,7 +80,7 @@ echo "Configuring sources... "
 cd $build_dir
 $source_dir/configure \
     -prefix ${HOME}/local \
-    $comp_type \
+    $build_type \
     -opensource -shared -fast \
     -no-phonon \
     -no-phonon-backend \
index 0812809a93ab0b6645a0308785c2fa8980f99749..d5e99585709c8d9198205c3d286b96cd0a046a5a 100755 (executable)
@@ -20,7 +20,6 @@ function abspath()
 
 ## Some configuration variables
 number_of_processes="-j4"
-comp_type=Debug
 
 ## Locate cmake executable
 cmake_locations=("/usr/bin" "/usr/local/bin" "${HOME}/local/bin")
@@ -61,7 +60,7 @@ if [ ! -x $qmake_exec ]; then
 fi
 
 ## Check input parameters and process inputs (if needed)
-if [ "$#" -eq 1 ]; then
+if [ "$#" -eq 2 ]; then
     valid_extensions=("zip" "tar" "tar.gz" "tar.bz2")
     actual_ext=""
     for ext in ${valid_extensions[@]}; do
@@ -98,11 +97,13 @@ if [ "$#" -eq 1 ]; then
         exit 1
     fi
     echo "done!"
-elif [ "$#" -eq 2 ]; then
+    build_type=$2
+elif [ "$#" -eq 3 ]; then
     source_dir=`dirname $1`
     build_dir=`dirname $2`
+    build_type=$3
 else
-    echo "Usage: [vtk_package] or [vtk_source_dir vtk_build_dir]" 
+    echo "Usage: [vtk_package] or [vtk_source_dir vtk_build_dir] [build_type]
 fi
 
 echo "Given source dir : \"$source_dir\""
@@ -117,7 +118,7 @@ $cmake_exec \
     -DBUILD_SHARED_LIBS:BOOL=ON \
     -DBUILD_TESTING:BOOL=OFF \
     -DQT_QMAKE_EXECUTABLE:PATH=$qmake_exec \
-    -DCMAKE_BUILD_TYPE:STRING=$comp_type \
+    -DCMAKE_BUILD_TYPE:STRING=$build_type \
     -DModule_vtkGUISupportQt:BOOL=ON \
     -DModule_vtkGUISupportQtOpenGL:BOOL=ON \
     -DModule_vtkGUISupportQtSQL:BOOL=OFF \