-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCross.toml
More file actions
25 lines (20 loc) · 966 Bytes
/
Cross.toml
File metadata and controls
25 lines (20 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[build]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH libdbus-1-dev:$CROSS_DEB_ARCH pkg-config unzip curl",
"ARCH=$(case $CROSS_DEB_ARCH in aarch64-linux-gnu) echo linux-aarch_64 ;; x86_64-linux-gnu) echo linux-x86_64 ;; *) echo linux-x86_64 ;; esac)",
"PB_REL=\"https://github.com/protocolbuffers/protobuf/releases\"",
"curl -LO $PB_REL/download/v29.3/protoc-29.3-${ARCH}.zip",
"unzip protoc-29.3-${ARCH}.zip -d /usr",
"chmod 755 /usr/bin/protoc",
"export PROTOC=/usr/bin/protoc",
"protoc --version"
]
[target.aarch64-linux-android]
image = "ghcr.io/cross-rs/aarch64-linux-android:main"
[target.armv7-linux-androideabi]
image = "ghcr.io/cross-rs/armv7-linux-androideabi:main"
[target.i686-linux-android]
image = "ghcr.io/cross-rs/i686-linux-android:main"
[target.x86_64-linux-android]
image = "ghcr.io/cross-rs/x86_64-linux-android:main"