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>
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>
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>
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>
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>
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>