iris: binders
[mesa.git] / src / gallium / drivers / iris / 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 files_libiris = files(
22 'iris_batch.c',
23 'iris_batch.h',
24 'iris_binder.c',
25 'iris_binder.h',
26 'iris_blit.c',
27 'iris_bufmgr.c',
28 'iris_bufmgr.h',
29 'iris_clear.c',
30 'iris_context.c',
31 'iris_context.h',
32 'iris_draw.c',
33 'iris_formats.c',
34 'iris_pipe.h',
35 'iris_program.c',
36 'iris_program_cache.c',
37 'iris_query.c',
38 'iris_resource.c',
39 'iris_resource.h',
40 'iris_screen.c',
41 'iris_screen.h',
42 )
43
44 iris_gen_libs = []
45 foreach v : ['90', '100']
46 _lib = static_library(
47 'libiris_gen@0@'.format(v),
48 ['iris_state.c', gen_xml_pack],
49 include_directories : [inc_common, inc_intel],
50 c_args : [c_vis_args, no_override_init_args,
51 '-DGEN_VERSIONx10=@0@'.format(v)],
52 dependencies : [dep_libdrm, dep_valgrind],
53 )
54 iris_gen_libs += _lib
55 endforeach
56
57 libiris = static_library(
58 'iris',
59 [files_libiris, gen_xml_pack, nir_opcodes_h, nir_builder_opcodes_h],
60 include_directories : [
61 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_intel, inc_nir,
62 inc_gallium_drivers,
63 # these should not be necessary, but main/macros.h...
64 inc_mesa, inc_mapi
65 ],
66 c_args : [c_vis_args],
67 cpp_args : [cpp_vis_args],
68 dependencies : [dep_libdrm, dep_valgrind],
69 link_with : [iris_gen_libs, libintel_common, libintel_compiler, libintel_dev,
70 libisl, libblorp],
71 )
72
73 driver_iris = declare_dependency(
74 compile_args : '-DGALLIUM_IRIS',
75 link_with : [libiris, libiriswinsys],
76 )