blob: fe36320f174350a23420a85a30f6a5d197e5bc30 [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
Patrick Williamse94afae2025-02-01 08:38:39 -050015project(
16 'dbus-top',
17 'cpp',
Adedeji Adebisi684ec912021-07-22 18:07:52 +000018 version: '0.1',
Patrick Williamse94afae2025-02-01 08:38:39 -050019 default_options: ['cpp_std=c++23'],
Patrick Williams27fa97e2023-07-13 17:50:02 -050020 meson_version: '>=1.1.1',
Adedeji Adebisi684ec912021-07-22 18:07:52 +000021)
22
Adedeji Adebisi684ec912021-07-22 18:07:52 +000023bindir = get_option('prefix') / get_option('bindir')
Patrick Williamse94afae2025-02-01 08:38:39 -050024executable(
25 'dbus-top',
Adedeji Adebisi684ec912021-07-22 18:07:52 +000026 [
27 'menu.cpp',
28 'analyzer.cpp',
29 'dbus_capture.cpp',
30 'sensorhelper.cpp',
31 'xmlparse.cpp',
32 'views.cpp',
33 'main.cpp',
34 ],
Patrick Williamse94afae2025-02-01 08:38:39 -050035 dependencies: [
Patrick Williamse74a7882024-09-03 16:02:36 -040036 dependency('libsystemd'),
Adedeji Adebisi684ec912021-07-22 18:07:52 +000037 dependency('sdbusplus'),
38 dependency('ncurses'),
39 dependency('threads'),
Adedeji Adebisi684ec912021-07-22 18:07:52 +000040 ],
41 install: true,
Patrick Williamse94afae2025-02-01 08:38:39 -050042 install_dir: bindir,
Adedeji Adebisi684ec912021-07-22 18:07:52 +000043)