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

169 Commits

Author SHA1 Message Date
Lev Stipakov
d31620d0c6
agent mac: move from common
Windows agent has been moved from common to core,
so for consistency move mac agent too.

Since agent and agent-enabled client depend on jsoncpp,
also move jsoncpp build scripts.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2021-06-10 23:06:24 +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
Arne Schwabe
d62bcb3283 Remove cityhash from buildall and add xxHash to mac buildall
Signed-off-by: Arne Schwabe <arne@openvpn.net>
2021-01-20 18:25:44 +01:00
Arne Schwabe
af43bf0145
Add script for building xxHash
The code that requires xxHash requires a fairly new xxHash version, so
add a local copy of 0.8.0 to build with this header only library.

Signed-off-by: Arne Schwabe <arne@openvpn.net>
2021-01-20 17:02:30 +01:00
James Yonan
64d6934f8f scripts/build: rename xxHash dependency directory to use the same capitalization syntax as the github name
Signed-off-by: James Yonan <james@openvpn.net>
2021-01-11 11:40:25 -07:00
James Yonan
21b1c6b2fb Replaced CityHash with XXHash
Still to do -- update CMake files

Signed-off-by: James Yonan <james@openvpn.net>
2020-12-09 07:51:10 -07:00
James Yonan
0657de823e build script: XXHASH=1 -- build with XXHash hash library
Signed-off-by: James Yonan <james@openvpn.net>
2020-10-15 22:47:24 -06: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
James Yonan
1324bad624
build script: allow main .cpp file to be missing when EXTRA_CPP is defined
Signed-off-by: James Yonan <james@openvpn.net>
2020-08-19 18:53:08 +02:00
Arne Schwabe
e6d544b8a5 Add support building deps with clang/libc++
Signed-off-by: Arne Schwabe <arne@openvpn.net>
2020-04-29 11:55:38 +02:00
James Yonan
6688f2d372
scripts/build: added PCRE=1 to build with PCRE (Perl-compatible regular expressions) library
Signed-off-by: James Yonan <james@openvpn.net>
2020-03-25 18:49:10 +01:00
David Sommerseth
3fbe0a2701
Update copyrights
Signed-off-by: David Sommerseth <davids@openvpn.net>
2020-03-18 19:37:32 +01: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
David Sommerseth
d0ab53a5d5
Merge changes applied to coming Core release 2019-12-10 15:20:49 +01:00
Arne Schwabe
6892471802 Build fat libraries for OpenSSL on ios 2019-12-04 19:00:25 +01:00
James Yonan
a0d05ee96c
unittests: updated googletest lib dir in build script
Signed-off-by: James Yonan <james@openvpn.net>
2019-11-27 18:55:07 +01:00
Arne Schwabe
8cc348228c Update OpenSSL to 1.1.1d and fix mac build script
Remove universal libraries and 32 bit support.
Allow user to enable/disable SSL libraries with OSSL=1 MTLS=0
2019-11-27 13:54:57 +01:00
Arne Schwabe
717109f1f4 Build cityhash on OS X and Windows to run pg related unit test
Also increase minimum OS version to 10.12 since the 10.8 target defaults
to libstdc++, which is not available on modern macOS versions

Signed-off-by: Arne Schwabe <arne@openvpn.net>
2019-11-07 09:58:54 +01:00
James Yonan
fa38064403 build script: added a new PROF type "auto" that tries to automatically determine the local platform
Signed-off-by: James Yonan <james@openvpn.net>
2019-09-25 19:51:27 +02:00
Arne Schwabe
438a0ef287 Remove outdated and unused android build files 2019-08-30 00:06:50 +02:00
James Yonan
5befbd430f build: added CAP=1 -- build with libcap
libcap linkage is needed for use of the Linux capabilities API.

Signed-off-by: James Yonan <james@openvpn.net>
2019-07-17 10:53:46 -06:00
James Yonan
1c7bac90d9 build script: when building with DEBUG=1 on Linux, use -ggdb instead of -g
Signed-off-by: James Yonan <james@openvpn.net>
2019-07-17 10:53:46 -06:00
James Yonan
310766b270 build: added MTLS_DIST setting
MTLS_DIST=path -- use user-specified mbedTLS distribution

