Commit 6cef729eccb67f9cdf3e88243ad01af5f3711793
1 parent
eb43b26b
Exists in
master
and in
3 other branches
Updating info for windows builds.
Showing
2 changed files
with
76 additions
and
1 deletions
Show diff stats
README.md
... | ... | @@ -35,8 +35,14 @@ Cross-compiling on SuSE Linux (Native or WSL) |
35 | 35 | |
36 | 36 | 3. Install cross compilers |
37 | 37 | |
38 | - * ./lib3270/win/install-cross.sh --32 --64 | |
38 | + * ./lib3270/win/install-cross.sh --32 (for 32 bits) | |
39 | + * ./lib3270/win/install-cross.sh --64 (for 64 bits) | |
40 | + * ./lib3270/win/install-cross.sh --all (for 32 and 64 bits) | |
39 | 41 | |
42 | +3. Configure build | |
43 | + | |
44 | + * ./lib3270/win/win-configure.sh --32 (for 32 bits) | |
45 | + * ./lib3270/win/win-configure.sh --64 (for 64 bits) | |
40 | 46 | |
41 | 47 | |
42 | 48 | ... | ... |
... | ... | @@ -0,0 +1,69 @@ |
1 | +#!/bin/bash | |
2 | + | |
3 | +aclocal | |
4 | +if test $? != 0 ; then | |
5 | + echo "aclocal failed." | |
6 | + exit -1 | |
7 | +fi | |
8 | + | |
9 | +autoconf | |
10 | +if test $? != 0 ; then | |
11 | + echo "autoconf failed." | |
12 | + exit -1 | |
13 | +fi | |
14 | + | |
15 | +mkdir -p scripts | |
16 | +automake --add-missing 2> /dev/null | true | |
17 | + | |
18 | +export HOST_CC=/usr/bin/gcc | |
19 | + | |
20 | +until [ -z "${1}" ] | |
21 | +do | |
22 | + if [ ${1:0:2} = '--' ]; then | |
23 | + tmp=${1:2} | |
24 | + parameter=${tmp%%=*} | |
25 | + parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
26 | + | |
27 | + case $parameter in | |
28 | + | |
29 | + 32) | |
30 | + rm -f win32.cache | |
31 | + ./configure \ | |
32 | + --cache-file=win32.cache \ | |
33 | + --host=i686-w64-mingw32 \ | |
34 | + --prefix=/usr/i686-w64-mingw32/sys-root/mingw \ | |
35 | + --libdir=/usr/i686-w64-mingw32/sys-root/mingw/lib | |
36 | + | |
37 | + exit $? | |
38 | + ;; | |
39 | + | |
40 | + 64) | |
41 | + rm -f win64.cache | |
42 | + ./configure \ | |
43 | + --cache-file=win64.cache \ | |
44 | + --host=x86_64-w64-mingw32 \ | |
45 | + --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw \ | |
46 | + --libdir=/usr/x86_64-w64-mingw32/sys-root/mingw/lib | |
47 | + exit $? | |
48 | + ;; | |
49 | + | |
50 | + ALL) | |
51 | + ;; | |
52 | + | |
53 | + | |
54 | + *) | |
55 | + value=${tmp##*=} | |
56 | + eval $parameter=$value | |
57 | + esac | |
58 | + | |
59 | + fi | |
60 | + | |
61 | + shift | |
62 | +done | |
63 | + | |
64 | +echo "Execute:" | |
65 | +echo " ${0} --32 for 32 bits windows." | |
66 | +echo " ${0} --64 for 64 bits windows." | |
67 | + | |
68 | +exit -1 | |
69 | + | ... | ... |