101e04c3fSmrg# Copyright © 2017 Intel Corporation
201e04c3fSmrg
301e04c3fSmrg# Permission is hereby granted, free of charge, to any person obtaining a copy
401e04c3fSmrg# of this software and associated documentation files (the "Software"), to deal
501e04c3fSmrg# in the Software without restriction, including without limitation the rights
601e04c3fSmrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
701e04c3fSmrg# copies of the Software, and to permit persons to whom the Software is
801e04c3fSmrg# furnished to do so, subject to the following conditions:
901e04c3fSmrg
1001e04c3fSmrg# The above copyright notice and this permission notice shall be included in
1101e04c3fSmrg# all copies or substantial portions of the Software.
1201e04c3fSmrg
1301e04c3fSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1401e04c3fSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1501e04c3fSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1601e04c3fSmrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1701e04c3fSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1801e04c3fSmrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1901e04c3fSmrg# SOFTWARE.
2001e04c3fSmrg
2101e04c3fSmrgfiles_svga = files(
2201e04c3fSmrg  'svga_cmd.c',
2301e04c3fSmrg  'svga_cmd_vgpu10.c',
2401e04c3fSmrg  'svga_context.c',
2501e04c3fSmrg  'svga_draw_arrays.c',
2601e04c3fSmrg  'svga_draw.c',
2701e04c3fSmrg  'svga_draw_elements.c',
2801e04c3fSmrg  'svga_format.c',
2901e04c3fSmrg  'svga_link.c',
3001e04c3fSmrg  'svga_pipe_blend.c',
3101e04c3fSmrg  'svga_pipe_blit.c',
3201e04c3fSmrg  'svga_pipe_clear.c',
3301e04c3fSmrg  'svga_pipe_constants.c',
3401e04c3fSmrg  'svga_pipe_depthstencil.c',
3501e04c3fSmrg  'svga_pipe_draw.c',
3601e04c3fSmrg  'svga_pipe_flush.c',
3701e04c3fSmrg  'svga_pipe_fs.c',
3801e04c3fSmrg  'svga_pipe_gs.c',
397ec681f3Smrg  'svga_pipe_ts.c',
4001e04c3fSmrg  'svga_pipe_misc.c',
4101e04c3fSmrg  'svga_pipe_query.c',
4201e04c3fSmrg  'svga_pipe_rasterizer.c',
4301e04c3fSmrg  'svga_pipe_sampler.c',
4401e04c3fSmrg  'svga_pipe_streamout.c',
4501e04c3fSmrg  'svga_pipe_vertex.c',
4601e04c3fSmrg  'svga_pipe_vs.c',
4701e04c3fSmrg  'svga_resource_buffer.c',
4801e04c3fSmrg  'svga_resource_buffer_upload.c',
4901e04c3fSmrg  'svga_resource.c',
5001e04c3fSmrg  'svga_resource_texture.c',
5101e04c3fSmrg  'svga_sampler_view.c',
5201e04c3fSmrg  'svga_screen.c',
5301e04c3fSmrg  'svga_screen_cache.c',
5401e04c3fSmrg  'svga_shader.c',
5501e04c3fSmrg  'svga_state.c',
5601e04c3fSmrg  'svga_state_constants.c',
5701e04c3fSmrg  'svga_state_framebuffer.c',
5801e04c3fSmrg  'svga_state_fs.c',
5901e04c3fSmrg  'svga_state_gs.c',
607ec681f3Smrg  'svga_state_ts.c',
6101e04c3fSmrg  'svga_state_need_swtnl.c',
6201e04c3fSmrg  'svga_state_rss.c',
6301e04c3fSmrg  'svga_state_sampler.c',
6401e04c3fSmrg  'svga_state_tgsi_transform.c',
6501e04c3fSmrg  'svga_state_tss.c',
6601e04c3fSmrg  'svga_state_vdecl.c',
6701e04c3fSmrg  'svga_state_vs.c',
6801e04c3fSmrg  'svga_surface.c',
6901e04c3fSmrg  'svga_swtnl_backend.c',
7001e04c3fSmrg  'svga_swtnl_draw.c',
7101e04c3fSmrg  'svga_swtnl_state.c',
7201e04c3fSmrg  'svga_tgsi.c',
7301e04c3fSmrg  'svga_tgsi_decl_sm30.c',
7401e04c3fSmrg  'svga_tgsi_insn.c',
7501e04c3fSmrg  'svga_tgsi_vgpu10.c',
7601e04c3fSmrg  'svgadump/svga_dump.c',
7701e04c3fSmrg  'svgadump/svga_shader_dump.c',
7801e04c3fSmrg  'svgadump/svga_shader_op.c',
7901e04c3fSmrg)
8001e04c3fSmrg
8101e04c3fSmrglibsvga = static_library(
8201e04c3fSmrg  'svga',
8301e04c3fSmrg  [files_svga, sha1_h],
847ec681f3Smrg  c_args : [c_msvc_compat_args],
857ec681f3Smrg  gnu_symbol_visibility : 'hidden',
8601e04c3fSmrg  include_directories : [
8701e04c3fSmrg    inc_src, inc_include, inc_gallium, inc_gallium_aux,
8801e04c3fSmrg    include_directories('include')
8901e04c3fSmrg  ],
907ec681f3Smrg  dependencies : idep_mesautil,
9101e04c3fSmrg)
9201e04c3fSmrg
937ec681f3Smrgsvga_deps = [libsvga]
947ec681f3Smrgif not with_platform_windows
957ec681f3Smrg  svga_deps += libsvgadrm
967ec681f3Smrgendif
977ec681f3Smrg
9801e04c3fSmrgdriver_svga = declare_dependency(
9901e04c3fSmrg  compile_args : '-DGALLIUM_VMWGFX',
1007ec681f3Smrg  link_with : svga_deps,
10101e04c3fSmrg)
102