1 # Copyright © 2017-2019 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 files_libiris = files(
28 'iris_border_color.c',
45 'iris_performance_query.c',
47 'iris_pipe_control.c',
49 'iris_program_cache.c',
58 iris_driinfo_h = custom_target(
61 '../../../util/merge_driinfo.py',
62 '../../auxiliary/pipe-loader/driinfo_gallium.h', 'driinfo_iris.h'
64 output : 'iris_driinfo.h',
65 command : [prog_python, '@INPUT@'],
70 foreach v : ['80', '90', '100', '110', '120']
71 iris_gen_libs += static_library(
72 'iris_gen@0@'.format(v),
73 ['iris_blorp.c', 'iris_query.c', 'iris_state.c', gen_xml_pack],
74 include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_intel],
76 no_override_init_args, c_sse2_args,
77 '-DGEN_VERSIONx10=@0@'.format(v),
79 gnu_symbol_visibility : 'hidden',
80 dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers],
84 libiris = static_library(
86 [files_libiris, gen_xml_pack, iris_driinfo_h],
87 include_directories : [
88 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_intel,
90 # these should not be necessary, but main/macros.h...
93 c_args : [c_sse2_args],
94 cpp_args : [c_sse2_args],
95 gnu_symbol_visibility : 'hidden',
96 dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_libintel_common, idep_nir_headers],
98 iris_gen_libs, libintel_compiler, libintel_dev, libisl,
99 libblorp, libintel_perf
103 driver_iris = declare_dependency(
104 compile_args : '-DGALLIUM_IRIS',
105 sources : iris_driinfo_h,
106 link_with : [libiris, libiriswinsys],