diff options
author | Jouni Malinen <j@w1.fi> | 2008-12-20 17:50:13 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-12-20 17:50:13 +0200 |
commit | 2ae2d8aea4c287f18e02285985154fda92591d13 (patch) | |
tree | 5383d64d634627ee5cae981720aaf1073c623fbb /build_release | |
parent | e6f9861ace44bc193dda827ebc3b498e4f273578 (diff) | |
download | external_wpa_supplicant_8_ti-2ae2d8aea4c287f18e02285985154fda92591d13.zip external_wpa_supplicant_8_ti-2ae2d8aea4c287f18e02285985154fda92591d13.tar.gz external_wpa_supplicant_8_ti-2ae2d8aea4c287f18e02285985154fda92591d13.tar.bz2 |
Changed win_gui cross compilation to use cleaner Qt setup
A separate cross compiler mkspecs file (win32-x-g++) is now used to
configure all build options so the setup-mingw-cross-compiling hack is
not needed anymore. Furthermore, the MinGW setup is now on path, so no
need to specify extra PATH changes for it.
Diffstat (limited to 'build_release')
-rwxr-xr-x | build_release | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/build_release b/build_release index fd19536..3e47453 100755 --- a/build_release +++ b/build_release @@ -1,7 +1,5 @@ #!/bin/sh -# Path to the Windows cross compiler (mingw) -WINCROSS=/opt/xmingw/bin WINLOCAL=/home/jm/H-win/local set -e @@ -54,8 +52,8 @@ if [ "$2" == "nobin" ]; then exit 0 fi -if [ -d $WINCROSS ]; then - pushd $RELDIR + +cd $RELDIR PDIR=wpa_supplicant-$VER WDIR=wpa_supplicant-windows-bin-$VER @@ -66,9 +64,8 @@ if [ -d $WINCROSS ]; then CONFIG_DRIVER_NDIS=y CONFIG_NATIVE_WINDOWS=y -CFLAGS += -I/opt/xmingw/i386-mingw32msvc/include/ddk -CC=i386-mingw32msvc-gcc -STRIP=i386-mingw32msvc-strip +CC=i586-mingw32msvc-gcc +STRIP=i586-mingw32msvc-strip PLATFORMSDKLIB=$WINLOCAL/lib CONFIG_NDIS_EVENTS_INTEGRATED=y @@ -107,7 +104,7 @@ CFLAGS += -DCONFIG_DEBUG_FILE EOF # First, build the Windows service & registry version and rename it - PATH=$PATH:$WINCROSS make windows-bin + make windows-bin mv wpa_supplicant.exe wpasvc.exe # Then, build "the standard" wpa_supplicant.exe @@ -116,7 +113,7 @@ CONFIG_MAIN=main CONFIG_BACKEND=file EOF - PATH=$PATH:$WINCROSS make windows-bin + make windows-bin for i in COPYING; do unix2dos < ../$i > ../../"$WDIR"/$i @@ -128,16 +125,15 @@ EOF cp win_example.reg ../../"$WDIR" cd wpa_gui-qt4 - PATH=$PATH:$WINCROSS ./setup-mingw-cross-compiling - PATH=$PATH:$WINCROSS make + qmake -spec win32-x-g++ + make cp release/wpa_gui.exe ../../../"$WDIR" cd ../../.. rm -rf "$PDIR" zip "$WDIR.zip" "$WDIR"/* rm -rf "$WDIR" - popd -fi +cd $RELDIR/.. ls -l $RELDIR/*$VER* |