source: utils/cross-compile.win32 @ eecccf1

Last change on this file since eecccf1 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
Line 
1#!/bin/sh
2# Simple cross compilation script for BitlBee using mingw32
3# (C) Jelmer Vernooij <jelmer@samba.org> 2005-2006
4
5GTK_SITE=ftp://ftp.gtk.org/pub/gtk/v2.8/win32
6
7GLIB_VERSION=2.10.1
8LIBICONV_VERSION=1.9.1
9
10wget -c $GTK_SITE/glib-dev-$GLIB_VERSION.zip
11wget -c $GTK_SITE/dependencies/libiconv-$LIBICONV_VERSION.bin.woe32.zip
12
13DEPSDIR=`pwd`/win32
14mkdir $DEPSDIR
15
16unzip -d $DEPSDIR -o libiconv-$LIBICONV_VERSION.bin.woe32.zip
17unzip -d $DEPSDIR -o glib-dev-$GLIB_VERSION.zip
18
19LD=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 
20echo OUTFILE=bitlbee.exe >> Makefile.settings
21echo ARCH=Windows >> Makefile.settings
22echo LFLAGS+=-lwsock32 >> Makefile.settings
23$MAKE
Note: See TracBrowser for help on using the repository browser.