blob: 828c13179514b875c0071baffefe097bdabbc6d3 [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 [
Patrick Williams27fa97e2023-07-13 17:50:02 -050019 'cpp_std=c++23',
Adedeji Adebisi684ec912021-07-22 18:07:52 +000020 ],
Patrick Williams27fa97e2023-07-13 17:50:02 -050021 meson_version: '>=1.1.1',
Adedeji Adebisi684ec912021-07-22 18:07:52 +000022)
23
Adedeji Adebisi684ec912021-07-22 18:07:52 +000024bindir = get_option('prefix') / get_option('bindir')
25executable('dbus-top',
26 [
27 'menu.cpp',
28 'analyzer.cpp',
29 'dbus_capture.cpp',
30 'sensorhelper.cpp',
31 'xmlparse.cpp',
32 'views.cpp',
33 'main.cpp',
34 ],
35 dependencies:
36 [
37 dependency('systemd'),
38 dependency('sdbusplus'),
39 dependency('ncurses'),
40 dependency('threads'),
Adedeji Adebisi684ec912021-07-22 18:07:52 +000041 ],
42 install: true,
43 install_dir: bindir
44)