meson: Build gallium auxiliary
[mesa.git] / src / meson.build
1 # Copyright © 2017 Intel Corporation
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
20
21 inc_common = include_directories(
22 '../include', '.', 'mapi', 'mesa', 'gallium/include', 'gallium/auxiliary')
23 inc_mesa = include_directories('mesa')
24 inc_mapi = include_directories('mapi')
25 inc_src = include_directories('.')
26
27 libglsl_util = static_library(
28 'glsl_util',
29 files('mesa/main/extensions_table.c', 'mesa/main/imports.c',
30 'mesa/program/prog_parameter.c', 'mesa/program/symbol_table.c',
31 'mesa/program/dummy_errors.c'),
32 include_directories : [inc_common],
33 c_args : [c_vis_args],
34 build_by_default : false,
35 )
36
37 sha1_h = vcs_tag(
38 input : 'git_sha1.h.in',
39 output : 'git_sha1.h',
40 )
41
42 subdir('gtest')
43 subdir('util')
44 subdir('mapi/glapi/gen')
45 subdir('mapi')
46 # TODO: opengl
47 # TODO: osmesa
48 subdir('compiler')
49 subdir('egl/wayland/wayland-drm')
50 subdir('vulkan')
51 subdir('amd')
52 subdir('intel')
53 # TODO: vc4
54 subdir('mesa')
55 subdir('loader')
56 subdir('glx')
57 if with_gbm
58 subdir('gbm')
59 endif
60 # TODO: egl
61 subdir('gallium')