Path: blob/21.2-virgl/src/freedreno/perfcntrs/meson.build
4565 views
# Copyright © 2018 Rob Clark12# 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.1920libfreedreno_perfcntrs_files = files(21'fd2_perfcntr.c',22'fd5_perfcntr.c',23'fd6_perfcntr.c',24'freedreno_dt.c',25'freedreno_dt.h',26'freedreno_perfcntr.c',27'freedreno_perfcntr.h',28)2930libfreedreno_perfcntrs = static_library(31'freedreno_perfcntrs',32[libfreedreno_perfcntrs_files, freedreno_xml_header_files],33include_directories : [inc_freedreno, inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],34c_args : [no_override_init_args],35gnu_symbol_visibility : 'hidden',36dependencies : idep_nir_headers,37build_by_default : false,38)3940dep_libconfig = dependency('libconfig', required : false)41dep_ncurses = dependency('ncurses', required : false)4243if dep_libconfig.found() and dep_ncurses.found()44fdperf = executable(45'fdperf',46['fdperf.c', freedreno_xml_header_files],47include_directories : [48inc_freedreno,49inc_include,50inc_src,51inc_mapi,52inc_mesa,53inc_gallium,54inc_gallium_aux,55],56link_with : [57libfreedreno_drm,58libfreedreno_perfcntrs,59],60dependencies : [61dep_libconfig,62dep_libdrm,63dep_ncurses,64idep_mesautil,65],66build_by_default : with_tools.contains('freedreno'),67install : with_tools.contains('freedreno'),68)69endif707172