blob: e04a4568e5fd75a7bb7d31a16111a53cdc2f961c [file] [log] [blame]
source = ['side_switch.cpp', '../utils.cpp']
executable(
'phosphor-bmc-side-switch',
source,
include_directories: ['..'],
dependencies: [phosphor_logging_dep],
install: true,
install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
)
systemd_system_unit_dir = dependency('systemd').get_variable(
'systemdsystemunitdir',
pkgconfig_define: ['prefix', get_option('prefix')],
)
install_data(
'phosphor-bmc-side-switch.service',
install_dir: systemd_system_unit_dir,
)