blob: b13e53c2b2293f9d4acb1c976b6e5962e64ec1a3 [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('bindir')
)
systemd_system_unit_dir = dependency('systemd').get_variable(
pkgconfig: 'systemdsystemunitdir',
pkgconfig_define: ['prefix', get_option('prefix')])
install_data(
'phosphor-bmc-side-switch.service',
install_dir: systemd_system_unit_dir)