1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Run the crate build script (emits cfgs / OUT_DIR sources).
[buildscript.run]
# cargo sets OPT_LEVEL for every build script; buck2 does not, and cc-rs and
# a number of configure scripts read it unconditionally.
env = { OPT_LEVEL = "2" }
# And honour its linking directives, the same as aws-lc-sys — see the longer
# note there. This build script compiles openh264's C++ under the `source`
# feature and emits `cargo:rustc-link-lib` for the archive; buck2 drops that by
# default, which left `WelsCreateSVCEncoder` and its three siblings undefined —
# the whole H.264 encode and decode path, silently, in every buck2-built
# libjoltmoq.so.
rustc_link_lib = true
rustc_link_search = true
|