diff options
author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2015-01-22 15:53:12 +1100 |
---|---|---|
committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2015-01-22 15:53:12 +1100 |
commit | 13be9b2598c1fdce7af61ab05933ba687c95e64c (patch) | |
tree | 05475932fb76615939f81a3224fb939095a9f2b9 /build.rs | |
parent | 862baf82204c373d17e2878871826a457529a03f (diff) | |
parent | e12e4bf38f30c74df35ca416ee2b7abbdb803526 (diff) | |
download | glutin-13be9b2598c1fdce7af61ab05933ba687c95e64c.tar.gz glutin-13be9b2598c1fdce7af61ab05933ba687c95e64c.zip |
Merge pull request #216 from jdm/osx
Fix OS X build.
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -50,7 +50,15 @@ fn main() { khronos_api::EGL_XML, vec![], "1.5", "core", &mut file).unwrap(); } - + + if target.contains("darwin") { + let mut file = File::create(&dest.join("gl_bindings.rs")).unwrap(); + gl_generator::generate_bindings(gl_generator::GlobalGenerator, + gl_generator::registry::Ns::Gl, + khronos_api::GL_XML, + vec!["GL_EXT_framebuffer_object".to_string()], + "3.2", "core", &mut file).unwrap(); + } // TODO: only build the bindings below if we run tests/examples |