1bf215546Sopenharmony_ci# Copyright © 2017 Intel Corporation
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_ci# Permission is hereby granted, free of charge, to any person obtaining a copy
4bf215546Sopenharmony_ci# of this software and associated documentation files (the "Software"), to deal
5bf215546Sopenharmony_ci# in the Software without restriction, including without limitation the rights
6bf215546Sopenharmony_ci# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7bf215546Sopenharmony_ci# copies of the Software, and to permit persons to whom the Software is
8bf215546Sopenharmony_ci# furnished to do so, subject to the following conditions:
9bf215546Sopenharmony_ci
10bf215546Sopenharmony_ci# The above copyright notice and this permission notice shall be included in
11bf215546Sopenharmony_ci# all copies or substantial portions of the Software.
12bf215546Sopenharmony_ci
13bf215546Sopenharmony_ci# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14bf215546Sopenharmony_ci# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15bf215546Sopenharmony_ci# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16bf215546Sopenharmony_ci# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17bf215546Sopenharmony_ci# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18bf215546Sopenharmony_ci# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19bf215546Sopenharmony_ci# SOFTWARE.
20bf215546Sopenharmony_ci
21bf215546Sopenharmony_cifiles_svga = files(
22bf215546Sopenharmony_ci  'svga_cmd.c',
23bf215546Sopenharmony_ci  'svga_cmd_vgpu10.c',
24bf215546Sopenharmony_ci  'svga_context.c',
25bf215546Sopenharmony_ci  'svga_draw_arrays.c',
26bf215546Sopenharmony_ci  'svga_draw.c',
27bf215546Sopenharmony_ci  'svga_draw_elements.c',
28bf215546Sopenharmony_ci  'svga_format.c',
29bf215546Sopenharmony_ci  'svga_image_view.c',
30bf215546Sopenharmony_ci  'svga_link.c',
31bf215546Sopenharmony_ci  'svga_pipe_blend.c',
32bf215546Sopenharmony_ci  'svga_pipe_blit.c',
33bf215546Sopenharmony_ci  'svga_pipe_clear.c',
34bf215546Sopenharmony_ci  'svga_pipe_constants.c',
35bf215546Sopenharmony_ci  'svga_pipe_cs.c',
36bf215546Sopenharmony_ci  'svga_pipe_depthstencil.c',
37bf215546Sopenharmony_ci  'svga_pipe_draw.c',
38bf215546Sopenharmony_ci  'svga_pipe_flush.c',
39bf215546Sopenharmony_ci  'svga_pipe_fs.c',
40bf215546Sopenharmony_ci  'svga_pipe_gs.c',
41bf215546Sopenharmony_ci  'svga_pipe_ts.c',
42bf215546Sopenharmony_ci  'svga_pipe_misc.c',
43bf215546Sopenharmony_ci  'svga_pipe_query.c',
44bf215546Sopenharmony_ci  'svga_pipe_rasterizer.c',
45bf215546Sopenharmony_ci  'svga_pipe_sampler.c',
46bf215546Sopenharmony_ci  'svga_pipe_streamout.c',
47bf215546Sopenharmony_ci  'svga_pipe_vertex.c',
48bf215546Sopenharmony_ci  'svga_pipe_vs.c',
49bf215546Sopenharmony_ci  'svga_resource_buffer.c',
50bf215546Sopenharmony_ci  'svga_resource_buffer_upload.c',
51bf215546Sopenharmony_ci  'svga_resource.c',
52bf215546Sopenharmony_ci  'svga_resource_texture.c',
53bf215546Sopenharmony_ci  'svga_sampler_view.c',
54bf215546Sopenharmony_ci  'svga_screen.c',
55bf215546Sopenharmony_ci  'svga_screen_cache.c',
56bf215546Sopenharmony_ci  'svga_shader.c',
57bf215546Sopenharmony_ci  'svga_shader_buffer.c',
58bf215546Sopenharmony_ci  'svga_state.c',
59bf215546Sopenharmony_ci  'svga_state_constants.c',
60bf215546Sopenharmony_ci  'svga_state_cs.c',
61bf215546Sopenharmony_ci  'svga_state_framebuffer.c',
62bf215546Sopenharmony_ci  'svga_state_fs.c',
63bf215546Sopenharmony_ci  'svga_state_gs.c',
64bf215546Sopenharmony_ci  'svga_state_ts.c',
65bf215546Sopenharmony_ci  'svga_state_need_swtnl.c',
66bf215546Sopenharmony_ci  'svga_state_rss.c',
67bf215546Sopenharmony_ci  'svga_state_sampler.c',
68bf215546Sopenharmony_ci  'svga_state_tgsi_transform.c',
69bf215546Sopenharmony_ci  'svga_state_tss.c',
70bf215546Sopenharmony_ci  'svga_state_uav.c',
71bf215546Sopenharmony_ci  'svga_state_vdecl.c',
72bf215546Sopenharmony_ci  'svga_state_vs.c',
73bf215546Sopenharmony_ci  'svga_surface.c',
74bf215546Sopenharmony_ci  'svga_swtnl_backend.c',
75bf215546Sopenharmony_ci  'svga_swtnl_draw.c',
76bf215546Sopenharmony_ci  'svga_swtnl_state.c',
77bf215546Sopenharmony_ci  'svga_tgsi.c',
78bf215546Sopenharmony_ci  'svga_tgsi_decl_sm30.c',
79bf215546Sopenharmony_ci  'svga_tgsi_insn.c',
80bf215546Sopenharmony_ci  'svga_tgsi_vgpu10.c',
81bf215546Sopenharmony_ci  'svgadump/svga_dump.c',
82bf215546Sopenharmony_ci  'svgadump/svga_shader_dump.c',
83bf215546Sopenharmony_ci  'svgadump/svga_shader_op.c',
84bf215546Sopenharmony_ci)
85bf215546Sopenharmony_ci
86bf215546Sopenharmony_cilibsvga = static_library(
87bf215546Sopenharmony_ci  'svga',
88bf215546Sopenharmony_ci  [files_svga, sha1_h],
89bf215546Sopenharmony_ci  c_args : [c_msvc_compat_args],
90bf215546Sopenharmony_ci  gnu_symbol_visibility : 'hidden',
91bf215546Sopenharmony_ci  include_directories : [
92bf215546Sopenharmony_ci    inc_src, inc_include, inc_gallium, inc_gallium_aux,
93bf215546Sopenharmony_ci    include_directories('include')
94bf215546Sopenharmony_ci  ],
95bf215546Sopenharmony_ci  dependencies : [idep_mesautil, idep_nir],
96bf215546Sopenharmony_ci)
97bf215546Sopenharmony_ci
98bf215546Sopenharmony_cisvga_deps = [libsvga]
99bf215546Sopenharmony_ciif not with_platform_windows
100bf215546Sopenharmony_ci  svga_deps += libsvgadrm
101bf215546Sopenharmony_ciendif
102bf215546Sopenharmony_ci
103bf215546Sopenharmony_cidriver_svga = declare_dependency(
104bf215546Sopenharmony_ci  compile_args : '-DGALLIUM_VMWGFX',
105bf215546Sopenharmony_ci  link_with : svga_deps,
106bf215546Sopenharmony_ci)
107