Path: blob/21.2-virgl/src/gallium/targets/d3d10sw/meson.build
4565 views
# Copyright © 2021 VMware, Inc1# Copyright © 2018 Intel Corporation23# Permission is hereby granted, free of charge, to any person obtaining a copy4# of this software and associated documentation files (the "Software"), to deal5# in the Software without restriction, including without limitation the rights6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell7# copies of the Software, and to permit persons to whom the Software is8# furnished to do so, subject to the following conditions:910# The above copyright notice and this permission notice shall be included in11# all copies or substantial portions of the Software.1213# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17# 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 THE19# SOFTWARE.2021d3d10sw_def = files('../../frontends/d3d10umd/d3d10_sw.def')[0]22_link_args_d3d10sw = []23if cc.get_id() == 'gcc'24_link_args_d3d10sw += '-Wl,--enable-stdcall-fixup'25endif2627libd3d10sw = shared_library(28'd3d10sw',29['d3d10_gdi.c'],30vs_module_defs : d3d10sw_def,31include_directories : [32inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_d3d10umd, inc_gallium_winsys, inc_gallium_winsys_sw, inc_gallium_drivers,33],34link_args : _link_args_d3d10sw,35link_whole : [libd3d10umd],36link_with : [37libgallium, libwsgdi38],39dependencies : [40dep_ws2_32, idep_nir, driver_swrast41],42name_prefix : '', # otherwise mingw will create libd3d10sw.dll43install : true,44)4546if with_tests47test(48'd3d10sw',49executable(50'test_d3d10sw',51files('tests/tri.cpp'),52cpp_args : [cpp_msvc_compat_args],53dependencies : [cpp.find_library('d3d11')],54link_with : [libd3d10sw],55),56suite : ['d3d10sw'],57)58endif596061