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') |
| 13 | |
| 14 | configure_file(output: 'config.h', |
| 15 | configuration: cdata, |
| 16 | ) |
| 17 | configuration_inc = include_directories('.') |
| 18 | |
Lei YU | e065f61 | 2019-07-30 14:10:52 +0800 | [diff] [blame] | 19 | executable( |
| 20 | 'phosphor-psu-code-manager', |
| 21 | 'activation.cpp', |
Lei YU | 01539e7 | 2019-07-31 10:57:38 +0800 | [diff] [blame^] | 22 | 'item_updater.cpp', |
Lei YU | e065f61 | 2019-07-30 14:10:52 +0800 | [diff] [blame] | 23 | 'main.cpp', |
Lei YU | 01539e7 | 2019-07-31 10:57:38 +0800 | [diff] [blame^] | 24 | 'version.cpp', |
| 25 | include_directories: configuration_inc, |
Lei YU | e065f61 | 2019-07-30 14:10:52 +0800 | [diff] [blame] | 26 | dependencies: [ |
| 27 | phosphor_logging, |
| 28 | phosphor_dbus_interfaces, |
| 29 | sdbusplus, |
| 30 | ], |
| 31 | install: true, |
| 32 | install_dir: get_option('bindir')) |