1# SPDX-License-Identifier: MIT
2# Copyright © 2021 Intel Corporation
3
4project(
5  'glu',
6  ['c', 'cpp'],
7  version : '9.0.2',
8  meson_version : '>= 0.52.0',
9  license : 'SGI-B-1.1 AND SGI-B-2.0 AND MIT',
10  default_options : ['default_library=both', 'b_ndebug=if-release']
11)
12
13if get_option('debug')
14  add_project_arguments('-DDEBUG', language : ['c', 'cpp'])
15endif
16
17gl_provider = get_option('gl_provider')
18if gl_provider == 'glvnd'
19  gl_provider = 'opengl'
20endif
21dep_gl = dependency(gl_provider)
22
23inc_include = include_directories('include')
24
25subdir('src')
26
27install_headers(
28  'include/GL/glu.h',
29  subdir : 'GL',
30)
31
32pkgconf = import('pkgconfig')
33pkgconf.generate(
34  libglu,
35  name : 'glu',
36  description : 'Mesa OpenGL Utility Library',
37)
38