Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw64/build_tcl.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.3 KB
Line 
1#!/bin/sh
2
3NAME="[tcl]"
4WORKING_DIR="tcl/tcl8.6.4"
5
6source ./build_common.sh
7
8# remove the 'pkgs' directory to avoid building unnecessary packages
9rm -rf "pkgs"
10
11# go to 'win' directory
12cd "win"
13check_result $? "cd win"
14
15if [ $DO_CLEAN -eq 1 ]
16then
17        make clean
18        check_result $? "cleaning build"
19fi
20
21if [ $DO_BUILD -eq 1 ]
22then
23        # configure
24        ./configure
25        check_result $? "configure"
26
27        # compile
28        make -j8
29        if [ $? -ne 0 ]
30        then
31                # sometimes the first make-run fails to build the *.exe target -> we call make again and only check the result of the second call
32                echo "${NAME} trying again to build target..."
33                make
34                check_result $? "make"
35        fi
36
37        # copy lib
38        find "." -name "tcl??.dll" -exec cp -a {} ${TARGET_BIN_DIR} \;
39        check_result $? "copy tcl-lib"
40        find "." -name "zlib*.dll" -exec cp -a {} ${TARGET_BIN_DIR} \;
41        check_result $? "copy zlib-lib"
42
43        # copy headers
44        HEADERS_DIR=${TARGET_INC_DIR}/tcl/include
45        mkdir -p $HEADERS_DIR
46        check_result $? "create headers directory"
47        find "../generic/" -name "*.h" -exec cp -a {} ${HEADERS_DIR} \;
48        check_result $? "copy headers"
49       
50        # copy tcl-script library
51        cp -aT "../library" "${TARGET_LIB_DIR}/tcl"
52        check_result $? "copy script library"
53
54        echo "${NAME} Finished building ${NAME}"
55fi
Note: See TracBrowser for help on using the repository browser.