Skip to contentSkip to conversation

Visual Studio: make it easier to build with VS

PATCH In review Lev Stipakov 3 participants 3 messages Oct 11, 2019 – Oct 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Visual Studio: make it easier to build with VS

This changes default path to openvpn dependencies, so that openvpn-build and openvpn projects can be cloned from the same folder:

c:\Users\Administrator\Projects>git clone [email protected]...:OpenVPN/openvpn-build.git c:\Users\Administrator\Projects>git clone [email protected]...:OpenVPN/openvpn.git

This also removes the necessity of copying openvpn-build\msvc\image to %USERPROFILE%.

To use Visual Studio, clone both projects, install dependencies (VS2017 Community with SDK 10.0.17143, Strawberry Perl) and run:

c:\Users\Administrator\Projects\openvpn-build\msvc\build.bat

Then just open solution file:

c:\Users\Administrator\Projects\openvpn\openvpn.sln

---
 src/compat/PropertySheet.props | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/compat/PropertySheet.props +1 -1
index 4cad994..fdded31 100644
@@ -3,7 +3,7 @@
   <ImportGroup Label="PropertySheets" />
   <PropertyGroup Label="UserMacros">
     <SOURCEBASE>$(SolutionDir)</SOURCEBASE>
-    <OPENVPN_DEPROOT>$(SOURCEBASE)\..\..\image</OPENVPN_DEPROOT>
+    <OPENVPN_DEPROOT>$(SOURCEBASE)\..\openvpn-build\msvc\image</OPENVPN_DEPROOT>
     <OPENSSL_HOME>$(OPENVPN_DEPROOT)</OPENSSL_HOME>
     <TAP_WINDOWS_HOME>$(OPENVPN_DEPROOT)</TAP_WINDOWS_HOME>
     <LZO_HOME>$(OPENVPN_DEPROOT)</LZO_HOME>
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw

Hi,

Quoted 53 lines

-----Original Message-----
From: Lev Stipakov <[email protected]...>
Sent: Friday, October 11, 2019 11:04 AM
To: [email protected]
Subject: [Openvpn-devel] [PATCH] Visual Studio: make it easier to build with VS

This changes default path to openvpn dependencies, so that openvpn-build and openvpn projects can be cloned from the same
folder:

c:\Users\Administrator\Projects>git clone
[email protected]...:OpenVPN/openvpn-build.git
c:\Users\Administrator\Projects>git clone
[email protected]...:OpenVPN/openvpn.git

This also removes the necessity of copying openvpn-build\msvc\image to %USERPROFILE%.

To use Visual Studio, clone both projects, install dependencies (VS2017 Community with SDK 10.0.17143, Strawberry Perl) and run:

c:\Users\Administrator\Projects\openvpn-build\msvc\build.bat

Then just open solution file:

c:\Users\Administrator\Projects\openvpn\openvpn.sln

---
 src/compat/PropertySheet.props | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/src/compat/PropertySheet.props index 4cad994..fdded31 100644

src/compat/PropertySheet.props +3 -2
@@ -3,7 +3,7 @@
   <ImportGroup Label="PropertySheets" />
   <PropertyGroup Label="UserMacros">
     <SOURCEBASE>$(SolutionDir)</SOURCEBASE>
-    <OPENVPN_DEPROOT>$(SOURCEBASE)\..\..\image</OPENVPN_DEPROOT>
+
+ <OPENVPN_DEPROOT>$(SOURCEBASE)\..\openvpn-build\msvc\image</OPENVPN_DE
+ PROOT>
     <OPENSSL_HOME>$(OPENVPN_DEPROOT)</OPENSSL_HOME>
     <TAP_WINDOWS_HOME>$(OPENVPN_DEPROOT)</TAP_WINDOWS_HOME>
     <LZO_HOME>$(OPENVPN_DEPROOT)</LZO_HOME>
--

2.7.4

Quoted 4 lines

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Best regards
Simon

#2 lore raw
In reply to Lev Stipakov

Your patch has been applied to the master branch.

(I have not tested it and not stared very much at it, except for "it does not touch source code")

commit d77611c48c3ec0903f115b87f41d6aa55dbd3c16

Author: Lev Stipakov
Date:   Fri Oct 11 12:03:45 2019 +0300
     Visual Studio: make it easier to build with VS

     Signed-off-by: Lev Stipakov <[email protected]...>
     Acked-by: Simon Rozman <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg18930.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering