Path: blob/21.2-virgl/src/microsoft/compiler/meson.build
4564 views
# Copyright © Microsoft Corporation12# Permission is hereby granted, free of charge, to any person obtaining a3# copy of this software and associated documentation files (the "Software"),4# to deal in the Software without restriction, including without limitation5# the rights to use, copy, modify, merge, publish, distribute, sublicense,6# and/or sell copies of the Software, and to permit persons to whom the7# Software is furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice (including the next10# paragraph) shall be included in all copies or substantial portions of the11# 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 SHALL16# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING18# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS19# IN THE SOFTWARE.2021files_libdxil_compiler = files(22'dxil_buffer.c',23'dxil_container.c',24'dxil_dump.c',25'dxil_enums.c',26'dxil_function.c',27'dxil_module.c',28'dxil_nir.c',29'dxil_nir_lower_int_samplers.c',30'dxil_signature.c',31'nir_to_dxil.c',32)3334dxil_nir_algebraic_c = custom_target(35'dxil_nir_algebraic.c',36input : 'dxil_nir_algebraic.py',37output : 'dxil_nir_algebraic.c',38command : [39prog_python, '@INPUT@',40'-p', join_paths(meson.source_root(), 'src/compiler/nir/'),41],42capture : true,43depend_files : nir_algebraic_py,44)4546libdxil_compiler = static_library(47'dxil_compiler',48[files_libdxil_compiler, dxil_nir_algebraic_c, sha1_h],49include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_compiler, inc_gallium],50dependencies: [idep_nir_headers],51gnu_symbol_visibility : 'hidden',52)5354idep_libdxil_compiler = declare_dependency(55link_with : libdxil_compiler,56dependencies : [idep_mesautil],57include_directories : include_directories('.')58)5960if with_tests61test(62'dxil_buffer',63executable(64'dxil_buffer_test',65files('dxil_buffer_test.c'),66include_directories : [inc_src],67dependencies : [idep_libdxil_compiler]68),69suite: 'd3d12'70)71endif727374