swr/rast: LLVM 6 fix
[mesa.git] / src / intel / tools / 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 aubinator = executable(
22 'aubinator',
23 files('aubinator.c', 'disasm.c', 'gen_batch_decoder.c',
24 'gen_disasm.h', 'intel_aub.h'),
25 dependencies : [dep_expat, dep_zlib, dep_dl, dep_thread, dep_m],
26 include_directories : [inc_common, inc_intel],
27 link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
28 c_args : [c_vis_args, no_override_init_args],
29 build_by_default : with_tools.contains('intel'),
30 install : with_tools.contains('intel'),
31 )
32
33 aubinator_error_decode = executable(
34 'aubinator_error_decode',
35 files('aubinator_error_decode.c', 'disasm.c', 'gen_disasm.h',
36 'gen_batch_decoder.c'),
37 dependencies : [dep_zlib, dep_thread],
38 include_directories : [inc_common, inc_intel],
39 link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
40 c_args : [c_vis_args, no_override_init_args],
41 build_by_default : with_tools.contains('intel'),
42 install : with_tools.contains('intel'),
43 )
44
45 if with_tools.contains('intel')
46 sanitize_data = configuration_data()
47 sanitize_data.set(
48 'install_libexecdir',
49 join_paths(get_option('prefix'), get_option('libexecdir'))
50 )
51 configure_file(
52 input: 'intel_sanitize_gpu.in',
53 output: '@BASENAME@',
54 install_dir: get_option('bindir'),
55 configuration: sanitize_data,
56 )
57
58 libintel_sanitize_gpu = shared_library(
59 'intel_sanitize_gpu',
60 files('intel_sanitize_gpu.c'),
61 dependencies : [dep_dl, dep_thread],
62 include_directories : [inc_common, inc_intel, inc_drm_uapi],
63 link_with : [libintel_common, libmesa_util],
64 c_args : [c_vis_args, no_override_init_args],
65 install_dir: get_option('libexecdir'),
66 install: true,
67 )
68 endif