Path: blob/21.2-virgl/src/gallium/targets/d3dadapter9/meson.build
4565 views
# Copyright © 2017 Dylan Baker1# 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.2021# TODO: support non-static targets22# Static targets are always enabled in autotools (unless you modify23# configure.ac)2425nine_version = ['1', '0', '0']2627gallium_nine_c_args = []28gallium_nine_ld_args = []29gallium_nine_link_depends = []30gallium_nine_link_with = [31libgallium, libnine_st,32libpipe_loader_static, libws_null, libwsw, libswdri,33libswkmsdri,34]3536if with_ld_version_script37gallium_nine_ld_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'd3dadapter9.sym')]38gallium_nine_link_depends += files('d3dadapter9.sym')39endif4041if (with_gallium_va or with_gallium_vdpau or with_gallium_omx != 'disabled' or42with_gallium_xvmc or with_dri)43gallium_nine_link_with += libgalliumvl44else45gallium_nine_link_with += libgalliumvl_stub46endif4748libgallium_nine = shared_library(49'd3dadapter9',50files('description.c', 'getproc.c', 'drm.c'),51include_directories : [52inc_include, inc_src, inc_loader, inc_mapi, inc_mesa, inc_util,53inc_dri_common, inc_gallium, inc_gallium_aux, inc_gallium_winsys,54inc_gallium_drivers, inc_d3d9,55include_directories('../../frontends/nine'),56],57c_args : [gallium_nine_c_args],58gnu_symbol_visibility : 'hidden',59link_args : [ld_args_build_id, ld_args_gc_sections, gallium_nine_ld_args],60link_depends : gallium_nine_link_depends,61link_with : gallium_nine_link_with,62dependencies : [63dep_selinux, dep_libdrm, dep_llvm, dep_thread,64idep_xmlconfig, idep_mesautil, idep_nir,65driver_swrast, driver_r300, driver_r600, driver_radeonsi, driver_nouveau,66driver_i915, driver_svga, driver_iris, driver_crocus, driver_zink67],68name_prefix : '',69version : '.'.join(nine_version),70install : true,71install_dir : d3d_drivers_path,72)7374pkg.generate(75name : 'd3d',76description : 'Native D3D driver modules',77version : '.'.join(nine_version),78requires_private : 'libdrm >= ' + dep_libdrm.version(),79variables : ['moduledir=@0@'.format(d3d_drivers_path)],80)818283