nandi/jolt-nativepublic Fork 0
c2d912f670b7a2e5808970d17cecf51c6c87cfbf
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

BUCK · 46 lines · 2.0 KBPython Blame HistoryRaw
Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago1# The vendored cpal, which reindeer cannot generate a target for: it arrives as
2# a path patch rather than a registry or git source, and reindeer only emits
3# targets for sources it vendors. See the patch table in ../Cargo.toml for why
4# the copy exists at all, and fixups/moq-media for what points at this.
5#
6# Without the `pipewire` feature, matching how ../Cargo.toml declares it, and
7# without `jack`, which is optional and off.
8rust_library(
9 name = "cpal",
10 srcs = glob(["src/**/*.rs"]),
11 crate = "cpal",
12 crate_root = "src/lib.rs",
13 edition = "2021",
14 visibility = ["PUBLIC"],
15 deps = ["//third-party/rust:dasp_sample"] + select({
16 # The ALSA host. Mirrors cpal's linux/*bsd target table.
17 "DEFAULT": [
18 "//third-party/rust:alsa",
19 "//third-party/rust:libc",
20 ],
Let the media plane cross to the phone, camera and all fd0e21a nandi 18d ago21 # The AAudio host. `ndk` is the binding, `ndk-context` is how cpal finds
22 # the VM, and jni here is 0.21 — the other one in this graph is 0.22 and
23 # renamed for exactly that reason. No alsa row: the phone has none.
24 "prelude//os:android": [
25 "//third-party/rust:jni",
26 "//third-party/rust:libc",
27 "//third-party/rust:ndk",
28 "//third-party/rust:ndk-context",
29 "//third-party/rust:num-derive",
30 "//third-party/rust:num-traits",
31 ],
Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago32 # CoreAudio. The objc2 rows are pinned to the versions cpal asks for
33 # rather than the older ones winit drags into the same graph.
34 "prelude//os:macos": [
35 "//third-party/rust:coreaudio-rs",
36 "//third-party/rust:libc",
37 "//third-party/rust:mach2",
38 "//third-party/rust:objc2",
39 "//third-party/rust:objc2-audio-toolbox",
40 "//third-party/rust:objc2-core-audio",
41 "//third-party/rust:objc2-core-audio-types",
42 "//third-party/rust:objc2-core-foundation",
43 "//third-party/rust:objc2-foundation",
44 ],
45 }),
46)