-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathconfig.toml.mustache
More file actions
118 lines (99 loc) · 3.63 KB
/
Copy pathconfig.toml.mustache
File metadata and controls
118 lines (99 loc) · 3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{{#nativeDeps}}
[env]
PROTOC = { force = true, value = "{{{protoc}}}" }
FFMPEG_DIR = { force = true, value = "{{{nativeDeps}}}" }
CPATH = { force = true, value = "{{{nativeDeps}}}/include" }
{{#bindgenExtraClangArgs}}
BINDGEN_EXTRA_CLANG_ARGS = { force = true, value = "{{{bindgenExtraClangArgs}}}" }
{{/bindgenExtraClangArgs}}
{{#libclangPath}}
LIBCLANG_PATH = { force = true, value = "{{{libclangPath}}}" }
{{/libclangPath}}
{{#isLinux}}
ORT_LIB_LOCATION = { force = true, value = "{{{nativeDeps}}}/lib" }
{{/isLinux}}
OPENSSL_STATIC = { force = true, value = "1" }
OPENSSL_NO_VENDOR = { force = true, value = "0" }
OPENSSL_RUST_USE_NASM = { force = true, value = "1" }
{{/nativeDeps}}
{{#isMacOS}}
[target.x86_64-apple-darwin]
rustflags = ["-L", "{{{nativeDeps}}}/lib", "-Csplit-debuginfo=unpacked"]
[target.x86_64-apple-darwin.heif]
rustc-link-search = ["{{{nativeDeps}}}/lib"]
rustc-link-lib = ["heif"]
[target.aarch64-apple-darwin]
rustflags = ["-L", "{{{nativeDeps}}}/lib", "-Csplit-debuginfo=unpacked"]
[target.aarch64-apple-darwin.heif]
rustc-link-search = ["{{{nativeDeps}}}/lib"]
rustc-link-lib = ["heif"]
{{#hasiOS}}
[target.aarch64-apple-ios]
rustflags = ["-L", "{{{mobileNativeDeps}}}/aarch64-apple-ios/lib", "-Csplit-debuginfo=unpacked"]
[target.aarch64-apple-ios.heif]
rustc-link-search = ["{{{mobileNativeDeps}}}/aarch64-apple-ios/lib"]
rustc-link-lib = ["static:+bundle=heif"]
[target.aarch64-apple-ios-sim]
rustflags = ["-L", "{{{mobileNativeDeps}}}/aarch64-apple-ios-sim/lib", "-Csplit-debuginfo=unpacked"]
[target.aarch64-apple-ios-sim.heif]
rustc-link-search = ["{{{mobileNativeDeps}}}/aarch64-apple-ios-sim/lib"]
rustc-link-lib = ["static:+bundle=heif"]
[target.x86_64-apple-ios]
rustflags = ["-L", "{{{mobileNativeDeps}}}/x86_64-apple-ios/lib", "-Csplit-debuginfo=unpacked"]
[target.x86_64-apple-ios.heif]
rustc-link-search = ["{{{mobileNativeDeps}}}/x86_64-apple-ios/lib"]
rustc-link-lib = ["static:+bundle=heif"]
{{/hasiOS}}
{{/isMacOS}}
{{#isWin}}
[target.x86_64-pc-windows-msvc]
{{#hasLLD}}
linker = "lld-link.exe"
{{/hasLLD}}
rustflags = ["-L", "{{{nativeDeps}}}\\lib"]
[target.x86_64-pc-windows-msvc.heif]
rustc-link-search = ["{{{nativeDeps}}}\\lib"]
rustc-link-lib = ["heif"]
{{/isWin}}
{{#isLinux}}
[target.x86_64-unknown-linux-gnu]
{{#hasLLD}}
linker = "clang"
{{/hasLLD}}
rustflags = [
"-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/spacedrive",
{{#hasLLD}}
"-C", "link-arg=-fuse-ld={{{linker}}}",
{{/hasLLD}}
]
[target.x86_64-unknown-linux-gnu.heif]
rustc-link-search = ["{{{nativeDeps}}}/lib"]
rustc-link-lib = ["heif"]
[target.aarch64-unknown-linux-gnu]
{{#hasLLD}}
linker = "clang"
{{/hasLLD}}
rustflags = [
"-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/spacedrive",
{{#hasLLD}}
"-C", "link-arg=-fuse-ld={{{linker}}}",
{{/hasLLD}}
]
[target.aarch64-unknown-linux-gnu.heif]
rustc-link-search = ["{{{nativeDeps}}}/lib"]
rustc-link-lib = ["heif"]
{{/isLinux}}
{{#hasAndroid}}
[target.aarch64-linux-android]
linker = "{{{androidNdkHome}}}/toolchains/llvm/prebuilt/{{{hostTag}}}/bin/aarch64-linux-android35-clang"
rustflags = ["-L", "{{{mobileNativeDeps}}}/aarch64-linux-android/lib"]
[target.x86_64-linux-android]
linker = "{{{androidNdkHome}}}/toolchains/llvm/prebuilt/{{{hostTag}}}/bin/x86_64-linux-android35-clang"
rustflags = ["-L", "{{{mobileNativeDeps}}}/x86_64-linux-android/lib"]
{{/hasAndroid}}
# Cargo aliases for xtask commands
[alias]
xtask = "run --package xtask --"
ios = "run --package xtask -- build-ios"
daemon = "run --package sd-core --bin sd-daemon --features sd-core/ffmpeg,sd-core/heif"
cli = "run --package sd-core --bin spacedrive --features sd-core/ffmpeg,sd-core/heif"