summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2014-05-21 11:19:48 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-05-21 12:03:24 +0200
commit8d3b2dfab8674781fe562c03c92952286356a575 (patch)
treec79a6ab453ee00eecc8c01fbe01ccfe52a8f3a14
parentefec00d65ee4e4cb8d9b9420de7d70b1b4735533 (diff)
bootstrap: Download wglext.h when cross-compiling for windows
-rw-r--r--cerbero/bootstrap/windows.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/cerbero/bootstrap/windows.py b/cerbero/bootstrap/windows.py
index 6034826d..30a87493 100644
--- a/cerbero/bootstrap/windows.py
+++ b/cerbero/bootstrap/windows.py
@@ -70,6 +70,8 @@ class WindowsBootstrapper(BootstrapperBase):
if self.platform == Platform.WINDOWS:
# After mingw is beeing installed
self.install_bin_deps()
+ if self.config.platform != Platform.WINDOWS:
+ self.install_gl_headers()
self.install_python_sdk()
def check_dirs(self):
@@ -127,6 +129,15 @@ class WindowsBootstrapper(BootstrapperBase):
for dep in MINGWGET_DEPS:
shell.call('mingw-get install %s' % dep)
+ def install_gl_headers(self):
+ m.action("Installing wglext.h")
+ if self.arch == Architecture.X86:
+ inst_path = os.path.join(self.prefix, 'i686-w64-mingw32/include/GL/wglext.h')
+ else:
+ inst_path = os.path.join(self.prefix, 'x86_64-w64-mingw32/include/GL/wglext.h')
+ gl_header = 'http://www.opengl.org/registry/api/GL/wglext.h'
+ shell.download(gl_header, inst_path)
+
def install_bin_deps(self):
# FIXME: build intltool as part of the build tools bootstrap
for url in WINDOWS_BIN_DEPS: