Adedeji Adebisi | 12c5f11 | 2021-07-22 18:07:52 +0000 | [diff] [blame^] | 1 | # 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 | |
| 15 | project('dbus-top', 'cpp', |
| 16 | version: '0.1', |
| 17 | default_options: |
| 18 | [ |
| 19 | 'cpp_std=c++17', |
| 20 | ], |
| 21 | ) |
| 22 | |
| 23 | cmake = import('cmake') |
| 24 | fmt_proj = cmake.subproject('fmt') |
| 25 | fmt_dep = fmt_proj.dependency('fmt') |
| 26 | |
| 27 | bindir = get_option('prefix') / get_option('bindir') |
| 28 | executable('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 | ) |