blob: 7fe643c998b2abb86b9f236acf91008ca3c3ee71 (
plain) (
tree)
|
|
#!/bin/sh
# Build the x86 and x64 versions of the TAP driver
# Requires the Windows DDK
# get version.nsi definitions
. autodefs/defs.sh
# common declarations for all DDK build targets
. install-win32/ddk-common
if [ -n "$PRODUCT_TAP_DEBUG" ] ; then
w2ktarget="w2k c"
amdtarget="chk $x64_tag WNET"
else
w2ktarget="w2k f"
amdtarget="fre $x64_tag WNET"
fi
if [ -z "$DRVBINSRC" ] ; then
if [ -n "$TAP_BIN_AMD64" ]; then
amdtarget=""
fi
cd tap-win32
t=`pwd`
cd ..
for mode in "$w2ktarget" "$amdtarget"; do
echo '**********' build TAP $mode
cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef"
done
title openvpn-build &>/dev/null
if [ -n "$TAP_BIN_AMD64" ]; then
mkdir -p $t/amd64
cp "$TAP_BIN_AMD64" $t/amd64
fi
# copy driver files into tap-win32/dist
cd tap-win32
rm -rf dist
mkdir dist
cd dist
mkdir i386
mkdir amd64
cd i386
x86=`pwd`
cd ../amd64
x64=`pwd`
cd ../..
cp i386/OemWin2k.inf $x86
cp i386/*.sys $x86
cp amd64/OemWin2k.inf $x64
cp amd64/*.sys $x64
out="TAP driver catalog file is undefined";
echo "$out" >$x86/$PRODUCT_TAP_ID.cat
echo "$out" >$x64/$PRODUCT_TAP_ID.cat
fi
|