17ec681f3Smrg# Copyright © 2021 VMware, Inc 27ec681f3Smrg# Copyright © 2018 Intel Corporation 37ec681f3Smrg 47ec681f3Smrg# Permission is hereby granted, free of charge, to any person obtaining a copy 57ec681f3Smrg# of this software and associated documentation files (the "Software"), to deal 67ec681f3Smrg# in the Software without restriction, including without limitation the rights 77ec681f3Smrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 87ec681f3Smrg# copies of the Software, and to permit persons to whom the Software is 97ec681f3Smrg# furnished to do so, subject to the following conditions: 107ec681f3Smrg 117ec681f3Smrg# The above copyright notice and this permission notice shall be included in 127ec681f3Smrg# all copies or substantial portions of the Software. 137ec681f3Smrg 147ec681f3Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 157ec681f3Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 167ec681f3Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 177ec681f3Smrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 187ec681f3Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 197ec681f3Smrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 207ec681f3Smrg# SOFTWARE. 217ec681f3Smrg 227ec681f3Smrgd3d10sw_def = files('../../frontends/d3d10umd/d3d10_sw.def')[0] 237ec681f3Smrg_link_args_d3d10sw = [] 247ec681f3Smrgif cc.get_id() == 'gcc' 257ec681f3Smrg _link_args_d3d10sw += '-Wl,--enable-stdcall-fixup' 267ec681f3Smrgendif 277ec681f3Smrg 287ec681f3Smrglibd3d10sw = shared_library( 297ec681f3Smrg 'd3d10sw', 307ec681f3Smrg ['d3d10_gdi.c'], 317ec681f3Smrg vs_module_defs : d3d10sw_def, 327ec681f3Smrg include_directories : [ 337ec681f3Smrg inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_d3d10umd, inc_gallium_winsys, inc_gallium_winsys_sw, inc_gallium_drivers, 347ec681f3Smrg ], 357ec681f3Smrg link_args : _link_args_d3d10sw, 367ec681f3Smrg link_whole : [libd3d10umd], 377ec681f3Smrg link_with : [ 387ec681f3Smrg libgallium, libwsgdi 397ec681f3Smrg ], 407ec681f3Smrg dependencies : [ 417ec681f3Smrg dep_ws2_32, idep_nir, driver_swrast 427ec681f3Smrg ], 437ec681f3Smrg name_prefix : '', # otherwise mingw will create libd3d10sw.dll 447ec681f3Smrg install : true, 457ec681f3Smrg) 467ec681f3Smrg 477ec681f3Smrgif with_tests 487ec681f3Smrg test( 497ec681f3Smrg 'd3d10sw', 507ec681f3Smrg executable( 517ec681f3Smrg 'test_d3d10sw', 527ec681f3Smrg files('tests/tri.cpp'), 537ec681f3Smrg cpp_args : [cpp_msvc_compat_args], 547ec681f3Smrg dependencies : [cpp.find_library('d3d11')], 557ec681f3Smrg link_with : [libd3d10sw], 567ec681f3Smrg ), 577ec681f3Smrg suite : ['d3d10sw'], 587ec681f3Smrg ) 597ec681f3Smrgendif 60