• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2020 Collabora, Ltd.
2# Author: Antonio Caggiano <antonio.caggiano@collabora.com>
3# Author: Robert Beckett <bob.beckett@collabora.com>
4#
5# SPDX-License-Identifier: MIT
6
7pps_panfrost_sources = [
8  'pan_pps_perf.cc',
9  'pan_pps_driver.cc'
10]
11
12pps_panfrost_includes = [inc_include, inc_src, inc_tool]
13
14pps_panfrost_lib = static_library(
15  'pps-panfrost',
16  sources: pps_panfrost_sources,
17  include_directories: pps_panfrost_includes,
18  dependencies: [dep_libdrm, dep_perfetto, libpanfrost_dep, dep_panfrost_perf],
19  override_options: ['cpp_std=c++17']
20)
21
22compile_args_pps_panfrost = ['-DPPS_PANFROST']
23
24pps_panfrost_dep = declare_dependency(
25  link_with: pps_panfrost_lib,
26  include_directories: pps_panfrost_includes,
27  compile_args: compile_args_pps_panfrost
28)
29
30pps_datasources += pps_panfrost_dep
31if not with_datasources.contains('panfrost')
32  with_datasources += 'panfrost'
33endif
34