Minor Windows build system changes:
* Fall back to prebuilt-binary if gcc is not available.
* Documentation changes in ./domake-win
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2760 e7ae566f-a301-0410-adde-c780ea21d3b5
| ... | ... |
@@ -51,13 +51,16 @@ |
| 51 | 51 |
# Setting up a complete tool chain to build OpenVPN and all |
| 52 | 52 |
# dependencies on Windows can be an onerous task, so the capability |
| 53 | 53 |
# is provided to reference a directory of pre-built components during |
| 54 |
-# the build process. This would allow you, for example, to build an |
|
| 55 |
-# OpenVPN installer with custom edits to install-win32/settings.in, |
|
| 56 |
-# but then avoid needing to build all other components (such as OpenSSL, |
|
| 57 |
-# LZO, Pkcs11-helper, TAP driver windows service, etc.). The procedure |
|
| 58 |
-# is as follows. First Download and expand the pre-built binaries from: |
|
| 59 |
-# |
|
| 60 |
-# http://openvpn.net/beta/windows-devel/ (choose the most recent .tbz file) |
|
| 54 |
+# the build process. When dependencies are missing to build a given |
|
| 55 |
+# component (such as the TAP driver), the build script will auto-detect |
|
| 56 |
+# this and use the pre-built version instead. This would allow you, for |
|
| 57 |
+# example, to build an OpenVPN installer with custom edits to |
|
| 58 |
+# install-win32/settings.in, but then avoid needing to build all other |
|
| 59 |
+# components (such as OpenSSL, LZO, Pkcs11-helper, TAP driver windows |
|
| 60 |
+# service, etc.). The procedure is as follows. First Download and expand |
|
| 61 |
+# the pre-built binaries from: |
|
| 62 |
+# |
|
| 63 |
+# https://secure.openvpn.net/devel/ (choose the most recent -prebuilt .tbz file) |
|
| 61 | 64 |
# |
| 62 | 65 |
# After expanding the .tbz file, cd to the top level directory and |
| 63 | 66 |
# expand an OpenVPN source distribution taken from either the subversion |
| ... | ... |
@@ -3,7 +3,7 @@ |
| 3 | 3 |
# get version.nsi definitions |
| 4 | 4 |
. autodefs/defs.sh |
| 5 | 5 |
|
| 6 |
-if [ -d "$OPENSSL_DIR" ] && [ -d "$LZO_DIR" ] && [ -d "$PKCS11_HELPER_DIR" ]; then |
|
| 6 |
+if gcc --version &>/dev/null && [ -d "$OPENSSL_DIR" ] && [ -d "$LZO_DIR" ] && [ -d "$PKCS11_HELPER_DIR" ]; then |
|
| 7 | 7 |
# build OpenVPN binary |
| 8 | 8 |
[ "$CLEAN" = "yes" ] && make -f makefile.w32 clean |
| 9 | 9 |
make -f makefile.w32 -j $MAKE_JOBS |
| ... | ... |
@@ -13,5 +13,5 @@ if [ -d "$OPENSSL_DIR" ] && [ -d "$LZO_DIR" ] && [ -d "$PKCS11_HELPER_DIR" ]; th |
| 13 | 13 |
cp $PRODUCT_UNIX_NAME.exe $GENOUT/bin |
| 14 | 14 |
strip $GENOUT/bin/$PRODUCT_UNIX_NAME.exe |
| 15 | 15 |
else |
| 16 |
- echo DID NOT BUILD openvpn.exe because one or more of OPENSSL_DIR, LZO_DIR, or PKCS11_HELPER_DIR directories were missing |
|
| 16 |
+ echo DID NOT BUILD openvpn.exe because one or more of gcc, OPENSSL_DIR, LZO_DIR, or PKCS11_HELPER_DIR directories were missing |
|
| 17 | 17 |
fi |
| ... | ... |
@@ -26,5 +26,5 @@ if [ -d "$SVC_TEMPLATE" ] ; then |
| 26 | 26 |
cp service-win32/${PRODUCT_UNIX_NAME}serv.exe $GENOUT/bin
|
| 27 | 27 |
strip $GENOUT/bin/${PRODUCT_UNIX_NAME}serv.exe
|
| 28 | 28 |
else |
| 29 |
- echo OpenVPN service template directory $SVC_TEMPLATE NOT FOUND |
|
| 29 |
+ echo OpenVPN service not built -- template directory $SVC_TEMPLATE NOT FOUND |
|
| 30 | 30 |
fi |