Files
mesa/src/tool/pps/meson.build
T
Eric Engestrom c66622de3a meson: replace manual compiler flags with meson arguments
These would only have worked in GCC and Clang, which so far wasn't an
issue, but let's clean it up anyway.

Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18190>
2022-08-24 22:13:19 +00:00

62 lines
1.2 KiB
Meson

# Copyright © 2020-2021 Collabora, Ltd.
# Author: Antonio Caggiano <antonio.caggiano@collabora.com>
#
# SPDX-License-Identifier: MIT
pps_sources = [
'pps.cc',
'pps_device.cc',
'pps_driver.cc',
'pps_counter.cc',
]
include_pps = include_directories('../')
dep_drm = dependency('libdrm')
pps_deps = [dep_drm, dep_perfetto]
pps_deps += pps_datasources
lib_pps = static_library(
'pps',
sources: pps_sources,
include_directories: [include_pps, inc_src, pps_includes],
dependencies: pps_deps,
override_options: ['cpp_std=c++17'],
)
dep_pps = declare_dependency(
link_with: lib_pps,
include_directories: [include_pps, inc_src]
)
producer_sources = [
'pps_datasource.cc',
'pps_producer.cc'
]
executable(
'pps-producer',
sources: producer_sources,
include_directories: [include_pps, inc_src],
dependencies: [dep_pps, dep_perfetto],
override_options: ['cpp_std=c++17'],
install: true
)
config_sources = [
'pps_config.cc'
]
dep_docopt = dependency('docopt', required: false)
if dep_docopt.found()
executable(
'pps-config',
sources: config_sources,
include_directories: [include_pps, inc_src],
dependencies: [dep_pps, dep_docopt],
override_options: ['cpp_std=c++17'],
install: true
)
endif