blob: 6b5b6a49755b7296e6bb4c1986b0396dde48ba21 [file] [log] [blame]
William A. Kennington III0b3c3892021-04-20 16:00:55 -07001project(
2 'phosphor-watchdog',
3 'cpp',
4 version: '0.1',
5 meson_version: '>=0.49.0',
6 default_options: [
7 'warning_level=3',
8 'werror=true',
9 'cpp_std=c++17',
10 ])
William A. Kennington IIIb9337712019-01-15 18:27:13 -080011
12phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces')
13phosphor_logging = dependency('phosphor-logging')
14sdbusplus = dependency('sdbusplus')
15sdeventplus = dependency('sdeventplus')
16
17libwatchdog = static_library(
18 'watchdog',
19 'watchdog.cpp',
20 implicit_include_directories: false,
21 dependencies: [
22 phosphor_dbus_interfaces,
23 phosphor_logging,
24 sdbusplus,
25 sdeventplus,
26 ])
27
28executable(
29 'phosphor-watchdog',
30 'mainapp.cpp',
31 implicit_include_directories: false,
32 link_with: libwatchdog,
33 dependencies: [
34 phosphor_logging,
35 phosphor_dbus_interfaces,
36 sdbusplus,
37 sdeventplus,
38 ],
39 install: true,
Patrick Venture8c8072a2019-03-28 10:50:21 -070040 install_dir: get_option('bindir'))
William A. Kennington IIIb9337712019-01-15 18:27:13 -080041
William A. Kennington III0b3c3892021-04-20 16:00:55 -070042if not get_option('tests').disabled()
William A. Kennington IIIb9337712019-01-15 18:27:13 -080043 subdir('test')
44endif