Add a system method for obtaining GL dependency on Linux OS

pull/11433/merge
Helen Ginn 2 years ago committed by Eli Schwartz
parent 4fedf19f41
commit 3ca56dc778
  1. 10
      mesonbuild/dependencies/ui.py

@ -45,12 +45,20 @@ class GLDependencySystem(SystemDependency):
self.link_args = ['-framework', 'OpenGL']
# FIXME: Detect version using self.clib_compiler
return
if self.env.machines[self.for_machine].is_windows():
elif self.env.machines[self.for_machine].is_windows():
self.is_found = True
# FIXME: Use self.clib_compiler.find_library()
self.link_args = ['-lopengl32']
# FIXME: Detect version using self.clib_compiler
return
else:
links = self.clib_compiler.find_library('GL', environment, [])
has_header = self.clib_compiler.has_header('GL/gl.h', '', environment)[0]
if links and has_header:
self.is_found = True
self.link_args = links
elif links:
raise DependencyException('Found GL runtime library but no development header files')
class GnuStepDependency(ConfigToolDependency):

Loading…
Cancel
Save