Last change
on this file since 126 was
126,
checked in by landauf, 8 years ago
|
eol-style native
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Rev | Line | |
---|
[126] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | NAME="[boost]" |
---|
| 4 | WORKING_DIR="boost/boost_1_60_0" |
---|
| 5 | |
---|
| 6 | BUILD_DIR=build |
---|
| 7 | STAGE_DIR=stage |
---|
| 8 | TEMP_INC_DIR="stripped_orxonox" |
---|
| 9 | |
---|
| 10 | source ./build_common.sh |
---|
| 11 | |
---|
| 12 | if [ $DO_CLEAN -eq 1 ] |
---|
| 13 | then |
---|
| 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" |
---|
| 22 | fi |
---|
| 23 | |
---|
| 24 | if [ $DO_BUILD -eq 1 ] |
---|
| 25 | then |
---|
| 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}" |
---|
| 59 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.