Skip to content

Commit fdff637

Browse files
committed
Add aarch64 windows target
1 parent ca6fa16 commit fdff637

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

common/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,20 @@ tasks.register('compileRustWindows', Exec) {
8989
dependsOn createContainersDirectory
9090
}
9191

92+
93+
tasks.register('compileRustWindowsAArch64', Exec) {
94+
group = 'rust'
95+
workingDir rustProjectDir
96+
commandLine dockerCommand
97+
args 'cargo', 'zigbuild', '--release', '--target', 'aarch64-pc-windows-gnu'
98+
dependsOn createContainersDirectory
99+
}
100+
92101
tasks.register('buildRustNatives') {
93102
group = 'build'
94103
description = 'Compiles all Rust natives and moves them to resources.'
95104

96-
dependsOn compileRustMac, compileRustLinux, compileRustLinuxAArch64, compileRustWindows
105+
dependsOn compileRustMac, compileRustLinux, compileRustLinuxAArch64, compileRustWindows, compileRustWindowsAArch64
97106
finalizedBy copyRustNatives
98107
}
99108

@@ -108,6 +117,7 @@ tasks.register('copyRustNatives', Copy) {
108117
[src: "target/x86_64-unknown-linux-gnu/release/libsable_rapier.so", dest: "sable_rapier_x86_64_linux.so"],
109118
[src: "target/aarch64-unknown-linux-gnu/release/libsable_rapier.so", dest: "sable_rapier_aarch64_linux.so"],
110119
[src: "target/x86_64-pc-windows-gnu/release/sable_rapier.dll", dest: "sable_rapier_x86_64_windows.dll"]
120+
[src: "target/aarch64-pc-windows-gnu/release/sable_rapier.dll", dest: "sable_rapier_aarch64_windows.dll"]
111121
]
112122

113123
moves.forEach { map ->

0 commit comments

Comments
 (0)