blob: 60d4641990c959d84a5c1cd789d95dbb535dc7c8 [file] [log] [blame]
Adedeji Adebisi12c5f112021-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',
17 default_options:
18 [
19 'cpp_std=c++17',
20 ],
21)
22
23cmake = import('cmake')
24fmt_proj = cmake.subproject('fmt')
25fmt_dep = fmt_proj.dependency('fmt')
26
27bindir = get_option('prefix') / get_option('bindir')
28executable('dbus-top',
29 [
30 'menu.cpp',
31 'analyzer.cpp',
32 'dbus_capture.cpp',
33 'sensorhelper.cpp',
34 'xmlparse.cpp',
35 'views.cpp',
36 'main.cpp',
37 ],
38 dependencies:
39 [
40 dependency('systemd'),
41 dependency('sdbusplus'),
42 dependency('ncurses'),
43 dependency('threads'),
44 fmt_dep
45 ],
46 install: true,
47 install_dir: bindir
48)