Signed-off-by: James Yonan <james@openvpn.net>
2019-07-17 10:53:46 -06:00
James Yonan
58a7866b45
build script: added OPENSSL_DIST parameter to specify a custom OpenSSL build
Signed-off-by: James Yonan <james@openvpn.net>
2019-05-22 17:57:42 +02:00
Arne Schwabe
452a353b2d Fix lzo build script to use it as dependency for the unit tests
Signed-off-by: Arne Schwabe <arne@openvpn.net>
2019-04-15 17:23:37 +02:00
James Yonan
aebea64562 build script: minor changes to Cityhash inclusion
Don't include -I and -L compiler options for Cityhash pointing
to $DEP_DIR, unless the directories exist.

Signed-off-by: James Yonan <james@openvpn.net>
2018-12-12 23:26:12 -07:00
David Sommerseth
f241c4c5fa
scripts: Add tool to update copyright years
This is ported from the OpenVPN 2 project.  Since I wrote that script,
the relicensing from GPLv2 to AGPLv3 is fine.

Signed-off-by: David Sommerseth <davids@openvpn.net>
2018-11-07 17:56:16 +01:00
Arne Schwabe
b107fd9946 Remove unsupported platforms from Android build
The newest Google Android NDK removes support for Android API 14 and 15
(Android 4.0) along with non v7a 32bit Android ABI. The new lowest
API is 16. OpenVPN Connect is already using minAPI=16 so this does
not have an effect on the main user of these build scripts.
2018-11-07 17:23:02 +01:00
Arne Schwabe
6a200f72e1 Ensure all Android components are always installed
Ensure that even if the Android SDK is already unpacked we install
and update all packages required. Otherwise if the sdk is we only
updated the available packages list and did not update the packages
themselves.
2018-11-07 17:23:02 +01:00
James Yonan
8f20f76936 build: use LZ4_SYS=1 default when target is Linux
Signed-off-by: James Yonan <james@openvpn.net>
2018-08-30 13:00:27 +03:00
Antonio Quartulli
115fab562d
scripts: generate version automatically from git branch/commit
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2018-06-25 16:37:50 +08:00
Arne Schwabe
dd47138adf Add script for building cityhash 2018-04-25 18:25:28 +02:00
Antonio Quartulli
e143bc0a7e [OVPN3-129] android: improve build system in order to perform full build
the scripts/android/build-all script is now in charge of
performing all the steps required to build a full android core.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2017-12-22 17:59:39 +08:00
Antonio Quartulli
7299fefa77 [OC-42] Android: specify API level on command line
since the introduction of the unified headers, the API level
has to be specified on the command line, otherwise a development
API level (1000) will be used and will mess up older Android
releases.

On top of that, circumvent a bug in pthread.h by defining __LP32__.

This problem was causing crashes on Android 5 as it wasn't able to
provide libc functions expected by the precompiled ovpn3-core.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2017-12-22 17:59:38 +08:00
Antonio Quartulli
d3da3dfeb0 android: build client lib for x86 (for emulator)
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2017-12-22 17:59:38 +08:00
James Yonan
2b4c85091d Debugging: added header and build flag for valgrind run-time
extensions.

Signed-off-by: James Yonan <james@openvpn.net>
2017-12-22 17:59:38 +08:00
Antonio Quartulli
4926011513 Android: adapt toolchain scripts to new SDK and move to API 26
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2017-12-22 17:59:38 +08:00
David Nimon
4302651dd8 changes to support android building 2017-12-22 17:59:38 +08:00
Antonio Quartulli
7cbf539222 [OVPN3-5] build script: allow user to specify its own mbedTLS folder and LDFLAGS
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2017-09-27 16:16:18 +08:00
Lev Stipakov
8ae2a3f7cf Integrate Google Test framework
Implemented sample test for LogInfo class.

OVPN3-27
2017-09-27 16:16:18 +08:00
Lev Stipakov
7db95ccde6 Make build fail on compilation errors
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2017-09-27 16:16:18 +08:00
James Yonan
81cb887f67 build script: added DPROF=1 flag
When DPROF=1 and PROF is specified, build with
the debugging variant of the vars file.

Signed-off-by: James Yonan <james@openvpn.net>
2017-09-27 16:16:18 +08:00
James Yonan
ce0977b2ea Support Cityhash.
When running build script, add CITY=1 to build with Cityhash library.

Signed-off-by: James Yonan <james@openvpn.net>
2017-09-27 16:16:17 +08:00
James Yonan
916856d9b7 build script: updated Objective-C support when OBJC=1.
Signed-off-by: James Yonan <james@openvpn.net>
2017-04-12 11:42:41 -06:00