-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
76 lines (55 loc) · 2.39 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
[package]
name = "egui-miniquad-demo"
version = "0.1.0"
authors = ["rgomes <[email protected]>"]
edition = "2018"
# targets = [
# "aarch64-linux-android",
# "armv7-linux-androideabi",
# "i686-linux-android",
# "x86_64-linux-android",
# "x86_64-unknown-linux-gnu",
# ]
[[example]]
name = "android"
crate-type = ["cdylib"]
[[example]]
name = "demo"
# crate-type = ["cdylib"]
[dependencies]
miniquad = { version = "=0.3.0-alpha.28", features = ["log-impl"] }
egui = "0.10.0"
egui-miniquad = "0.2.0"
egui_demo_lib = "0.10.0" #-- for demo purposes only
[dev-dependencies]
pretty_assertions = "0.6"
[profile.release]
opt-level = 2 # fast and small wasm
## -------------------------------------------------------------------------------------------
# [target.'cfg(target_arch = "wasm32")'.dependencies]
# sapp-wasm = { version = "0.1.23" }
## -------------------------------------------------------------------------------------------
[target.'cfg(target_os = "android")'.dependencies]
ndk = { git = "https://github.com/nikita-skobov/android-ndk-rs", branch = "miniglue" }
ndk-glue = { git = "https://github.com/nikita-skobov/android-ndk-rs", branch = "miniglue" }
[package.metadata.android]
apk_label = "demo"
target_sdk_version = 30
min_sdk_version = 21
## -------------------------------------------------------------------------------------------
# [target.'cfg(target_os = "linux")'.dependencies]
# sapp-linux = { version = "0.1.12", optional = true }
# sapp-kms = { version = "0.1.1", optional = true }
## -------------------------------------------------------------------------------------------
# [target.'cfg(target_os = "ios")'.dependencies]
# sapp-ios = { version = "0.1.2" }
## -------------------------------------------------------------------------------------------
# [target.'cfg(target_os = "macos")'.dependencies]
# sapp-darwin = { version = "0.1.6" }
# copypasta = "0.7" # https://github.com/not-fl3/miniquad/issues/172
## -------------------------------------------------------------------------------------------
# [target.'cfg(windows)'.dependencies]
# sapp-windows = { version = "0.2.16" }
## -------------------------------------------------------------------------------------------
# [target.'cfg(not(any(target_os="linux", target_os="macos", target_os="android", target_os="ios", target_arch="wasm32", windows)))'.dependencies]
# sapp-dummy = { version = "0.1.5" }