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 21files_svga = files( 22 'svga_cmd.c', 23 'svga_cmd_vgpu10.c', 24 'svga_context.c', 25 'svga_draw_arrays.c', 26 'svga_draw.c', 27 'svga_draw_elements.c', 28 'svga_format.c', 29 'svga_image_view.c', 30 'svga_link.c', 31 'svga_pipe_blend.c', 32 'svga_pipe_blit.c', 33 'svga_pipe_clear.c', 34 'svga_pipe_constants.c', 35 'svga_pipe_cs.c', 36 'svga_pipe_depthstencil.c', 37 'svga_pipe_draw.c', 38 'svga_pipe_flush.c', 39 'svga_pipe_fs.c', 40 'svga_pipe_gs.c', 41 'svga_pipe_ts.c', 42 'svga_pipe_misc.c', 43 'svga_pipe_query.c', 44 'svga_pipe_rasterizer.c', 45 'svga_pipe_sampler.c', 46 'svga_pipe_streamout.c', 47 'svga_pipe_vertex.c', 48 'svga_pipe_vs.c', 49 'svga_resource_buffer.c', 50 'svga_resource_buffer_upload.c', 51 'svga_resource.c', 52 'svga_resource_texture.c', 53 'svga_sampler_view.c', 54 'svga_screen.c', 55 'svga_screen_cache.c', 56 'svga_shader.c', 57 'svga_shader_buffer.c', 58 'svga_state.c', 59 'svga_state_constants.c', 60 'svga_state_cs.c', 61 'svga_state_framebuffer.c', 62 'svga_state_fs.c', 63 'svga_state_gs.c', 64 'svga_state_ts.c', 65 'svga_state_need_swtnl.c', 66 'svga_state_rss.c', 67 'svga_state_sampler.c', 68 'svga_state_tgsi_transform.c', 69 'svga_state_tss.c', 70 'svga_state_uav.c', 71 'svga_state_vdecl.c', 72 'svga_state_vs.c', 73 'svga_surface.c', 74 'svga_swtnl_backend.c', 75 'svga_swtnl_draw.c', 76 'svga_swtnl_state.c', 77 'svga_tgsi.c', 78 'svga_tgsi_decl_sm30.c', 79 'svga_tgsi_insn.c', 80 'svga_tgsi_vgpu10.c', 81 'svgadump/svga_dump.c', 82 'svgadump/svga_shader_dump.c', 83 'svgadump/svga_shader_op.c', 84) 85 86libsvga = static_library( 87 'svga', 88 [files_svga, sha1_h], 89 c_args : [c_msvc_compat_args], 90 gnu_symbol_visibility : 'hidden', 91 include_directories : [ 92 inc_src, inc_include, inc_gallium, inc_gallium_aux, 93 include_directories('include') 94 ], 95 dependencies : [idep_mesautil, idep_nir], 96) 97 98svga_deps = [libsvga] 99if not with_platform_windows 100 svga_deps += libsvgadrm 101endif 102 103driver_svga = declare_dependency( 104 compile_args : '-DGALLIUM_VMWGFX', 105 link_with : svga_deps, 106) 107