Last change
on this file since 1cda4f3 was
1705ec3,
checked in by Jelmer Vernooij <jelmer@…>, at 2006-05-25T16:10:39Z
|
Add tool for cross compiling for Windows
|
-
Property mode set to
100755
|
File size:
822 bytes
|
Rev | Line | |
---|
[1705ec3] | 1 | #!/bin/sh |
---|
| 2 | # Simple cross compilation script for BitlBee using mingw32 |
---|
| 3 | # (C) Jelmer Vernooij <jelmer@samba.org> 2005-2006 |
---|
| 4 | |
---|
| 5 | GTK_SITE=ftp://ftp.gtk.org/pub/gtk/v2.8/win32 |
---|
| 6 | |
---|
| 7 | GLIB_VERSION=2.10.1 |
---|
| 8 | LIBICONV_VERSION=1.9.1 |
---|
| 9 | |
---|
| 10 | wget -c $GTK_SITE/glib-dev-$GLIB_VERSION.zip |
---|
| 11 | wget -c $GTK_SITE/dependencies/libiconv-$LIBICONV_VERSION.bin.woe32.zip |
---|
| 12 | |
---|
| 13 | DEPSDIR=`pwd`/win32 |
---|
| 14 | mkdir $DEPSDIR |
---|
| 15 | |
---|
| 16 | unzip -d $DEPSDIR -o libiconv-$LIBICONV_VERSION.bin.woe32.zip |
---|
| 17 | unzip -d $DEPSDIR -o glib-dev-$GLIB_VERSION.zip |
---|
| 18 | |
---|
| 19 | LD=i586-mingw32msvc-ld CC=i586-mingw32msvc-gcc STRIP=i586-mingw32msvc-strip PKG_CONFIG_PATH="$DEPSDIR" PKG_CONFIG="pkg-config --define-variable=prefix=\"$DEPSDIR\"" ./configure --ssl=sspi --ipv6=0 --yahoo=0 |
---|
| 20 | echo OUTFILE=bitlbee.exe >> Makefile.settings |
---|
| 21 | echo ARCH=Windows >> Makefile.settings |
---|
| 22 | echo LFLAGS+=-lwsock32 >> Makefile.settings |
---|
| 23 | $MAKE |
---|
Note: See
TracBrowser
for help on using the repository browser.