Last change
on this file was
133,
checked in by landauf, 9 years ago
|
prepared for CEGUI 0.8
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Rev | Line | |
---|
[126] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | NAME="[toluapp]" |
---|
| 4 | WORKING_DIR="tolua++/toluapp-master" |
---|
| 5 | |
---|
| 6 | BUILD_DIR=build |
---|
| 7 | |
---|
| 8 | source ./build_common.sh |
---|
| 9 | |
---|
| 10 | if [ $DO_CLEAN -eq 1 ] |
---|
| 11 | then |
---|
| 12 | rm -rf $BUILD_DIR |
---|
| 13 | check_result $? "cleaning build dir" |
---|
| 14 | fi |
---|
| 15 | |
---|
| 16 | if [ $DO_BUILD -eq 1 ] |
---|
| 17 | then |
---|
| 18 | # prepare build |
---|
| 19 | mkdir -p $BUILD_DIR |
---|
| 20 | check_result $? "creating build dir" |
---|
| 21 | cd $BUILD_DIR |
---|
| 22 | |
---|
| 23 | # export env variable |
---|
| 24 | export LUA_DIR="${TEMP_DIR}/ceguideps" |
---|
| 25 | |
---|
| 26 | # run cmake |
---|
| 27 | cmake .. -G "MSYS Makefiles" |
---|
| 28 | check_result $? "cmake" |
---|
| 29 | |
---|
| 30 | # compile |
---|
| 31 | make -j8 |
---|
| 32 | check_result $? "make" |
---|
| 33 | |
---|
| 34 | # copy lib |
---|
| 35 | find "." -name "*.dll" -exec cp -a {} ${TARGET_BIN_DIR} \; |
---|
| 36 | check_result $? "copying library" |
---|
| 37 | |
---|
[133] | 38 | # copy includes |
---|
| 39 | mkdir -p ${TARGET_INC_DIR}/tolua++ |
---|
| 40 | check_result $? "creating include dir" |
---|
| 41 | cp -aT "../include" ${TARGET_INC_DIR}/tolua++/include |
---|
| 42 | check_result $? "copying includes" |
---|
| 43 | |
---|
[126] | 44 | # add to ceguideps |
---|
| 45 | mkdir -p "${TEMP_DIR}/ceguideps/lib" |
---|
| 46 | check_result $? "create lib dir" |
---|
| 47 | mkdir -p "${TEMP_DIR}/ceguideps/include" |
---|
| 48 | check_result $? "create include dir" |
---|
| 49 | |
---|
| 50 | find "." -name "*.dll" -exec cp -a {} "${TEMP_DIR}/ceguideps/lib" \; |
---|
| 51 | check_result $? "copy lib" |
---|
| 52 | find "../include" -name "*.h" -exec cp -a {} "${TEMP_DIR}/ceguideps/include" \; |
---|
| 53 | check_result $? "copy includes" |
---|
| 54 | |
---|
| 55 | echo "${NAME} Finished building ${NAME}" |
---|
| 56 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.