intel: Split gen_device_info out into libintel_dev
[mesa.git] / src / mesa / drivers / dri / i965 / 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_i965 = files(
22 'brw_binding_tables.c',
23 'brw_blorp.c',
24 'brw_blorp.h',
25 'brw_bufmgr.c',
26 'brw_bufmgr.h',
27 'brw_clear.c',
28 'brw_clip.c',
29 'brw_compute.c',
30 'brw_conditional_render.c',
31 'brw_context.c',
32 'brw_context.h',
33 'brw_cs.c',
34 'brw_cs.h',
35 'brw_curbe.c',
36 'brw_defines.h',
37 'brw_disk_cache.c',
38 'brw_draw.c',
39 'brw_draw.h',
40 'brw_draw_upload.c',
41 'brw_ff_gs.c',
42 'brw_ff_gs_emit.c',
43 'brw_ff_gs.h',
44 'brw_formatquery.c',
45 'brw_generate_mipmap.c',
46 'brw_gs.c',
47 'brw_gs.h',
48 'brw_gs_surface_state.c',
49 'brw_link.cpp',
50 'brw_meta_util.c',
51 'brw_meta_util.h',
52 'brw_misc_state.c',
53 'brw_multisample_state.h',
54 'brw_nir_uniforms.cpp',
55 'brw_object_purgeable.c',
56 'brw_pipe_control.c',
57 'brw_performance_query.h',
58 'brw_performance_query.c',
59 'brw_program.c',
60 'brw_program.h',
61 'brw_program_binary.c',
62 'brw_program_cache.c',
63 'brw_primitive_restart.c',
64 'brw_queryobj.c',
65 'brw_reset.c',
66 'brw_sf.c',
67 'brw_state.h',
68 'brw_state_upload.c',
69 'brw_structs.h',
70 'brw_surface_formats.c',
71 'brw_sync.c',
72 'brw_tcs.c',
73 'brw_tcs_surface_state.c',
74 'brw_tes.c',
75 'brw_tes_surface_state.c',
76 'brw_urb.c',
77 'brw_util.c',
78 'brw_util.h',
79 'brw_vs.c',
80 'brw_vs.h',
81 'brw_vs_surface_state.c',
82 'brw_wm.c',
83 'brw_wm.h',
84 'brw_wm_surface_state.c',
85 'gen4_blorp_exec.h',
86 'gen6_clip_state.c',
87 'gen6_constant_state.c',
88 'gen6_depth_state.c',
89 'gen6_multisample_state.c',
90 'gen6_queryobj.c',
91 'gen6_sampler_state.c',
92 'gen6_sol.c',
93 'gen6_urb.c',
94 'gen7_l3_state.c',
95 'gen7_misc_state.c',
96 'gen7_sol_state.c',
97 'gen7_urb.c',
98 'gen8_depth_state.c',
99 'gen8_multisample_state.c',
100 'hsw_queryobj.c',
101 'hsw_sol.c',
102 'intel_batchbuffer.c',
103 'intel_batchbuffer.h',
104 'intel_blit.c',
105 'intel_blit.h',
106 'intel_buffer_objects.c',
107 'intel_buffer_objects.h',
108 'intel_buffers.c',
109 'intel_buffers.h',
110 'intel_copy_image.c',
111 'intel_extensions.c',
112 'intel_fbo.c',
113 'intel_fbo.h',
114 'intel_image.h',
115 'intel_mipmap_tree.c',
116 'intel_mipmap_tree.h',
117 'intel_pixel_bitmap.c',
118 'intel_pixel.c',
119 'intel_pixel_copy.c',
120 'intel_pixel_draw.c',
121 'intel_pixel.h',
122 'intel_pixel_read.c',
123 'intel_screen.c',
124 'intel_screen.h',
125 'intel_state.c',
126 'intel_tex.c',
127 'intel_tex_copy.c',
128 'intel_tex.h',
129 'intel_tex_image.c',
130 'intel_tex_obj.h',
131 'intel_tex_validate.c',
132 'intel_tiled_memcpy.c',
133 'intel_tiled_memcpy.h',
134 'intel_upload.c',
135 'libdrm_macros.h',
136 )
137
138 i965_gen_libs = []
139 foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100', '110']
140 i965_gen_libs += static_library(
141 'libi965_gen@0@'.format(v),
142 ['genX_blorp_exec.c', 'genX_state_upload.c', gen_xml_pack],
143 include_directories : [inc_common, inc_intel, inc_dri_common],
144 c_args : [
145 c_vis_args, no_override_init_args, '-msse2',
146 '-DGEN_VERSIONx10=@0@'.format(v),
147 ],
148 dependencies : [dep_libdrm, idep_nir_headers],
149 )
150 endforeach
151
152 i965_oa_sources = []
153 foreach hw : ['hsw', 'bdw', 'chv', 'sklgt2', 'sklgt3', 'sklgt4', 'bxt',
154 'kblgt2', 'kblgt3', 'glk', 'cflgt2', 'cflgt3']
155 _name = 'brw_oa_@0@'.format(hw)
156 i965_oa_sources += custom_target(
157 _name,
158 input : ['brw_oa.py', '@0@.xml'.format(_name)],
159 output : ['@0@.c'.format(_name), '@0@.h'.format(_name)],
160 command : [
161 prog_python2, '@INPUT0@', '--chipset', hw, '--code', '@OUTPUT0@',
162 '--header', '@OUTPUT1@', '@INPUT1@',
163 ],
164 )
165 endforeach
166
167 libi965 = static_library(
168 'i965',
169 [files_i965, i965_oa_sources, ir_expression_operation_h,
170 xmlpool_options_h],
171 include_directories : [
172 inc_common, inc_intel, inc_dri_common, inc_util, inc_drm_uapi,
173 ],
174 c_args : [c_vis_args, no_override_init_args, '-msse2'],
175 cpp_args : [cpp_vis_args, '-msse2'],
176 link_with : [
177 i965_gen_libs, libintel_common, libintel_dev, libisl, libintel_compiler,
178 libblorp,
179 ],
180 dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers],
181 )
182
183 dri_drivers += libi965
184 dri_link += 'i965_dri.so'