Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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.0 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        # add to ceguideps
39        mkdir -p "${TEMP_DIR}/ceguideps/lib"
40        check_result $? "create lib dir"
41        mkdir -p "${TEMP_DIR}/ceguideps/include"
42        check_result $? "create include dir"
43       
44        find "." -name "*.dll" -exec cp -a {} "${TEMP_DIR}/ceguideps/lib" \;
45        check_result $? "copy lib"
46        find "../include" -name "*.h" -exec cp -a {} "${TEMP_DIR}/ceguideps/include" \;
47        check_result $? "copy includes"
48
49        echo "${NAME} Finished building ${NAME}"
50fi
Note: See TracBrowser for help on using the repository browser.