0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
Commit Graph

20 Commits

Author SHA1 Message Date
David Sommerseth
75dbcdfa93
Merge OpenVPN 3 Core v3.8.2 into master
Signed-off-by: David Sommerseth <davids@openvpn.net>
2023-09-13 16:46:05 +02:00
Frank Lichtenheld
df5f6d5810
mingw/build: Fix xxHash build
Adapt to vcpkg changes.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-08-02 17:33:37 +02:00
Frank Lichtenheld
e9e49239ce mingw: disable VCPKG_APPLOCAL_DEPS in build-vcpkg
We do not want to force a dependency on powershell.
Copying the right dlls is rather trivial.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-02-28 13:45:16 +01:00
Frank Lichtenheld
866e0c9596 mingw: add new script build-vcpkg
This avoids all the manual deps building and instead
uses vcpkg directly.

Note: need to remove gtest from VCPKG manifest for now:
- it only builds with -posix variant of mingw compiler
- vcpkg uses the non-posix variant and can't be trivially
  reconfigured
- we build gtest from unittests anyway and that one uses
  the compiler we specify

Using the posix variant of mingw compiler will require
setting up a custom triplet and toolchain. That will be
done in a later commit.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-02-28 13:45:16 +01:00
Frank Lichtenheld
fb9bee5ad6 vcpkg.json: Allow to use on Linux
- Fix PATCHES to work on Linux
- While here, fix version number

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-02-28 12:30:30 +01:00
Lev Stipakov
a12737b5cc mingw: adapt to vcpkg openssl portfile change
vcpkg has removed OPENSSL_VERSION from portfile.cmake
in favor of VERSION variable which is set based on port version
(https://github.com/microsoft/vcpkg/pull/27178/files).

Parse port manifest to get OpenSSL version.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2022-11-03 11:30:23 +02:00
Lev Stipakov
e01375daa0
vcpkg-ports: remove ovpn-dco-win port
The UAPI header (ovpn-dco.h) is now part of openvpn3 core
repo, so no need in separate vcpkg port.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2022-10-13 15:16:21 +02:00
Frank Lichtenheld
c618e4a667 mingw: add xxHash dependency
Required by some of the unittests.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2022-07-06 11:21:28 +02:00
Lev Stipakov
b7c6e2d5af dco-win: remove ovpn-dco-win vcpkg dependency
uapi header has been added to the source code, so
we don't need that dependency anymore.

Fix MinGW script accordingly.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2022-05-02 15:22:49 +03:00
Frank Lichtenheld
f27157e28b mingw: fix OpenSSL on x86_64
Hardcode libdir to lib, because openssl3 chooses
lib64 otherwise.

While here, some small changes:
- remove dangerous "|| true" after openssl make
- remove "-j1" for openssl "make install". Speeds
  up the documentation generation.
- use set -x

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2022-04-07 18:19:46 +02:00
Lev Stipakov
296abfca32 mingw: fix broken OpenSSL checkout
OpenSSL has changed tags naming to
something like openssl-3.0.2, so adapt
our script accordingly.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2022-04-07 13:11:37 +02:00
Heiko Hund
b3e47fbdb8 sync dependency versions used by MSVC and MinGW
Add some logic to the script which builds the binaries using mingw. Git
revisions and patch information are extracted from the vcpkg portfiles
used for the MSVC build. This way the builds should be more alike.

Signed-off-by: Heiko Hund <heiko@openvpn.net>
2021-04-28 16:56:55 +02:00
Heiko Hund
2170f5a2aa
support ovpn-dco-win builds with mingw
Signed-off-by: Heiko Hund <heiko@openvpn.net>
2021-04-14 22:44:52 +02:00
Heiko Hund
9b03cddea9
add support for ovpn-dco-win TAP driver
Signed-off-by: Heiko Hund <heiko@openvpn.net>
2021-04-14 22:44:49 +02:00
Lev Stipakov
bca2a06c29 mingw: use asio 1.16
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2020-08-26 10:53:27 +00:00
Lev Stipakov
2ce3635b9c
mingw: fix lz4 build
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2020-08-26 13:51:41 +03:00
Lev Stipakov
7cf2e210d1
mingw: fix various warnings
- remove unused variable
 - replace deprecated JsonReader with CharReader
 - fix initialization order
 - fix signed-unsigned comparison
 - fix string constant to char* conversion
 - fix unknown (to mingw) format character
 - fix passing NULL to non-pointer agrument
 - remove unneeded #pragma once

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2020-03-11 19:44:40 +01:00
Lev Stipakov
2fbea7bebe
mingw/build: add build options
ARCH enables to build certain architecture only.

NO_DEPS disables downloading and building dependencies.

NO_OPENSSL disables downloading and building OpenSSL.

OPENSSL_ROOT_DIR allows to specify location for OpenSSL root

Example:

    ARCH=x86_64 NO_OPENSSL=1 ./build

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2020-02-19 17:57:42 +01:00
Lev Stipakov
4a7294bd31
mingw: add .gitignore
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2020-02-12 21:48:45 +02:00
Lev Stipakov
31fe32c925
mingw: add build script
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2020-02-12 21:48:45 +02:00