xref: /aosp_15_r20/external/mesa3d/src/panfrost/ds/meson.build (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1# Copyright © 2020 Collabora, Ltd.
2# Author: Antonio Caggiano <[email protected]>
3# Author: Robert Beckett <[email protected]>
4# SPDX-License-Identifier: MIT
5
6pps_panfrost_sources = [
7  'pan_pps_perf.cpp',
8  'pan_pps_driver.cpp'
9]
10
11pps_panfrost_includes = [inc_include, inc_src, inc_tool]
12
13pps_panfrost_lib = static_library(
14  'pps-panfrost',
15  sources: pps_panfrost_sources,
16  include_directories: pps_panfrost_includes,
17  dependencies: [dep_libdrm, dep_perfetto, libpanfrost_dep, dep_panfrost_perf],
18)
19
20compile_args_pps_panfrost = ['-DPPS_PANFROST']
21
22pps_panfrost_dep = declare_dependency(
23  link_with: pps_panfrost_lib,
24  include_directories: pps_panfrost_includes,
25  compile_args: compile_args_pps_panfrost
26)
27
28pps_datasources += pps_panfrost_dep
29if not with_datasources.contains('panfrost')
30  with_datasources += 'panfrost'
31endif
32