Browse code

misc Windows build system changes

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1875 e7ae566f-a301-0410-adde-c780ea21d3b5

james authored on 2007/04/26 07:58:21
Showing 6 changed files
... ...
@@ -267,9 +267,10 @@ TUN/TAP Driver Configuration:
267 267
   needs to be manually copied to /kernel/drv/sparcv9/ and then a 
268 268
   reconfiguration reboot. (boot -r).
269 269
 
270
-* Windows 2000 and XP
270
+* Windows 2000/XP/2003/Vista
271 271
 
272
-  See INSTALL-win32.txt for more info
272
+  See domake-win for building instructions.
273
+  See INSTALL-win32.txt for usage info.
273 274
 
274 275
  See the man page for more information, usage examples, and
275 276
  information on firewall configuration.
... ...
@@ -2,9 +2,10 @@
2 2
 
3 3
 # This is the master OpenVPN build script for Windows.
4 4
 # This script will build OpenVPN, the TAP driver, and
5
-# the installer from source.
5
+# the installer from source, targeting x86 on Windows
6
+# 2000 and higher, and x64 on Windows 2003 and higher.
6 7
 #
7
-# See top-devel build configuration in install-win32/version.nsi
8
+# See top-level build configuration in install-win32/settings.in
8 9
 #
9 10
 # Prerequisite installs:
10 11
 #
... ...
@@ -13,7 +14,12 @@
13 13
 # msysDTK   -- for perl
14 14
 # NSIS      -- for building installer
15 15
 # svn       -- for checking out source code (or TortoiseSVN)
16
-# Windows Driver Kit Vista RC1 (5600) -- for building TAP driver + tapinstall
16
+# Windows Driver Kit, Vista RC1 (5600) -- for building TAP driver + tapinstall
17
+#
18
+# Required libraries (must be prebuilt)
19
+#
20
+# OpenSSL   -- define OPENSSL_DIR in settings.in
21
+# LZO       -- define LZO_DIR in settings.in
17 22
 #
18 23
 # Required source code not included in OpenVPN SVN repository
19 24
 # because of MS licensing restrictions:
... ...
@@ -1,5 +1,7 @@
1 1
 #!/usr/bin/perl
2 2
 
3
+# convert a unix filename to a DOS filename
4
+
3 5
 while ($unixname = shift(@ARGV)) {
4 6
   $unixname =~ s#^/([a-zA-Z])(/|$)#$1:\\#g;
5 7
   $unixname =~ s#/#\\#g;
... ...
@@ -22,6 +22,10 @@ if [ -z "$DRVBINSRC" ] ; then
22 22
     rm -rf tapinstall
23 23
     cp -a "$TISRC" tapinstall
24 24
 
25
+    if [ -e tapinstall/sources.in ]; then
26
+	perl install-win32/ifdef.pl autodefs/defs.in <tapinstall/sources.in >tapinstall/sources
27
+    fi
28
+
25 29
     cd tapinstall
26 30
     t=`pwd`
27 31
     cd ..
... ...
@@ -606,10 +606,12 @@ Section "Uninstall"
606 606
 
607 607
   RMDir /r $SMPROGRAMS\${PRODUCT_NAME}
608 608
 
609
-  Delete "$INSTDIR\bin\${PRODUCT_UNIX_NAME}.exe"
610 609
   !ifdef OPENVPN_GUI_DEFINED
611 610
     Delete "$INSTDIR\bin\${OPENVPN_GUI}"
611
+    Delete "$DESKTOP\${PRODUCT_NAME} GUI.lnk"
612 612
   !endif
613
+
614
+  Delete "$INSTDIR\bin\${PRODUCT_UNIX_NAME}.exe"
613 615
   Delete "$INSTDIR\bin\${PRODUCT_UNIX_NAME}serv.exe"
614 616
   Delete "$INSTDIR\bin\libeay32.dll"
615 617
   Delete "$INSTDIR\bin\libssl32.dll"
... ...
@@ -47,6 +47,9 @@
47 47
 ; visible=0x81  hidden=0x89
48 48
 !define PRODUCT_TAP_CHARACTERISTICS     0x81
49 49
 
50
+# hide tap warning
51
+;!define PRODUCT_TAP_HIDE_WARN
52
+
50 53
 # Build debugging version of TAP driver
51 54
 ;!define PRODUCT_TAP_DEBUG
52 55