| George Liu | c0fd1f8 | 2022-06-21 16:12:55 +0800 | [diff] [blame] | 1 | project( | 
|  | 2 | 'phosphor-dbus-monitor', 'cpp', | 
|  | 3 | version : '1.0.0', | 
| Patrick Williams | 5875d56 | 2023-07-12 11:15:16 -0500 | [diff] [blame^] | 4 | meson_version: '>=1.1.1', | 
| George Liu | c0fd1f8 | 2022-06-21 16:12:55 +0800 | [diff] [blame] | 5 | default_options: [ | 
|  | 6 | 'warning_level=3', | 
|  | 7 | 'werror=true', | 
| Patrick Williams | 5875d56 | 2023-07-12 11:15:16 -0500 | [diff] [blame^] | 8 | 'cpp_std=c++23', | 
| George Liu | c0fd1f8 | 2022-06-21 16:12:55 +0800 | [diff] [blame] | 9 | 'buildtype=debugoptimized', | 
|  | 10 | ] | 
|  | 11 | ) | 
|  | 12 |  | 
|  | 13 | conf_data = configuration_data() | 
|  | 14 | conf_data.set_quoted('OBJ_EVENT', '/xyz/openbmc_project/events') | 
|  | 15 | conf_data.set_quoted('BUSNAME_EVENT', 'xyz.openbmc_project.Events') | 
|  | 16 | conf_data.set_quoted('EVENTS_PERSIST_PATH', '/var/lib/phosphor-dbus-monitor/events') | 
|  | 17 |  | 
|  | 18 | conf_data.set('CLASS_VERSION', 1) | 
|  | 19 | conf_data.set('MAX_EVENTS', 20) | 
|  | 20 |  | 
|  | 21 | sdbusplus_dep = dependency('sdbusplus') | 
|  | 22 | sdeventplus_dep = dependency('sdeventplus') | 
|  | 23 | phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces') | 
|  | 24 | phosphor_logging_dep = dependency('phosphor-logging') | 
|  | 25 | phosphor_snmp_dep = dependency('phosphor-snmp') | 
|  | 26 |  | 
|  | 27 | prog_python = find_program('python3', required: true) | 
|  | 28 | realpath_prog = find_program('realpath') | 
|  | 29 |  | 
|  | 30 | configure_file(output: 'config.h', | 
|  | 31 | configuration: conf_data | 
|  | 32 | ) | 
|  | 33 |  | 
|  | 34 | subdir('src') | 
|  | 35 | subdir('mslverify') |