Last change
on this file since 126 was
126,
checked in by landauf, 9 years ago
|
eol-style native
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | NAME="[lua]" |
---|
4 | WORKING_DIR="lua/lua-5.1.5" |
---|
5 | |
---|
6 | source ./build_common.sh |
---|
7 | |
---|
8 | if [ $DO_CLEAN -eq 1 ] |
---|
9 | then |
---|
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" |
---|
15 | fi |
---|
16 | |
---|
17 | if [ $DO_BUILD -eq 1 ] |
---|
18 | then |
---|
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}" |
---|
51 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.