summaryrefslogtreecommitdiff
path: root/win/build_all.py
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2012-11-05 16:28:10 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2012-11-05 16:28:10 +0100
commitd213c4e5576e2fd601679e0d7b2fb1262b807111 (patch)
tree5f0cc82bd0f11fb13b385417604d04c751245a92 /win/build_all.py
parent79c8d3ef7a938f86472e549ef64e1fb820dc80c4 (diff)
parent8dd0350e1607aa30f7a043c8d5ec7a7eeb874115 (diff)
Merge tag 'upstream/2.3_rc1'
Upstream version 2.3_rc1
Diffstat (limited to 'win/build_all.py')
-rw-r--r--win/build_all.py69
1 files changed, 0 insertions, 69 deletions
diff --git a/win/build_all.py b/win/build_all.py
deleted file mode 100644
index 47716a1..0000000
--- a/win/build_all.py
+++ /dev/null
@@ -1,69 +0,0 @@
-import getopt, sys
-from config_all import main as config_all
-from build import main as build_openvpn
-from build_ddk import main as build_ddk
-from make_dist import main as make_dist
-
-def Usage():
- '''Show usage information'''
- print "Usage: build_all.py [OPTIONS]..."
- print "Build OpenVPN using Visual Studio tools"
- print
- print " -h, --help Show this help"
- print " -u, --unsigned Do not sign the TAP drivers"
- print " -n, --notap Don't build the TAP driver"
- sys.exit(1)
-
-def main(config):
-
- # Do a signed build by default
- signedBuild=True
-
- # Build the TAP driver by default
- tap=True
-
- # Parse the command line argument(s)
- try:
- opts, args = getopt.getopt(sys.argv[1:], "hun", ["help", "unsigned", "notap"])
- except getopt.GetoptError:
- Usage()
-
- for o, a in opts:
- if o in ("-h","--help"):
- Usage()
- if o in ("-u", "--unsigned"):
- signedBuild=False
- if o in ("-n", "--notap"):
- tap=False
-
- # Check if the SignTool module is present. This avoids ImportErrors popping
- # up annoyingly _after_ the build.
- if signedBuild:
- try:
- from signtool import SignTool
- except (ImportError):
- print "ERROR: SignTool python module not found! Can't do a signed build."
- sys.exit(1)
- else:
- print "Doing an unsigned build as requested"
-
- # Start the build
- config_all(config)
- build_openvpn()
-
- if tap:
- build_ddk(config, 'tap', 'all')
- build_ddk(config, 'tapinstall', 'all')
- if signedBuild:
- sign(config, 'all')
- make_dist(config,tap=True)
-
- else:
- if 'TAP_PREBUILT' in config:
- print "Using prebuilt TAP driver"
- make_dist(config,tap=False)
-
-# if we are run directly, and not loaded as a module
-if __name__ == "__main__":
- from wb import config
- main(config)