meson.build revision 361fc4cb
1361fc4cbSmaya# Copyright © 2018 Rob Clark 2361fc4cbSmaya 3361fc4cbSmaya# Permission is hereby granted, free of charge, to any person obtaining a copy 4361fc4cbSmaya# of this software and associated documentation files (the "Software"), to deal 5361fc4cbSmaya# in the Software without restriction, including without limitation the rights 6361fc4cbSmaya# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7361fc4cbSmaya# copies of the Software, and to permit persons to whom the Software is 8361fc4cbSmaya# furnished to do so, subject to the following conditions: 9361fc4cbSmaya 10361fc4cbSmaya# The above copyright notice and this permission notice shall be included in 11361fc4cbSmaya# all copies or substantial portions of the Software. 12361fc4cbSmaya 13361fc4cbSmaya# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14361fc4cbSmaya# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15361fc4cbSmaya# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16361fc4cbSmaya# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17361fc4cbSmaya# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18361fc4cbSmaya# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19361fc4cbSmaya# SOFTWARE. 20361fc4cbSmaya 21361fc4cbSmayair3_nir_trig_c = custom_target( 22361fc4cbSmaya 'ir3_nir_trig.c', 23361fc4cbSmaya input : 'ir3_nir_trig.py', 24361fc4cbSmaya output : 'ir3_nir_trig.c', 25361fc4cbSmaya command : [ 26361fc4cbSmaya prog_python, '@INPUT@', 27361fc4cbSmaya '-p', join_paths(meson.source_root(), 'src/compiler/nir/'), 28361fc4cbSmaya ], 29361fc4cbSmaya capture : true, 30361fc4cbSmaya depend_files : nir_algebraic_py, 31361fc4cbSmaya) 32361fc4cbSmaya 33361fc4cbSmayalibfreedreno_ir3_files = files( 34361fc4cbSmaya 'disasm-a3xx.c', 35361fc4cbSmaya 'instr-a3xx.h', 36361fc4cbSmaya 'ir3.c', 37361fc4cbSmaya 'ir3_a4xx.c', 38361fc4cbSmaya 'ir3_a6xx.c', 39361fc4cbSmaya 'ir3_compiler_nir.c', 40361fc4cbSmaya 'ir3_compiler.c', 41361fc4cbSmaya 'ir3_compiler.h', 42361fc4cbSmaya 'ir3_context.c', 43361fc4cbSmaya 'ir3_context.h', 44361fc4cbSmaya 'ir3_cp.c', 45361fc4cbSmaya 'ir3_depth.c', 46361fc4cbSmaya 'ir3_group.c', 47361fc4cbSmaya 'ir3_image.c', 48361fc4cbSmaya 'ir3_image.h', 49361fc4cbSmaya 'ir3.h', 50361fc4cbSmaya 'ir3_legalize.c', 51361fc4cbSmaya 'ir3_nir.c', 52361fc4cbSmaya 'ir3_nir.h', 53361fc4cbSmaya 'ir3_nir_analyze_ubo_ranges.c', 54361fc4cbSmaya 'ir3_nir_lower_load_barycentric_at_sample.c', 55361fc4cbSmaya 'ir3_nir_lower_load_barycentric_at_offset.c', 56361fc4cbSmaya 'ir3_nir_lower_io_offsets.c', 57361fc4cbSmaya 'ir3_nir_lower_tg4_to_tex.c', 58361fc4cbSmaya 'ir3_nir_move_varying_inputs.c', 59361fc4cbSmaya 'ir3_print.c', 60361fc4cbSmaya 'ir3_ra.c', 61361fc4cbSmaya 'ir3_sched.c', 62361fc4cbSmaya 'ir3_shader.c', 63361fc4cbSmaya 'ir3_shader.h', 64361fc4cbSmaya 'ir3_sun.c', 65361fc4cbSmaya) 66361fc4cbSmaya 67361fc4cbSmayalibfreedreno_ir3 = static_library( 68361fc4cbSmaya 'freedreno_ir3', 69361fc4cbSmaya [libfreedreno_ir3_files, ir3_nir_trig_c], 70361fc4cbSmaya include_directories : [inc_freedreno, inc_common], 71361fc4cbSmaya c_args : [c_vis_args, no_override_init_args], 72361fc4cbSmaya cpp_args : [cpp_vis_args], 73361fc4cbSmaya dependencies : idep_nir_headers, 74361fc4cbSmaya build_by_default : false, 75361fc4cbSmaya) 76361fc4cbSmaya 77