Commit 5dfad5a662b9df60c40a901ea78c41951621dbdf
1 parent
e2df9988
Exists in
master
and in
5 other branches
Incluindo scripts para configuração dos cross-compilers windows
Showing
2 changed files
with
70 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,37 @@ |
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +export HOST_CC=/usr/bin/gcc | |
| 4 | +export cache=win32.cache | |
| 5 | + | |
| 6 | +OPT=$@ | |
| 7 | + | |
| 8 | +OFFICE=$(grep -c 'AC_ARG_ENABLE(\[office' configure.ac) | |
| 9 | + | |
| 10 | +if [ "$OFFICE" != "0" ]; then | |
| 11 | + OPT="$OPT --disable-office" | |
| 12 | +fi | |
| 13 | + | |
| 14 | +if [ -d ~/win32/jdk ]; then | |
| 15 | + export JDK_HOME=$(readlink -f ~/win32/jdk) | |
| 16 | +else | |
| 17 | + unset JDK_HOME | |
| 18 | +fi | |
| 19 | + | |
| 20 | +if [ -d ~/win32/jre ]; then | |
| 21 | + export JRE_HOME=$(readlink -f ~/win32/jre) | |
| 22 | +else | |
| 23 | + unset JRE_HOME | |
| 24 | +fi | |
| 25 | + | |
| 26 | +./configure --cache-file=$cache \ | |
| 27 | + --host=i686-w64-mingw32 \ | |
| 28 | + --prefix=/usr/i686-w64-mingw32/sys-root/mingw \ | |
| 29 | + --libdir=/usr/i686-w64-mingw32/sys-root/mingw/lib \ | |
| 30 | + $OPT | |
| 31 | + | |
| 32 | + | |
| 33 | +status=$? | |
| 34 | + | |
| 35 | +rm -f "$cache" | |
| 36 | +exit $status | |
| 37 | + | ... | ... |
| ... | ... | @@ -0,0 +1,33 @@ |
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +export HOST_CC=/usr/bin/gcc | |
| 4 | +export cache=win64.cache | |
| 5 | + | |
| 6 | +OPT=$@ | |
| 7 | + | |
| 8 | +OFFICE=$(grep -c 'AC_ARG_ENABLE(\[office' configure.ac) | |
| 9 | + | |
| 10 | +if [ "$OFFICE" != "0" ]; then | |
| 11 | + OPT="$OPT --disable-office" | |
| 12 | +fi | |
| 13 | + | |
| 14 | +if [ -d ~/win64/jdk ]; then | |
| 15 | + export JDK_HOME=$(readlink -f ~/win64/jdk) | |
| 16 | +fi | |
| 17 | + | |
| 18 | +if [ -d ~/win64/jre ]; then | |
| 19 | + export JRE_HOME=$(readlink -f ~/win64/jre) | |
| 20 | +fi | |
| 21 | + | |
| 22 | + | |
| 23 | +./configure --cache-file=$cache \ | |
| 24 | + --host=x86_64-w64-mingw32 \ | |
| 25 | + --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw \ | |
| 26 | + --libdir=/usr/x86_64-w64-mingw32/sys-root/mingw/lib \ | |
| 27 | + $OPT | |
| 28 | + | |
| 29 | +status=$? | |
| 30 | + | |
| 31 | +rm -f "$cache" | |
| 32 | +exit $status | |
| 33 | + | ... | ... |