Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw64/build_toluapp.sh @ 133

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

prepared for CEGUI 0.8

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1#!/bin/sh
2
3NAME="[toluapp]"
4WORKING_DIR="tolua++/toluapp-master"
5
6BUILD_DIR=build
7
8source ./build_common.sh
9
10if [ $DO_CLEAN -eq 1 ]
11then
12        rm -rf $BUILD_DIR
13        check_result $? "cleaning build dir"
14fi
15
16if [ $DO_BUILD -eq 1 ]
17then
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       
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
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}"
56fi
Note: See TracBrowser for help on using the repository browser.