xref: /openbmc/phosphor-bmc-code-mgmt/eeprom-device/meson.build (revision a7bf31b49d89eeacf1085d43cf083dfe9fbab071)
1eeprom_device_version_src = files(
2    'eeprom_device_version.cpp',
3    'pt5161l/pt5161l.cpp',
4)
5
6eeprom_device_include = include_directories('.')
7
8executable(
9    'phosphor-eepromdevice-software-update',
10    'eeprom_device_software_manager.cpp',
11    'eeprom_device.cpp',
12    eeprom_device_version_src,
13    include_directories: [common_include, eeprom_device_include],
14    dependencies: [sdbusplus_dep, phosphor_logging_dep, libgpiod_dep],
15    link_with: [software_common_lib, libpldmutil],
16    install: true,
17    install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
18)
19
20systemd_system_unit_dir = dependency('systemd').get_variable(
21    'systemd_system_unit_dir',
22    pkgconfig_define: ['prefix', get_option('prefix')],
23)
24
25install_data(
26    'xyz.openbmc_project.Software.EEPROMDevice.service',
27    install_dir: systemd_system_unit_dir,
28)
29