forked from gyroflow/gyroflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
126 lines (104 loc) · 3.98 KB
/
Cargo.toml
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
119
120
121
122
123
124
125
126
[package]
name = "gyroflow"
version = "1.5.2"
authors = ["Adrian <[email protected]>", "Elvin Chen"]
edition = "2021"
build = "build.rs"
[features]
default = ["opencv"]
opencl = ["gyroflow-core/use-opencl"]
opencv = ["gyroflow-core/use-opencv"]
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
gyroflow-core = { path = "src/core/", features = ["use-opencv", "use-opencl"] }
keep-awake = { git = "https://github.com/AdrianEddy/keep-awake-rs.git", rev = "41bc5f9" }
system_shutdown = { git = "https://github.com/risoflora/system_shutdown.git", rev = "c3fc739" }
breakpad-sys = "0.2.0"
[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]
gyroflow-core = { path = "src/core/", features = ["use-opencv"] }
[dependencies]
cstr = "0.2.11"
cpp = "0.5.9"
serde = "1.0"
serde_json = "1.0"
bytemuck = "1.13.1"
nalgebra = "0.32"
semver = "1.0.18"
fastrand = "2.0.0"
itertools = "0.11.0"
regex = "1.9.3"
rayon = "1.7"
pollster = "0.3.0"
futures-intrusive = "0.5.0"
flate2 = "1.0.27"
walkdir = "2.3.3"
mp4-merge = "0.1.5"
human-sort = "0.2.2"
argh = "0.1.12"
indicatif = "0.17"
rustfft = "6.1.0"
crc32fast = "1.3.2"
rodio = { default-features = false, features = ["vorbis"], version = "0.17.1" }
filetime_creation = "0.1"
directories = "5"
qmetaobject = { version = "0.2.9", default-features = false, features = ["log"] }
qttypes = { version = "0.2.9", default-features = false, features = ["required", "qtquick", "qtquickcontrols2"]}
qml-video-rs = { git = "https://github.com/AdrianEddy/qml-video-rs.git", rev = "80556f4" }
#qml-video-rs = { path = "../qml-video-rs" }
ffmpeg-next = { version = "6.0.0", default-features = false, features = ["codec", "filter", "format", "software-resampling", "software-scaling"] }
lazy_static = "1.4.0"
parking_lot = "0.12.1"
simplelog = "0.12.1"
log = "0.4"
ureq = "2.7.1"
url = "2.4.0"
whoami = "1.4.1"
tar = "0.4.40"
lru = "0.11.0"
log-panics = { version = "2.1", features = ["with-backtrace"] }
[patch.crates-io]
fc-blackbox = { git = "https://github.com/AdrianEddy/fc-blackbox.git", rev = "4e9e4e6" }
qmetaobject = { git = "https://github.com/AdrianEddy/qmetaobject-rs.git", rev = "98ebed1" }
qttypes = { git = "https://github.com/AdrianEddy/qmetaobject-rs.git", rev = "98ebed1" }
ffmpeg-next = { git = "https://github.com/AdrianEddy/rust-ffmpeg.git" }
ffmpeg-sys-next = { git = "https://github.com/AdrianEddy/rust-ffmpeg-sys.git" }
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.51.0"
features = [ "Win32_System_Com", "Win32_System_Console", "Win32_System_SystemServices", "Win32_UI_Shell", "Win32_Foundation", "Wdk_Foundation", "Win32_System_LibraryLoader",
"Win32_Graphics_Dwm", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D11", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Dxgi",
"Win32_Security", "Win32_Security_Authorization", "Win32_System_WindowsProgramming", "Win32_System_Threading", "Win32_System_Registry" ]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.metal]
version = "0.26.0"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation-sys]
version = "0.8.4"
[build-dependencies]
cpp_build = "0.5.9"
winres = "0.1.12"
walkdir = "2.3.3"
cc = "=1.0.79"
[[bin]]
name = "gyroflow"
path = "src/gyroflow.rs"
[profile.profile]
inherits = "release"
debug = true
[profile.deploy]
inherits = "release"
lto = true
codegen-units = 1
# -------------------------- Android stuff --------------------------
# [lib]
# crate-type = ["cdylib"]
# name = "gyroflow"
# path = "src/gyroflow.rs"
[package.metadata.android]
build_targets = [ "aarch64-linux-android" ]
[package.metadata.android.sdk]
min_sdk_version = 26
target_sdk_version = 30
[[package.metadata.android.uses_permission]]
name = "android.permission.WRITE_EXTERNAL_STORAGE"
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.21"
ndk = { version = "0.7", features = ["media", "api-level-26"] }
# ndk-glue = { version = "*", features = ["logger"] }
ndk-sys = { version = "0.4.1" }