1b8e80941Smrg# Copyright © 2017 Intel Corporation
2b8e80941Smrg
3b8e80941Smrg# Permission is hereby granted, free of charge, to any person obtaining a copy
4b8e80941Smrg# of this software and associated documentation files (the "Software"), to deal
5b8e80941Smrg# in the Software without restriction, including without limitation the rights
6b8e80941Smrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7b8e80941Smrg# copies of the Software, and to permit persons to whom the Software is
8b8e80941Smrg# furnished to do so, subject to the following conditions:
9b8e80941Smrg
10b8e80941Smrg# The above copyright notice and this permission notice shall be included in
11b8e80941Smrg# all copies or substantial portions of the Software.
12b8e80941Smrg
13b8e80941Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14b8e80941Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15b8e80941Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16b8e80941Smrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17b8e80941Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18b8e80941Smrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19b8e80941Smrg# SOFTWARE.
20b8e80941Smrg
21b8e80941Smrgfiles_mapi_util = files(
22b8e80941Smrg  'u_current.c',
23b8e80941Smrg  'u_current.h',
24b8e80941Smrg  'u_execmem.c',
25b8e80941Smrg  'u_execmem.h',
26b8e80941Smrg)
27b8e80941Smrg
28b8e80941SmrggenCommon_py = files('new/genCommon.py')
29b8e80941Smrgglapi_gen_mapi_py = files('new/gen_gldispatch_mapi.py')
30b8e80941Smrgmapi_abi_py = files('mapi_abi.py')
31b8e80941Smrg
32b8e80941Smrgsubdir('glapi')
33b8e80941Smrgif with_shared_glapi
34b8e80941Smrg  subdir('shared-glapi')
35b8e80941Smrgelse
36b8e80941Smrg  libglapi = []
37b8e80941Smrgendif
38b8e80941Smrgif not with_glvnd
39b8e80941Smrg  if with_gles1
40b8e80941Smrg    subdir('es1api')
41b8e80941Smrg  endif
42b8e80941Smrg  if with_gles2
43b8e80941Smrg    subdir('es2api')
44b8e80941Smrg  endif
45b8e80941Smrgendif
46