2024-02-21 09:27:40 +00:00
|
|
|
{{#nativeDeps}}
|
2023-09-28 10:03:46 +00:00
|
|
|
[env]
|
2023-10-20 08:22:36 +00:00
|
|
|
PROTOC = { force = true, value = "{{{protoc}}}" }
|
|
|
|
FFMPEG_DIR = { force = true, value = "{{{nativeDeps}}}" }
|
2024-02-12 17:45:17 +00:00
|
|
|
{{#isLinux}}
|
|
|
|
ORT_LIB_LOCATION = { force = true, value = "{{{nativeDeps}}}/lib" }
|
|
|
|
{{/isLinux}}
|
2023-10-20 08:22:36 +00:00
|
|
|
OPENSSL_STATIC = { force = true, value = "1" }
|
|
|
|
OPENSSL_NO_VENDOR = { force = true, value = "0" }
|
|
|
|
OPENSSL_RUST_USE_NASM = { force = true, value = "1" }
|
2024-02-21 09:27:40 +00:00
|
|
|
{{/nativeDeps}}
|
2023-09-28 10:03:46 +00:00
|
|
|
|
|
|
|
{{#isMacOS}}
|
|
|
|
[target.x86_64-apple-darwin]
|
2024-02-21 09:27:40 +00:00
|
|
|
rustflags = ["-L", "{{{nativeDeps}}}/lib", "-Csplit-debuginfo=unpacked"]
|
2023-09-28 10:03:46 +00:00
|
|
|
|
2023-10-03 17:31:33 +00:00
|
|
|
[target.x86_64-apple-darwin.heif]
|
2023-10-10 07:30:56 +00:00
|
|
|
rustc-link-search = ["{{{nativeDeps}}}/lib"]
|
2023-10-03 17:31:33 +00:00
|
|
|
rustc-link-lib = ["heif"]
|
|
|
|
|
2023-09-28 10:03:46 +00:00
|
|
|
[target.aarch64-apple-darwin]
|
2024-02-21 09:27:40 +00:00
|
|
|
rustflags = ["-L", "{{{nativeDeps}}}/lib", "-Csplit-debuginfo=unpacked"]
|
2023-10-03 17:31:33 +00:00
|
|
|
|
|
|
|
[target.aarch64-apple-darwin.heif]
|
2023-10-10 07:30:56 +00:00
|
|
|
rustc-link-search = ["{{{nativeDeps}}}/lib"]
|
2023-10-03 17:31:33 +00:00
|
|
|
rustc-link-lib = ["heif"]
|
2023-09-28 10:03:46 +00:00
|
|
|
{{/isMacOS}}
|
|
|
|
|
|
|
|
{{#isWin}}
|
|
|
|
[target.x86_64-pc-windows-msvc]
|
2024-02-21 09:27:40 +00:00
|
|
|
{{#hasLLD}}
|
|
|
|
linker = "lld-link.exe"
|
|
|
|
{{/hasLLD}}
|
2023-10-10 07:30:56 +00:00
|
|
|
rustflags = ["-L", "{{{nativeDeps}}}\\lib"]
|
2023-10-03 17:31:33 +00:00
|
|
|
|
|
|
|
[target.x86_64-pc-windows-msvc.heif]
|
2023-10-10 07:30:56 +00:00
|
|
|
rustc-link-search = ["{{{nativeDeps}}}\\lib"]
|
2023-10-03 17:31:33 +00:00
|
|
|
rustc-link-lib = ["heif"]
|
2023-09-28 10:03:46 +00:00
|
|
|
{{/isWin}}
|
|
|
|
|
|
|
|
{{#isLinux}}
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
2024-02-21 09:27:40 +00:00
|
|
|
{{#hasLLD}}
|
|
|
|
linker = "clang"
|
|
|
|
{{/hasLLD}}
|
|
|
|
rustflags = [
|
|
|
|
"-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/spacedrive",
|
|
|
|
{{#hasLLD}}
|
|
|
|
"-C", "link-arg=-fuse-ld={{{linker}}}",
|
|
|
|
{{/hasLLD}}
|
|
|
|
]
|
2023-10-03 17:31:33 +00:00
|
|
|
|
|
|
|
[target.x86_64-unknown-linux-gnu.heif]
|
2023-10-10 07:30:56 +00:00
|
|
|
rustc-link-search = ["{{{nativeDeps}}}/lib"]
|
2023-10-03 17:31:33 +00:00
|
|
|
rustc-link-lib = ["heif"]
|
2023-09-28 10:03:46 +00:00
|
|
|
|
|
|
|
[target.aarch64-unknown-linux-gnu]
|
2024-02-21 09:27:40 +00:00
|
|
|
{{#hasLLD}}
|
|
|
|
linker = "clang"
|
|
|
|
{{/hasLLD}}
|
|
|
|
rustflags = [
|
|
|
|
"-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/spacedrive",
|
|
|
|
{{#hasLLD}}
|
|
|
|
"-C", "link-arg=-fuse-ld={{{linker}}}",
|
|
|
|
{{/hasLLD}}
|
|
|
|
]
|
2023-10-03 17:31:33 +00:00
|
|
|
|
|
|
|
[target.aarch64-unknown-linux-gnu.heif]
|
2023-10-10 07:30:56 +00:00
|
|
|
rustc-link-search = ["{{{nativeDeps}}}/lib"]
|
2023-10-03 17:31:33 +00:00
|
|
|
rustc-link-lib = ["heif"]
|
2023-09-28 10:03:46 +00:00
|
|
|
{{/isLinux}}
|
|
|
|
|
|
|
|
[alias]
|
|
|
|
prisma = "run -p prisma-cli --bin prisma --"
|
|
|
|
prisma-sync = "run -p prisma-cli --bin sync --"
|