File tree 9 files changed +8
-38
lines changed
9 files changed +8
-38
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ jobs:
195
195
UNSTRIPPED_LIB_PATH="$CARGO_TARGET_DIR/${{ matrix.target }}/$BUILD_TYPE/libmullvad_jni.so"
196
196
STRIPPED_LIB_PATH="./android/app/build/extraJni/${{ matrix.abi }}/libmullvad_jni.so"
197
197
NDK_TOOLCHAIN_STRIP_TOOL="$NDK_TOOLCHAIN_DIR/llvm-strip"
198
- ./wireguard/build-wireguard-go.sh --android --no-docker
199
198
cargo build --target ${{ matrix.target }} --verbose --package mullvad-jni --features api-override
200
199
$NDK_TOOLCHAIN_STRIP_TOOL --strip-debug --strip-unneeded -o "$STRIPPED_LIB_PATH" "$UNSTRIPPED_LIB_PATH"
201
200
Original file line number Diff line number Diff line change 8
8
# -v $GRADLE_CACHE_VOLUME_NAME:/root/.gradle:Z \
9
9
# -v $ANDROID_CREDENTIALS_DIR:/build/android/credentials:Z \
10
10
# -v /path/to/repository_root:/build:Z \
11
- # mullvadvpn-app-build-android ./build-apk.sh --dev-build --no-docker
11
+ # mullvadvpn-app-build-android ./build-apk.sh --dev-build
12
12
#
13
13
# See the base image Dockerfile in the repository root (../../Dockerfile)
14
14
# for more information.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER="$NDK_TOOLCHAIN_DIR/x86_64-linux
65
65
Run the build script in the root of the project to assemble all the native libraries and the app:
66
66
67
67
``` bash
68
- ./build-apk.sh --dev-build --no-docker
68
+ ./build-apk.sh --dev-build
69
69
```
70
70
71
71
Once the build is complete you should receive a message looking similar to this:
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ GRADLE_BUILD_TYPE="release"
16
16
GRADLE_TASKS=(createOssProdReleaseDistApk createPlayProdReleaseDistApk)
17
17
BUNDLE_TASKS=(createPlayProdReleaseDistBundle)
18
18
CARGO_ARGS=( " --release" )
19
- EXTRA_WGGO_ARGS=" "
20
19
BUILD_BUNDLE=" no"
21
20
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:- " target" }
22
21
SKIP_STRIPPING=${SKIP_STRIPPING:- " no" }
@@ -32,11 +31,8 @@ while [ -n "${1:-""}" ]; do
32
31
GRADLE_BUILD_TYPE=" fdroid"
33
32
GRADLE_TASKS=(createOssProdFdroidDistApk)
34
33
BUNDLE_TASKS=(createOssProdFdroidDistBundle)
35
- EXTRA_WGGO_ARGS=" --no-docker"
36
34
elif [[ " ${1:- " " } " == " --app-bundle" ]]; then
37
35
BUILD_BUNDLE=" yes"
38
- elif [[ " ${1:- " " } " == " --no-docker" ]]; then
39
- EXTRA_WGGO_ARGS=" --no-docker"
40
36
elif [[ " ${1:- " " } " == " --skip-stripping" ]]; then
41
37
SKIP_STRIPPING=" yes"
42
38
fi
@@ -80,8 +76,6 @@ $GRADLE_CMD --console plain clean
80
76
mkdir -p " app/build/extraJni"
81
77
popd
82
78
83
- # ./wireguard/build-wireguard-go.sh --android $EXTRA_WGGO_ARGS
84
-
85
79
for ARCHITECTURE in ${ARCHITECTURES:- aarch64 armv7 x86_64 i686} ; do
86
80
case " $ARCHITECTURE " in
87
81
" x86_64" )
Original file line number Diff line number Diff line change @@ -218,11 +218,6 @@ function build {
218
218
# Compile and link all binaries.
219
219
# ###############################################################################
220
220
221
- if [[ " $( uname -s) " != " MINGW" * ]]; then
222
- log_header " Building wireguard-go$for_target_string "
223
- ./wireguard/build-wireguard-go.sh " $current_target "
224
- fi
225
-
226
221
log_header " Building Rust code in $RUST_BUILD_MODE mode using $RUSTC_VERSION$for_target_string "
227
222
228
223
local cargo_target_arg=()
@@ -317,6 +312,7 @@ for t in "${TARGETS[@]:-""}"; do
317
312
build " $t "
318
313
done
319
314
315
+
320
316
# ###############################################################################
321
317
# Package app.
322
318
# ###############################################################################
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ case $platform in
18
18
shift 1
19
19
;;
20
20
android)
21
- build_command=(" ./build-apk.sh" " --no-docker " )
21
+ build_command=(" ./build-apk.sh" )
22
22
shift 1
23
23
;;
24
24
* )
Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ set -eux
4
4
5
5
export RUSTFLAGS=" --deny warnings"
6
6
7
- # Build WireGuard Go
8
- if [[ " $( uname -s) " != " MINGW" * ]]; then
9
- ./wireguard/build-wireguard-go.sh
10
- fi
11
-
12
7
# Build Rust crates
13
8
source env.sh
14
9
time cargo build --locked --verbose
Original file line number Diff line number Diff line change @@ -15,17 +15,6 @@ function is_android_build {
15
15
return 1
16
16
}
17
17
18
- function is_docker_build {
19
- for arg in " $@ "
20
- do
21
- case " $arg " in
22
- " --no-docker" )
23
- return 1
24
- esac
25
- done
26
- return 0
27
- }
28
-
29
18
function unix_target_triple {
30
19
local platform
31
20
platform=" $( uname -s) "
@@ -48,6 +37,7 @@ function unix_target_triple {
48
37
49
38
50
39
function build_unix {
40
+ # TODO: consider using `log_header` here
51
41
echo " Building wireguard-go for $1 "
52
42
53
43
# Flags for cross compiling
@@ -88,13 +78,9 @@ function build_unix {
88
78
}
89
79
90
80
function build_android {
91
- echo " Building for android"
81
+ echo " Building wireguard-go for android"
92
82
93
- if is_docker_build " $@ " ; then
94
- ../building/container-run.sh android wireguard-go-rs/libwg/build-android.sh
95
- else
96
- ./libwg/build-android.sh
97
- fi
83
+ ./libwg/build-android.sh
98
84
}
99
85
100
86
function build_wireguard_go {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn main() {
13
13
match target_os. as_str ( ) {
14
14
"linux" => { }
15
15
"android" => {
16
- cmd. arg ( "--android" ) . arg ( "--no-docker" ) ;
16
+ cmd. arg ( "--android" ) ;
17
17
}
18
18
_ => unimplemented ! ( "building wireguard-go-rs for {target_os} is not implemented." ) ,
19
19
}
You can’t perform that action at this time.
0 commit comments