| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 1 | # 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. |
| 8 | rust_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 | ], |
| 21 | # CoreAudio. The objc2 rows are pinned to the versions cpal asks for |
| 22 | # rather than the older ones winit drags into the same graph. |
| 23 | "prelude//os:macos": [ |
| 24 | "//third-party/rust:coreaudio-rs", |
| 25 | "//third-party/rust:libc", |
| 26 | "//third-party/rust:mach2", |
| 27 | "//third-party/rust:objc2", |
| 28 | "//third-party/rust:objc2-audio-toolbox", |
| 29 | "//third-party/rust:objc2-core-audio", |
| 30 | "//third-party/rust:objc2-core-audio-types", |
| 31 | "//third-party/rust:objc2-core-foundation", |
| 32 | "//third-party/rust:objc2-foundation", |
| 33 | ], |
| 34 | }), |
| 35 | ) |