mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-17 22:24:21 +01:00
35 lines
958 B
TOML
35 lines
958 B
TOML
# Configuration for cross-compiling using cross
|
|
[target.aarch64-unknown-linux-gnu]
|
|
xargo = false
|
|
pre-build = [
|
|
# Add the ARM64 architecture and install necessary dependencies
|
|
"dpkg --add-architecture arm64",
|
|
"""\
|
|
apt-get update --fix-missing && apt-get install -y \
|
|
pkg-config \
|
|
libssl-dev:arm64 \
|
|
libdbus-1-dev:arm64 \
|
|
libxcb1-dev:arm64
|
|
"""
|
|
]
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
xargo = false
|
|
pre-build = [
|
|
# Install necessary dependencies for x86_64
|
|
# We don't need architecture-specific flags because x86_64 dependencies are installable on Ubuntu system
|
|
"""\
|
|
apt-get update && apt-get install -y \
|
|
pkg-config \
|
|
libssl-dev \
|
|
libdbus-1-dev \
|
|
libxcb1-dev \
|
|
"""
|
|
]
|
|
|
|
[target.x86_64-pc-windows-gnu]
|
|
image = "dockcross/windows-static-x64:latest"
|
|
# Enable verbose output for Windows builds
|
|
build-std = true
|
|
env = { "RUST_LOG" = "debug", "RUST_BACKTRACE" = "1", "CROSS_VERBOSE" = "1" }
|