Make it work on DragonFly/FreeBSD
Tested on DragonFly BSD. Should work similarily on FreeBSD.
This commit is contained in:
parent
b8b1b80631
commit
b707959c2c
12 changed files with 30 additions and 11 deletions
2
build.rs
2
build.rs
|
|
@ -59,7 +59,7 @@ fn main() {
|
|||
"1.5", "core", &mut file).unwrap();
|
||||
}
|
||||
|
||||
if target.contains("linux") {
|
||||
if target.contains("linux") || target.contains("dragonfly") || target.contains("freebsd") {
|
||||
let mut file = File::create(&dest.join("glx_bindings.rs")).unwrap();
|
||||
gl_generator::generate_bindings(gl_generator::StructGenerator,
|
||||
gl_generator::registry::Ns::Glx,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue