build: fix build without gl-features
This commit is contained in:
parent
9428853ad6
commit
10e74e2948
6
build.rs
6
build.rs
|
@ -1,8 +1,11 @@
|
||||||
|
#[cfg(any(feature = "backend_egl", feature = "backend_gl"))]
|
||||||
extern crate gl_generator;
|
extern crate gl_generator;
|
||||||
|
|
||||||
|
#[cfg(any(feature = "backend_egl", feature = "backend_gl"))]
|
||||||
use gl_generator::{Api, Fallbacks, Profile, Registry};
|
use gl_generator::{Api, Fallbacks, Profile, Registry};
|
||||||
use std::{env, fs::File, path::PathBuf};
|
use std::{env, fs::File, path::PathBuf};
|
||||||
|
|
||||||
|
#[cfg(any(feature = "backend_egl", feature = "backend_gl"))]
|
||||||
fn main() {
|
fn main() {
|
||||||
let dest = PathBuf::from(&env::var("OUT_DIR").unwrap());
|
let dest = PathBuf::from(&env::var("OUT_DIR").unwrap());
|
||||||
|
|
||||||
|
@ -46,3 +49,6 @@ fn main() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(any(feature = "backend_egl", feature = "backend_gl")))]
|
||||||
|
fn main() {}
|
Loading…
Reference in New Issue