This repository has been archived by the owner on Jun 11, 2023. It is now read-only.
forked from not-fl3/miniquad
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
65 lines (56 loc) · 1.84 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
[package]
name = "lokinit"
version = "0.4.0-alpha.0"
authors = ["The Loki Authors", "not-fl3 <[email protected]>"]
edition = "2018"
license = "MIT/Apache-2.0"
homepage = "https://github.com/loki-chat/lokinit"
repository = "https://github.com/loki-chat/lokinit"
description = "Fork of miniquad, focused on windowing."
readme = "README.md"
keywords = ["graphics", "3D", "opengl", "gamedev", "windowing"]
categories = ["rendering::graphics-api"]
[features]
# Optional log-rs like macros implementation
# disabled by default
log-impl = []
[target.'cfg(target_os = "linux")'.dependencies]
skia-safe = { version = "0.60.0", features = ["gl"] }
libc = "0.2"
[target.'cfg(windows)'.dependencies]
skia-safe = { version = "0.60.0", features = ["gl"] }
winapi = { version = "0.3", features = [
"wingdi",
"winuser",
"libloaderapi",
"windef",
"shellscalingapi",
"errhandlingapi",
"windowsx",
"winbase",
"hidusage",
] }
[target.'cfg(target_os = "android")'.dependencies]
skia-safe = { version = "0.60.0", features = ["gl"] }
libc = "0.2"
ndk-sys = "0.2"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
# TODO: maybe replace "gl" with "metal" once we support it.
# Having both "gl" and "metal" features prevents us from fetching prebuilt binaries, even when not compiling on MacOS.
skia-safe = { version = "0.60.0", features = ["gl"] }
objc = "0.2"
[dev-dependencies]
glam = { version = "0.14", features = ["scalar-math"] }
quad-rand = "0.1"
[[example]]
name = "skia"
[package.metadata.android]
# rust-skia does not support cross-compilation to Android on ARMv7.
# ARMv7 is a 32-bit ARM architecture though, so it probably doesn't matter for our use-case.
build_targets = [
"aarch64-linux-android",
"i686-linux-android",
"x86_64-linux-android",
]
[package.metadata.android.activity_attributes]
"android:exported" = "true"