| 1 |
# Copyright © 2020 Collabora, Ltd. |
| 2 |
# Author: Antonio Caggiano <[email protected]> |
| 3 |
# Author: Robert Beckett <[email protected]> |
| 4 |
# SPDX-License-Identifier: MIT |
| 5 |
|
| 6 |
pps_panfrost_sources = [ |
| 7 |
'pan_pps_perf.cpp', |
| 8 |
'pan_pps_driver.cpp' |
| 9 |
] |
| 10 |
|
| 11 |
pps_panfrost_includes = [inc_include, inc_src, inc_tool] |
| 12 |
|
| 13 |
pps_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 |
|
| 20 |
compile_args_pps_panfrost = ['-DPPS_PANFROST'] |
| 21 |
|
| 22 |
pps_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 |
|
| 28 |
pps_datasources += pps_panfrost_dep |
| 29 |
if not with_datasources.contains('panfrost') |
| 30 |
with_datasources += 'panfrost' |
| 31 |
endif |