Path: blob/21.2-virgl/src/panfrost/perf/meson.build
4560 views
# Copyright © 2021 Collabora, Ltd.1# Author: Antonio Caggiano <[email protected]>23# Permission is hereby granted, free of charge, to any person obtaining a copy4# of this software and associated documentation files (the "Software"), to deal5# in the Software without restriction, including without limitation the rights6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell7# copies of the Software, and to permit persons to whom the Software is8# furnished to do so, subject to the following conditions:910# The above copyright notice and this permission notice shall be included in11# all copies or substantial portions of the Software.1213# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN19# THE SOFTWARE.2021pan_hw_metrics = [22'G31', 'G51', 'G52', 'G57', 'G68', 'G71', 'G72', 'G76', 'G77',23'G78', 'T72x', 'T76x', 'T82x', 'T83x', 'T86x', 'T88x',24]2526pan_hw_metrics_xml_files = []27foreach hw : pan_hw_metrics28pan_hw_metrics_xml_files += '@[email protected]'.format(hw)29endforeach3031pan_perf_sources = [32'pan_perf.c',33]3435pan_perf_sources += custom_target(36'pan-perf-sources',37input : pan_hw_metrics_xml_files,38output : [ 'pan_perf_metrics.c', 'pan_perf_metrics.h' ],39command : [40prog_python, files('pan_gen_perf.py'),41'--code', '@OUTPUT0@', '--header', '@OUTPUT1@',42'@INPUT@',43],44)4546libpanfrost_perf = static_library(47'panfrost_perf',48pan_perf_sources,49include_directories : [inc_include, inc_src, inc_panfrost],50dependencies: libpanfrost_dep51)5253dep_panfrost_perf = declare_dependency(54link_with: libpanfrost_perf,55include_directories: [inc_panfrost, inc_src, inc_include]56)5758panfrost_quick = executable(59'panquick',60'quick.c',61include_directories : [62inc_mapi,63inc_mesa,64inc_gallium,65inc_gallium_aux,66inc_include,67inc_src,68inc_panfrost,69inc_panfrost_hw,70],71dependencies : [72dep_libdrm,73libpanfrost_dep,74dep_panfrost_perf,75],76build_by_default : with_tools.contains('panfrost')77)787980