101e04c3fSmrg# Copyright © 2017 Broadcom 201e04c3fSmrg# 301e04c3fSmrg# Permission is hereby granted, free of charge, to any person obtaining a copy 401e04c3fSmrg# of this software and associated documentation files (the "Software"), to deal 501e04c3fSmrg# in the Software without restriction, including without limitation the rights 601e04c3fSmrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 701e04c3fSmrg# copies of the Software, and to permit persons to whom the Software is 801e04c3fSmrg# furnished to do so, subject to the following conditions: 901e04c3fSmrg# 1001e04c3fSmrg# The above copyright notice and this permission notice shall be included in 1101e04c3fSmrg# all copies or substantial portions of the Software. 1201e04c3fSmrg# 1301e04c3fSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1401e04c3fSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1501e04c3fSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1601e04c3fSmrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1701e04c3fSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1801e04c3fSmrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1901e04c3fSmrg# SOFTWARE. 2001e04c3fSmrg 2101e04c3fSmrglibbroadcom_compiler_files = files( 2201e04c3fSmrg 'nir_to_vir.c', 2301e04c3fSmrg 'vir.c', 2401e04c3fSmrg 'vir_dump.c', 2501e04c3fSmrg 'vir_live_variables.c', 267ec681f3Smrg 'vir_opt_constant_alu.c', 2701e04c3fSmrg 'vir_opt_copy_propagate.c', 2801e04c3fSmrg 'vir_opt_dead_code.c', 29ed98bd31Smaya 'vir_opt_redundant_flags.c', 3001e04c3fSmrg 'vir_opt_small_immediates.c', 3101e04c3fSmrg 'vir_register_allocate.c', 3201e04c3fSmrg 'vir_to_qpu.c', 3301e04c3fSmrg 'qpu_schedule.c', 3401e04c3fSmrg 'qpu_validate.c', 3501e04c3fSmrg 'v3d33_tex.c', 3601e04c3fSmrg 'v3d40_tex.c', 3701e04c3fSmrg 'v3d33_vpm_setup.c', 3801e04c3fSmrg 'v3d_compiler.h', 3901e04c3fSmrg 'v3d_nir_lower_io.c', 40ed98bd31Smaya 'v3d_nir_lower_image_load_store.c', 417ec681f3Smrg 'v3d_nir_lower_line_smooth.c', 427ec681f3Smrg 'v3d_nir_lower_logic_ops.c', 437ec681f3Smrg 'v3d_nir_lower_robust_buffer_access.c', 44ed98bd31Smaya 'v3d_nir_lower_scratch.c', 4501e04c3fSmrg 'v3d_nir_lower_txf_ms.c', 4601e04c3fSmrg) 4701e04c3fSmrg 4801e04c3fSmrglibbroadcom_compiler = static_library( 4901e04c3fSmrg ['broadcom_compiler', v3d_xml_pack], 5001e04c3fSmrg libbroadcom_compiler_files, 517ec681f3Smrg include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom], 527ec681f3Smrg c_args : [no_override_init_args], 537ec681f3Smrg gnu_symbol_visibility : 'hidden', 5401e04c3fSmrg dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers], 5501e04c3fSmrg build_by_default : false, 5601e04c3fSmrg) 5701e04c3fSmrg 5801e04c3fSmrgv3d_libs += libbroadcom_compiler 59