1 # Copyright © 2017 Intel Corporation
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:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
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
21 libaub = static_library(
23 files('aub_read.c', 'aub_mem.c'),
24 include_directories : [inc_common, inc_intel],
25 link_with : [libintel_common, libintel_dev, libmesa_util],
26 c_args : [c_vis_args, no_override_init_args],
30 aubinator = executable(
33 dependencies : [dep_expat, dep_zlib, dep_dl, dep_thread, dep_m],
34 include_directories : [inc_common, inc_intel],
35 link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util, libaub],
36 c_args : [c_vis_args, no_override_init_args],
37 build_by_default : true,
41 aubinator_error_decode = executable(
42 'aubinator_error_decode',
43 files('aubinator_error_decode.c'),
44 dependencies : [dep_zlib, dep_thread],
45 include_directories : [inc_common, inc_intel],
46 link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
47 c_args : [c_vis_args, no_override_init_args],
48 build_by_default : true,
52 error2aub = executable(
54 files('aub_write.h', 'aub_write.c', 'error2aub.c'),
55 dependencies : [dep_zlib, dep_dl, dep_thread, dep_m],
56 include_directories : [inc_common, inc_intel, inc_drm_uapi],
57 link_with : [libintel_dev],
58 c_args : [c_vis_args, no_override_init_args],
59 build_by_default : true,
63 sanitize_data = configuration_data()
66 join_paths(get_option('prefix'), get_option('libexecdir'))
69 input: 'intel_sanitize_gpu.in',
71 install_dir: get_option('bindir'),
73 configuration: sanitize_data
76 libintel_sanitize_gpu = shared_library(
78 files('intel_sanitize_gpu.c'),
79 dependencies : [dep_dl, dep_thread],
80 include_directories : [inc_common, inc_intel, inc_drm_uapi],
81 link_with : [libintel_common, libmesa_util],
82 c_args : [c_vis_args, no_override_init_args],
83 build_by_default : true,
84 install_dir: get_option('libexecdir'),
89 input : 'intel_dump_gpu.in',
90 output : '@BASENAME@',
91 install_dir: get_option('bindir'),
92 configuration: sanitize_data,
96 libintel_dump_gpu = shared_library(
98 files('gen_context.h', 'gen8_context.h', 'gen10_context.h',
99 'intel_aub.h', 'aub_write.h', 'aub_write.c', 'intel_dump_gpu.c'),
100 dependencies : dep_dl,
101 include_directories : [inc_common, inc_intel, inc_drm_uapi],
102 link_with : libintel_dev,
103 c_args : [c_vis_args, no_override_init_args],
104 build_by_default : true,
105 install_dir: get_option('libexecdir'),
109 if with_tools.contains('intel-ui')
112 aubinator_viewer = executable(
114 files('aubinator_viewer.cpp', 'aubinator_viewer_decoder.cpp'),
115 dependencies : [dep_zlib, dep_dl, dep_thread, dep_m, libintel_imgui_gtk_dep],
116 include_directories : [inc_common, inc_intel],
117 link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util, libaub],
118 c_args : [c_vis_args, no_override_init_args],
119 cpp_args : [ '-fpermissive', '-std=c++11', '-Wno-parentheses', '-Wno-class-memaccess' ],
120 build_by_default : true,