| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 1 | # The egui theme layer. Mirrors crates/vidya-core/Cargo.toml. |
| 2 | rust_library( |
| 3 | name = "vidya", |
| 4 | # include_bytes! reads these at compile time, so they belong in srcs |
| 5 | # rather than resources. |
| 6 | srcs = glob(["src/**/*.rs"]) + [ |
| 7 | "assets/vidya-symbols.ttf", |
| 8 | "assets/emoji/twemoji-72x72.zip", |
| 9 | ], |
| 10 | crate_root = "src/lib.rs", |
| 11 | edition = "2021", |
| 12 | visibility = ["PUBLIC"], |
| 13 | deps = [ |
| 14 | "//third-party/rust:egui", |
| 15 | "//third-party/rust:png", |
| 16 | "//third-party/rust:zip", |
| Build libvidya for the phone, and hold the glue that boots it d942053 nandi 19d ago | 17 | ] + select({ |
| 18 | "DEFAULT": [], |
| 19 | # `sync_system_chrome_from_android` reads the insets off the |
| 20 | # NativeActivity handle. Mirrors the target-gated dep in Cargo.toml. |
| 21 | "prelude//os:android": ["//third-party/rust:winit"], |
| 22 | }), |
| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 23 | ) |