1# Copyright © 2020 Google, Inc 2# SPDX-License-Identifier: MIT 3 4computerator_files = [ 5 'a4xx.cc', 6 'a6xx.cc', 7 'ir3_asm.cc', 8 'main.cc', 9 freedreno_xml_header_files, 10 ir3_parser[1], 11] 12 13computerator_cpp_args = cpp.get_supported_arguments([ 14 '-Wno-sign-compare', 15 '-Wno-array-bounds', 16]) 17 18if meson.is_cross_build() 19 computerator_cpp_args += '-Wno-array-bounds' 20endif 21 22computerator = executable( 23 'computerator', 24 computerator_files, 25 include_directories : [ 26 inc_freedreno, 27 inc_include, 28 inc_src, 29 ], 30 link_with : [ 31 libfreedreno_drm, 32 libfreedreno_ir3, 33 libfreedreno_perfcntrs, 34 libfreedreno_common, 35 ], 36 dependencies : [ 37 dep_libdrm, 38 idep_mesautil, 39 # We don't actually use nir, but ir3 wants some nir headers: 40 idep_nir, 41 ], 42 cpp_args : [computerator_cpp_args], 43 build_by_default : with_tools.contains('freedreno'), 44 install : with_tools.contains('freedreno'), 45) 46