72 | | After you have the dependencies of Complete Batch or your own. Create msvc-env-local.bat with OPENVPN_DEPROOT pointing to the location of the dependencies. |
| 73 | '''NOTE:''' These instructions are still incomplete. |
| 74 | |
| 75 | [http://en.wikipedia.org/wiki/MSBuild MSBuild] is a Windows command-line tool that allows building Visual Studio projects from the command-line. For a description of the various files it uses look [http://msdn.microsoft.com/en-us/library/hx0cxhaw%28v=vs.80%29.aspx here]. |
| 76 | |
| 77 | To build using MSBuild first fetch and unpack a version of OpenVPN sources that has the MSBuild environment included. You can use [https://github.com/downloads/alonbl/openvpn/openvpn-2.3-alpha1.tar.gz this tarball] for now. |
| 78 | |
| 79 | Next create a ''msvc-env-local.bat'' file with content similar to this: |
| 80 | |
| 81 | {{{ |
| 82 | set OPENVPN_DEPROOT=C:\Users\JohnDoe\openvpn-build |
| 83 | set OPENSSL_HOME=%OPENVPN_DEPROOT%\openssl |
| 84 | set LZO_HOME=%OPENVPN_DEPROOT%\lzo |
| 85 | set PKCS11H_HOME=%OPENVPN_DEPROOT%\pkcs11-helper |
| 86 | }}} |
| 87 | |
| 88 | This file is loaded by ''msvc-env.bat''. The above layout assumes your dependencies are set up [wiki:BuildingOnWindows#Settingupdependencies as described here] - follow the Python-based buildsystem instructions. |
| 89 | |
| 90 | Next, launch a Visual Studio command prompt and go to the OpenVPN source directory. Then you can initiate the build: |