• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1headers = [ 'common.h' ]
2
3# GL is always generated
4generated_headers = [ [ 'gl.h', 'gl_generated.h', gl_registry ] ]
5
6if build_egl
7  generated_headers += [ [ 'egl.h', 'egl_generated.h', egl_registry ] ]
8endif
9
10if build_glx
11  generated_headers += [ [ 'glx.h', 'glx_generated.h', glx_registry ] ]
12endif
13
14if build_wgl
15  generated_headers += [ [ 'wgl.h', 'wgl_generated.h', wgl_registry ] ]
16endif
17
18gen_headers = []
19
20foreach g: generated_headers
21  header = g[0]
22  gen_header = g[1]
23  registry = g[2]
24  generated = custom_target(gen_header,
25                            input: registry,
26                            output: [ gen_header ],
27                            command: [
28                              python,
29                              gen_dispatch_py,
30                              '--header',
31                              '--no-source',
32                              '--outputdir=@OUTDIR@',
33                              '@INPUT@',
34                            ],
35                            install: true,
36                            install_dir: join_paths(epoxy_includedir, 'epoxy'))
37
38  gen_headers += [ generated ]
39  headers += [ header ]
40endforeach
41
42epoxy_headers = files(headers) + gen_headers
43
44install_headers(headers, subdir: 'epoxy')
45