# Files pulled in by include!/include_bytes!/include_str! that the # default source globs miss. extra_srcs = [ "api/xml/gl.xml", "api/xml/glx.xml", "api/xml/wgl.xml", "api_angle/scripts/egl_angle_ext.xml", "api_angle/scripts/gl_angle_ext.xml", "api_egl/api/egl.xml", "api_webgl/specs/latest/1.0/webgl.idl", "api_webgl/specs/latest/2.0/webgl2.idl", ] # The build script is ours, not the crate's: upstream's writes absolute paths # into the file it generates, which is a thing that cannot survive being built # in one place and read in another. See overlay/build.rs. overlay = "overlay" # 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" }