Skip to content

Commit

Permalink
Testing cmake builds on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoxiaoLiu committed May 3, 2016
1 parent 2d92f5a commit 3886232
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions build_VS2008.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function download {

shopt -s expand_aliases;
BUILD_HDF5=0
BOOST_MAJOR_VERSION=1_57
BOOST_MAJOR_VERSION=1_46
BOOST_VERSION=${BOOST_MAJOR_VERSION}_0
CMAKE_VERSION=2.8.12
CMAKE_ARGS=""
Expand Down Expand Up @@ -162,10 +162,10 @@ case $OPERATION in
/c/Program\ Files/7-Zip/7z x -y boost_$BOOST_VERSION.tar
fi
cd boost_$BOOST_VERSION
cmd //c .\\bootstrap.bat
cmd //c .\\b2.exe --toolset=msvc-9.0 address-model=64 --prefix=$boost_prefix install
bootstrap.bat
bjam.exe --toolset=msvc-9.0 build-type=complete link=static threading=multi address-model=64 --prefix=$boost_prefix install
else
tar xzf $ROOT_DIR/v3d_main/common_lib/src_packages/boost_$BOOST_VERSION.tar.gz
tar xvf $ROOT_DIR/v3d_main/common_lib/src_packages/boost_$BOOST_VERSION.tar.gz
cd boost_$BOOST_VERSION
./bootstrap.sh --prefix=$boost_prefix
./b2 install
Expand All @@ -177,7 +177,7 @@ case $OPERATION in
if [[ ! -e $ROOT_DIR/v3d_main/common_lib/include/tiff.h ]]; then
echo "Configuring TIFF headers"
cd $ROOT_DIR/v3d_main/common_lib/build
tar xzf ../src_packages/tiff-4.0.2.tar.gz
/c/Program\ Files/7-Zip/7z x -y ../src_packages/tiff-4.0.2.tar.gz
cd tiff-4.0.2
nmake Makefile.vc
cp libtiff/tiff.h ../../include
Expand All @@ -193,11 +193,11 @@ case $OPERATION in
CMAKE_EXE+=" -G \"Visual Studio 9 2008 Win64\""
cd $ROOT_DIR/v3d_main/common_lib
if [[ ! -e fftw-3.3.4-dll64 ]]; then
echo "tar xzf fftw-3.3.4-dll64"
tar xzf fftw-3.3.4-dll64.tgz
echo "/c/Program\ Files/7-Zip/7z x -y fftw-3.3.4-dll64"
/c/Program\ Files/7-Zip/7z x -y fftw-3.3.4-dll64.tgz
fi
if [[ ! -e ffmpeg-2.5.2-win64 ]]; then
tar xzf ffmpeg-2.5.2-win64.tgz
/c/Program\ Files/7-Zip/7z x -y ffmpeg-2.5.2-win64.tgz
fi
cd ../../
fi
Expand Down
6 changes: 3 additions & 3 deletions build_VS2010.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ case $OPERATION in
if [[ ! -e cmake-$CMAKE_VERSION ]]; then
echo "Downloading cmake"
download http://www.cmake.org/files/v3.1/cmake-$CMAKE_VERSION.tar.gz cmake-$CMAKE_VERSION.tar.gz
tar xvzf cmake-$CMAKE_VERSION.tar.gz
tar xvfz cmake-$CMAKE_VERSION.tar.gz
fi
cd cmake-$CMAKE_VERSION
./configure --prefix=.
Expand Down Expand Up @@ -159,7 +159,7 @@ case $OPERATION in
cmd //c .\\bootstrap.bat
cmd //c .\\b2.exe --toolset=msvc-10.0 address-model=64 --prefix=$boost_prefix install
else
tar xzf $ROOT_DIR/v3d_main/common_lib/src_packages/boost_$BOOST_VERSION.tar.gz
tar xvf $ROOT_DIR/v3d_main/common_lib/src_packages/boost_$BOOST_VERSION.tar.gz
cd boost_$BOOST_VERSION
./bootstrap.sh --prefix=$boost_prefix
./b2 install
Expand All @@ -171,7 +171,7 @@ case $OPERATION in
if [[ ! -e $ROOT_DIR/v3d_main/common_lib/include/tiff.h ]]; then
echo "Configuring TIFF headers"
cd $ROOT_DIR/v3d_main/common_lib/build
tar xzf ../src_packages/tiff-4.0.2.tar.gz
/c/Program\ Files/7-Zip/7z x -y ../src_packages/tiff-4.0.2.tar.gz
cd tiff-4.0.2
nmake Makefile.vc
cp libtiff/tiff.h ../../include
Expand Down

0 comments on commit 3886232

Please sign in to comment.