|
@@ -1,7 +1,5 @@
|
|
#!/bin/sh
|
|
#!/bin/sh
|
|
|
|
|
|
-# Path to the Windows cross compiler (mingw)
|
|
|
|
-WINCROSS=/opt/xmingw/bin
|
|
|
|
WINLOCAL=/home/jm/H-win/local
|
|
WINLOCAL=/home/jm/H-win/local
|
|
|
|
|
|
set -e
|
|
set -e
|
|
@@ -54,8 +52,8 @@ if [ "$2" == "nobin" ]; then
|
|
exit 0
|
|
exit 0
|
|
fi
|
|
fi
|
|
|
|
|
|
-if [ -d $WINCROSS ]; then
|
|
|
|
- pushd $RELDIR
|
|
|
|
|
|
+
|
|
|
|
+cd $RELDIR
|
|
|
|
|
|
PDIR=wpa_supplicant-$VER
|
|
PDIR=wpa_supplicant-$VER
|
|
WDIR=wpa_supplicant-windows-bin-$VER
|
|
WDIR=wpa_supplicant-windows-bin-$VER
|
|
@@ -66,9 +64,8 @@ if [ -d $WINCROSS ]; then
|
|
CONFIG_DRIVER_NDIS=y
|
|
CONFIG_DRIVER_NDIS=y
|
|
CONFIG_NATIVE_WINDOWS=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
|
|
PLATFORMSDKLIB=$WINLOCAL/lib
|
|
CONFIG_NDIS_EVENTS_INTEGRATED=y
|
|
CONFIG_NDIS_EVENTS_INTEGRATED=y
|
|
|
|
|
|
@@ -107,7 +104,7 @@ CFLAGS += -DCONFIG_DEBUG_FILE
|
|
EOF
|
|
EOF
|
|
|
|
|
|
# First, build the Windows service & registry version and rename it
|
|
# 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
|
|
mv wpa_supplicant.exe wpasvc.exe
|
|
|
|
|
|
# Then, build "the standard" wpa_supplicant.exe
|
|
# Then, build "the standard" wpa_supplicant.exe
|
|
@@ -116,7 +113,7 @@ CONFIG_MAIN=main
|
|
CONFIG_BACKEND=file
|
|
CONFIG_BACKEND=file
|
|
EOF
|
|
EOF
|
|
|
|
|
|
- PATH=$PATH:$WINCROSS make windows-bin
|
|
|
|
|
|
+ make windows-bin
|
|
|
|
|
|
for i in COPYING; do
|
|
for i in COPYING; do
|
|
unix2dos < ../$i > ../../"$WDIR"/$i
|
|
unix2dos < ../$i > ../../"$WDIR"/$i
|
|
@@ -128,16 +125,15 @@ EOF
|
|
cp win_example.reg ../../"$WDIR"
|
|
cp win_example.reg ../../"$WDIR"
|
|
|
|
|
|
cd wpa_gui-qt4
|
|
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"
|
|
cp release/wpa_gui.exe ../../../"$WDIR"
|
|
cd ../../..
|
|
cd ../../..
|
|
rm -rf "$PDIR"
|
|
rm -rf "$PDIR"
|
|
zip "$WDIR.zip" "$WDIR"/*
|
|
zip "$WDIR.zip" "$WDIR"/*
|
|
rm -rf "$WDIR"
|
|
rm -rf "$WDIR"
|
|
|
|
|
|
- popd
|
|
|
|
-fi
|
|
|
|
|
|
+cd $RELDIR/..
|
|
|
|
|
|
ls -l $RELDIR/*$VER*
|
|
ls -l $RELDIR/*$VER*
|
|
|
|
|