blob: c3c04e576602c0b1bc57ca5482b9c9ac3480c94d [file] [log] [blame]
phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces')
phosphor_logging = dependency('phosphor-logging')
sdbusplus = dependency('sdbusplus')
add_project_link_arguments(['-lstdc++fs'], language: 'cpp')
cdata = configuration_data()
cdata.set_quoted('SOFTWARE_OBJPATH', '/xyz/openbmc_project/software')
cdata.set_quoted('VERSION_IFACE', 'xyz.openbmc_project.Software.Version')
cdata.set_quoted('FILEPATH_IFACE', 'xyz.openbmc_project.Common.FilePath')
cdata.set_quoted('BUSNAME_UPDATER', 'xyz.openbmc_project.Software.Psu.Updater')
cdata.set_quoted('MANIFEST_FILE', 'MANIFEST')
cdata.set_quoted('ACTIVATION_FWD_ASSOCIATION', 'inventory')
cdata.set_quoted('ACTIVATION_REV_ASSOCIATION', 'activation')
cdata.set_quoted('PSU_INVENTORY_PATH', '/xyz/openbmc_project/inventory/system/chassis')
cdata.set_quoted('ACTIVE_FWD_ASSOCIATION', 'active')
cdata.set_quoted('ACTIVE_REV_ASSOCIATION', 'software_version')
cdata.set_quoted('FUNCTIONAL_FWD_ASSOCIATION', 'functional')
cdata.set_quoted('FUNCTIONAL_REV_ASSOCIATION', 'software_version')
configure_file(output: 'config.h',
configuration: cdata,
)
configuration_inc = include_directories('.')
executable(
'phosphor-psu-code-manager',
'activation.cpp',
'item_updater.cpp',
'main.cpp',
'version.cpp',
include_directories: configuration_inc,
dependencies: [
phosphor_logging,
phosphor_dbus_interfaces,
sdbusplus,
],
install: true,
install_dir: get_option('bindir'))