Path: blob/21.2-virgl/src/gallium/drivers/swr/rasterizer/codegen/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.1920gen_knobs_cpp = custom_target(21'gen_knobs.cpp',22input : ['gen_knobs.py'],23output : 'gen_knobs.cpp',24command : [prog_python, '@INPUT0@', '--output', '@OUTPUT@', '--gen_cpp'],25depend_files : files(26'knob_defs.py', 'gen_common.py',27'templates/gen_knobs.cpp',28),29)3031gen_knobs_h = custom_target(32'gen_knobs.h',33input : ['gen_knobs.py'],34output : 'gen_knobs.h',35command : [prog_python, '@INPUT0@', '--output', '@OUTPUT@', '--gen_h'],36depend_files : files(37'knob_defs.py', 'gen_common.py',38'templates/gen_knobs.h',39),40)414243# The generators above this are needed individually, while the below generators44# are all inputs to the same lib, so they don't need unique names.45files_swr_common += [46gen_builder_hpp, gen_builder_meta_hpp, gen_knobs_h, gen_knobs_cpp47]4849foreach x : [[swr_context_files, 'gen_swr_context_llvm.h'],50[swr_state_files, 'gen_state_llvm.h'],51[swr_surf_state_files, 'gen_surf_state_llvm.h']]52files_swr_common += custom_target(53x[1],54input : ['gen_llvm_types.py', x[0]],55output : x[1],56command : [prog_python, '@INPUT0@', '--input', '@INPUT1@', '--output', '@OUTPUT@'],57depend_files : files(58'templates/gen_llvm.hpp',59'gen_common.py',60),61)62endforeach6364ar_output_filenames = ['gen_ar_event.hpp', 'gen_ar_event.cpp', 'gen_ar_eventhandler.hpp', 'gen_ar_eventhandlerfile.hpp']65ar_template_filenames = []66foreach fname : ar_output_filenames67ar_template_filenames += join_paths('templates', fname)68endforeach6970files_swr_common += custom_target(71'gen_archrast',72input : ['gen_archrast.py', swr_event_proto_files, swr_event_pproto_files],73output : ar_output_filenames,74command : [prog_python, '@INPUT0@', '--proto', '@INPUT1@', '@INPUT2@', '--output-dir', meson.current_build_dir()],75depend_files : files('gen_common.py', ar_template_filenames)76)777879