1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# 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
|