Last change
on this file since 127 was
126,
checked in by landauf, 9 years ago
|
eol-style native
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | NAME="[freealut]" |
---|
4 | WORKING_DIR="freealut/freealut-freealut_1_1_0" |
---|
5 | AL_SDK_DIR="C:/Program Files (x86)/OpenAL 1.1 SDK" |
---|
6 | |
---|
7 | BUILD_DIR=build |
---|
8 | |
---|
9 | source ./build_common.sh |
---|
10 | |
---|
11 | if [ $DO_CLEAN -eq 1 ] |
---|
12 | then |
---|
13 | rm -rf $BUILD_DIR |
---|
14 | check_result $? "cleaning build dir" |
---|
15 | fi |
---|
16 | |
---|
17 | if [ $DO_BUILD -eq 1 ] |
---|
18 | then |
---|
19 | # prepare OpenAL dependencies |
---|
20 | AL_INCLUDES="${TARGET_INC_DIR}/openal/include" |
---|
21 | mkdir -p ${AL_INCLUDES} |
---|
22 | check_result $? "create OpenAL include dir" |
---|
23 | cp -aT "${AL_SDK_DIR}/include" "${AL_INCLUDES}/AL" |
---|
24 | check_result $? "copy OpenAL includes" |
---|
25 | |
---|
26 | # prepare build |
---|
27 | mkdir -p $BUILD_DIR |
---|
28 | check_result $? "creating build dir" |
---|
29 | cd $BUILD_DIR |
---|
30 | |
---|
31 | # run cmake |
---|
32 | cmake .. -G "MSYS Makefiles" -DOPENAL_INCLUDE_DIR:PATH=${AL_INCLUDES} |
---|
33 | check_result $? "cmake" |
---|
34 | |
---|
35 | # compile |
---|
36 | make -j8 |
---|
37 | check_result $? "make" |
---|
38 | |
---|
39 | # copy lib |
---|
40 | cp -a "libalut.dll" ${TARGET_BIN_DIR} |
---|
41 | check_result $? "copying library" |
---|
42 | |
---|
43 | # copy headers |
---|
44 | HEADER_DIR="${TARGET_INC_DIR}/freealut/include/AL" |
---|
45 | mkdir -p ${HEADER_DIR} |
---|
46 | check_result $? "create header dir" |
---|
47 | find "../include/AL" -name "*.h" -exec cp -a {} ${HEADER_DIR} \; |
---|
48 | check_result $? "copying headers" |
---|
49 | |
---|
50 | echo "${NAME} Finished building ${NAME}" |
---|
51 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.