Lei YU | e065f61 | 2019-07-30 14:10:52 +0800 | [diff] [blame] | 1 | phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces') |
| 2 | phosphor_logging = dependency('phosphor-logging') |
| 3 | sdbusplus = dependency('sdbusplus') |
| 4 | |
Lei YU | 01539e7 | 2019-07-31 10:57:38 +0800 | [diff] [blame] | 5 | add_project_link_arguments(['-lstdc++fs'], language: 'cpp') |
| 6 | |
| 7 | cdata = configuration_data() |
| 8 | cdata.set_quoted('SOFTWARE_OBJPATH', '/xyz/openbmc_project/software') |
| 9 | cdata.set_quoted('VERSION_IFACE', 'xyz.openbmc_project.Software.Version') |
| 10 | cdata.set_quoted('FILEPATH_IFACE', 'xyz.openbmc_project.Common.FilePath') |
| 11 | cdata.set_quoted('BUSNAME_UPDATER', 'xyz.openbmc_project.Software.Psu.Updater') |
| 12 | cdata.set_quoted('MANIFEST_FILE', 'MANIFEST') |
Lei YU | 9102944 | 2019-08-01 15:57:31 +0800 | [diff] [blame^] | 13 | cdata.set_quoted('ACTIVATION_FWD_ASSOCIATION', 'inventory') |
| 14 | cdata.set_quoted('ACTIVATION_REV_ASSOCIATION', 'activation') |
| 15 | cdata.set_quoted('PSU_INVENTORY_PATH', '/xyz/openbmc_project/inventory/system/chassis') |
| 16 | cdata.set_quoted('ACTIVE_FWD_ASSOCIATION', 'active') |
| 17 | cdata.set_quoted('ACTIVE_REV_ASSOCIATION', 'software_version') |
| 18 | cdata.set_quoted('FUNCTIONAL_FWD_ASSOCIATION', 'functional') |
| 19 | cdata.set_quoted('FUNCTIONAL_REV_ASSOCIATION', 'software_version') |
Lei YU | 01539e7 | 2019-07-31 10:57:38 +0800 | [diff] [blame] | 20 | |
| 21 | configure_file(output: 'config.h', |
| 22 | configuration: cdata, |
| 23 | ) |
| 24 | configuration_inc = include_directories('.') |
| 25 | |
Lei YU | e065f61 | 2019-07-30 14:10:52 +0800 | [diff] [blame] | 26 | executable( |
| 27 | 'phosphor-psu-code-manager', |
| 28 | 'activation.cpp', |
Lei YU | 01539e7 | 2019-07-31 10:57:38 +0800 | [diff] [blame] | 29 | 'item_updater.cpp', |
Lei YU | e065f61 | 2019-07-30 14:10:52 +0800 | [diff] [blame] | 30 | 'main.cpp', |
Lei YU | 01539e7 | 2019-07-31 10:57:38 +0800 | [diff] [blame] | 31 | 'version.cpp', |
| 32 | include_directories: configuration_inc, |
Lei YU | e065f61 | 2019-07-30 14:10:52 +0800 | [diff] [blame] | 33 | dependencies: [ |
| 34 | phosphor_logging, |
| 35 | phosphor_dbus_interfaces, |
| 36 | sdbusplus, |
| 37 | ], |
| 38 | install: true, |
| 39 | install_dir: get_option('bindir')) |