Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw64/build_lua.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.2 KB
Line 
1#!/bin/sh
2
3NAME="[lua]"
4WORKING_DIR="lua/lua-5.1.5"
5
6source ./build_common.sh
7
8if [ $DO_CLEAN -eq 1 ]
9then
10        make clean
11        check_result $? "cleaning build"
12#       # only necessary in versions 5.2 and above
13#       rm -rf "install"
14#       check_result $? "delete install directory"
15fi
16
17if [ $DO_BUILD -eq 1 ]
18then
19        # compile
20        make mingw -j8
21        check_result $? "make"
22        make local
23        check_result $? "make local"
24
25        LIB_DIR=src
26        HEADER_DIR=include # version 5.1
27#       HEADER_DIR=install/include # version 5.2 and above
28       
29        # copy lib
30        find $LIB_DIR -name "*.dll" -exec cp -a {} ${TARGET_BIN_DIR} \;
31        check_result $? "copying library"
32       
33        # copy headers
34        mkdir -p "${TARGET_INC_DIR}/lua"
35        check_result $? "create include dir"
36        cp -aT $HEADER_DIR "${TARGET_INC_DIR}/lua"
37        check_result $? "copying includes"
38
39        # add to ceguideps
40        mkdir -p "${TEMP_DIR}/ceguideps/lib"
41        check_result $? "create lib dir"
42        mkdir -p "${TEMP_DIR}/ceguideps/include"
43        check_result $? "create include dir"
44       
45        find $LIB_DIR -name "*.dll" -exec cp -a {} "${TEMP_DIR}/ceguideps/lib" \;
46        check_result $? "copy lib"
47        cp -aT $HEADER_DIR "${TEMP_DIR}/ceguideps/include/lua"
48        check_result $? "copy includes"
49
50        echo "${NAME} Finished building ${NAME}"
51fi
Note: See TracBrowser for help on using the repository browser.