| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 1 | # Run the crate build script (emits cfgs / OUT_DIR sources). |
| Build both objects under buck2, against the BuildBuddy cache 600f207 nandi 19d ago | 2 | [buildscript.run] |
| 3 | # cargo sets OPT_LEVEL for every build script; buck2 does not, and cc-rs and |
| 4 | # a number of configure scripts read it unconditionally. |
| 5 | env = { OPT_LEVEL = "2" } |
| Let the media plane cross to the phone, camera and all fd0e21a nandi 18d ago | 6 | |
| 7 | # And honour its linking directives, the same as aws-lc-sys — see the longer |
| 8 | # note there. This build script compiles openh264's C++ under the `source` |
| 9 | # feature and emits `cargo:rustc-link-lib` for the archive; buck2 drops that by |
| 10 | # default, which left `WelsCreateSVCEncoder` and its three siblings undefined — |
| 11 | # the whole H.264 encode and decode path, silently, in every buck2-built |
| 12 | # libjoltmoq.so. |
| 13 | rustc_link_lib = true |
| 14 | rustc_link_search = true |