diff options
author | James Yonan <james@openvpn.net> | 2010-04-22 12:53:31 +0000 |
---|---|---|
committer | James Yonan <james@openvpn.net> | 2010-04-22 12:53:31 +0000 |
commit | 059739e9341781d9019e07fc5119367c1630b012 (patch) | |
tree | 6839d8071558539505991895ef377baee58e960f /win/build.py | |
parent | Minor change to doclean script: (diff) | |
download | openvpn-059739e9341781d9019e07fc5119367c1630b012.tar.xz |
Added Python-based build system for Windows in
win directory.
Fixed minor issue in TAP driver DEBUG builds where
non-null-terminated unicode strings were being
printed incorrectly.
Version 2.1.1g
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5577 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'win/build.py')
-rw-r--r-- | win/build.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/win/build.py b/win/build.py new file mode 100644 index 0000000..f42715b --- /dev/null +++ b/win/build.py @@ -0,0 +1,15 @@ +import os
+from wb import system, config, home_fn, cd_home
+
+os.environ['PATH'] += ";%s\\VC" % (os.path.normpath(config['MSVC']),)
+
+def build_vc(cmd):
+ system('cmd /c "vcvarsall.bat x86 && %s"' % (cmd,))
+
+def main():
+ cd_home()
+ build_vc("nmake /f %s" % (home_fn('msvc.mak'),))
+
+# if we are run directly, and not loaded as a module
+if __name__ == "__main__":
+ main()
|