Path: blob/21.2-virgl/src/gallium/drivers/swr/rasterizer/jitter/meson.build
4574 views
# Copyright © 2017-2018 Intel Corporation12# Permission is hereby granted, free of charge, to any person obtaining a copy3# of this software and associated documentation files (the "Software"), to deal4# in the Software without restriction, including without limitation the rights5# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6# copies of the Software, and to permit persons to whom the Software is7# furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE18# SOFTWARE.1920if dep_llvm.type_name() == 'internal'21_irbuilder_h = subproject('llvm').get_variable('irbuilder_h')22else23_llvm_includedir = dep_llvm.get_variable(configtool : 'includedir', cmake : 'LLVM_INCLUDE_DIR')24_irbuilder_h = join_paths(_llvm_includedir, 'llvm', 'IR', 'IRBuilder.h')25endif2627gen_builder_hpp = custom_target(28'gen_builder.hpp',29input : [30swr_gen_llvm_ir_macros_py, _irbuilder_h,31],32output : 'gen_builder.hpp',33command : [34prog_python, '@INPUT0@', '--input', '@INPUT1@', '--output', '@OUTPUT@',35'--gen_h', '--output-dir', '@OUTDIR@'36],37depend_files : swr_gen_builder_depends,38build_by_default : true,39)4041gen_builder_meta_hpp = custom_target(42'gen_builder_meta.hpp',43input : '../codegen/gen_llvm_ir_macros.py',44output : 'gen_builder_meta.hpp',45command : [46prog_python, '@INPUT0@', '--gen_meta_h', '--output', '@OUTPUT@',47'--output-dir', '@OUTDIR@'48],49depend_files : swr_gen_builder_depends,50)5152gen_builder_intrin_hpp = custom_target(53'gen_builder_intrin.hpp',54input : '../codegen/gen_llvm_ir_macros.py',55output : 'gen_builder_intrin.hpp',56command : [57prog_python, '@INPUT0@', '--gen_intrin_h', '--output', '@OUTPUT@',58'--output-dir', '@OUTDIR@'59],60depend_files : swr_gen_builder_depends,61)62636465