Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw64/build_boost.sh @ 125

Last change on this file since 125 was 125, checked in by landauf, 8 years ago

added build-scripts for dependencies (mingw64)

File size: 1.5 KB
Line 
1#!/bin/sh
2
3NAME="[boost]"
4WORKING_DIR="boost/boost_1_60_0"
5
6BUILD_DIR=build
7STAGE_DIR=stage
8TEMP_INC_DIR="stripped_orxonox"
9
10source ./build_common.sh
11
12if [ $DO_CLEAN -eq 1 ]
13then
14        rm -rf $BUILD_DIR
15        check_result $? "cleaning build dir"
16        rm -rf $STAGE_DIR
17        check_result $? "cleaning stage dir"
18        rm -rf "dist"
19        check_result $? "cleaning dist dir"
20        rm -rf $TEMP_INC_DIR
21        check_result $? "cleaning temp include dir"
22fi
23
24if [ $DO_BUILD -eq 1 ]
25then
26        # build bjam
27        ./bootstrap.bat
28        check_result $? "bootstrap"
29
30        # compile libraries
31        ./b2 --build-dir=$BUILD_DIR --stagedir=$STAGE_DIR toolset=gcc variant=release link=shared threading=multi --build-type=complete stage -j8 \
32                        --with-thread --with-filesystem --with-system --with-date_time --with-atomic
33        check_result $? "compiling"
34
35        # copy libraries into target directory
36        find $STAGE_DIR -name "*.dll" -exec cp -a {} ${TARGET_BIN_DIR} \;
37        check_result $? "copying libraries"
38
39        # build bcp
40        cd tools/bcp
41        ../../bjam toolset=gcc -j8
42        check_result $? "building bcp"
43        cd ../..
44
45        # prepare includes
46        mkdir -p ${TEMP_INC_DIR}
47        check_result $? "creating temp include dir"
48
49        ./dist/bin/bcp atomic bimap date_time filesystem preprocessor thread ${TEMP_INC_DIR}
50        check_result $? "creating stripped includes"
51
52        # copy includes
53        mkdir -p ${TARGET_INC_DIR}/boost
54        check_result $? "creating include dir"
55        cp -aT ${TEMP_INC_DIR}/boost ${TARGET_INC_DIR}/boost/
56        check_result $? "copying includes"
57
58        echo "${NAME} Finished building ${NAME}"
59fi
Note: See TracBrowser for help on using the repository browser.