blob: eda0796244afb319b3a7cd9ab244a2d04b3d3220 [file] [log] [blame]
Adedeji Adebisi684ec912021-07-22 18:07:52 +00001# Copyright 2021 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15project('dbus-top', 'cpp',
16 version: '0.1',
kuiyinge2dead42023-03-14 10:53:55 +080017 default_options:
Adedeji Adebisi684ec912021-07-22 18:07:52 +000018 [
19 'cpp_std=c++17',
20 ],
21)
22
Adedeji Adebisi684ec912021-07-22 18:07:52 +000023bindir = get_option('prefix') / get_option('bindir')
24executable('dbus-top',
25 [
26 'menu.cpp',
27 'analyzer.cpp',
28 'dbus_capture.cpp',
29 'sensorhelper.cpp',
30 'xmlparse.cpp',
31 'views.cpp',
32 'main.cpp',
33 ],
34 dependencies:
35 [
36 dependency('systemd'),
37 dependency('sdbusplus'),
38 dependency('ncurses'),
39 dependency('threads'),
kuiyinge2dead42023-03-14 10:53:55 +080040 dependency('fmt')
Adedeji Adebisi684ec912021-07-22 18:07:52 +000041 ],
42 install: true,
43 install_dir: bindir
44)