]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Added openvpnserv.exe building to win/build.py
authorSamuli Seppänen <samuli@openvpn.net>
Fri, 11 Feb 2011 14:20:43 +0000 (16:20 +0200)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Sat, 26 Feb 2011 23:55:38 +0000 (00:55 +0100)
Made win/build.py call nmake in service-win32 directory to build openvpnserv.exe
after main build (openvpn.exe) has finished.

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
win/build.py

index 3a9fbc7cad540179ff1be3038a513e4ab684c396..fdec7cf3f8e9166a7dde89fc644e80ec78a6f614 100644 (file)
@@ -1,18 +1,25 @@
 import os, sys\r
-from wb import system, config, home_fn, cd_home\r
+from wb import system, config, home_fn, cd_home, cd_service_win32
 \r
 os.environ['PATH'] += ";%s\\VC" % (os.path.normpath(config['MSVC']),)\r
 \r
 def build_vc(cmd):\r
+    """Make sure environment variables are setup before build"""
     system('cmd /c "vcvarsall.bat x86 && %s"' % (cmd,))\r
 \r
 def main():\r
+    """Build openvpn.exe and openvpnserv.exe"""
     cd_home()\r
     build_vc("nmake /f %s" % (home_fn('msvc.mak'),))\r
+    cd_service_win32()
+    build_vc("nmake /f %s" % ('msvc.mak'))
 \r
 def clean():\r
+    """Clean up after openvpn.exe and openvpnserv.exe build"""
     cd_home()\r
     build_vc("nmake /f %s clean" % (home_fn('msvc.mak'),))\r
+    os.chdir("service-win32")
+    build_vc("nmake /f %s clean" % ('msvc.mak'))
 \r
 # if we are run directly, and not loaded as a module\r
 if __name__ == "__main__":\r