diff --git a/Cargo.toml b/Cargo.toml index 235f3777..5e450271 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,3 +13,27 @@ opt-level = 2 [profile.dev.package.libsamplerate] opt-level = 2 + +[workspace.metadata.cross.target.x86_64-unknown-linux-gnu] +image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:edge" +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + """ + apt-get update && apt-get --assume-yes install \ + libgtk-3-dev:$CROSS_DEB_ARCH \ + libssl-dev:$CROSS_DEB_ARCH \ + libasound2-dev:$CROSS_DEB_ARCH + """ +] + +[workspace.metadata.cross.target.aarch64-unknown-linux-gnu] +image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge" +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + """ + apt-get update && apt-get --assume-yes install \ + libgtk-3-dev:$CROSS_DEB_ARCH \ + libssl-dev:$CROSS_DEB_ARCH \ + libasound2-dev:$CROSS_DEB_ARCH + """ +] \ No newline at end of file