blob: 9d6cbf0722462a792edab6335b85dd87e3c52904 [file] [log] [blame]
Andrew Geissler70d72f82022-03-23 13:15:05 -05001source = [
2 'side_switch.cpp',
Andrew Geissler03b30822022-03-24 11:04:40 -05003 '../utils.cpp',
Andrew Geissler70d72f82022-03-23 13:15:05 -05004 ]
5
6executable(
7 'phosphor-bmc-side-switch',
8 source,
Andrew Geissler03b30822022-03-24 11:04:40 -05009 include_directories: ['..'],
Andrew Geissler70d72f82022-03-23 13:15:05 -050010 dependencies: [
11 phosphor_logging_dep,
12 ],
13 install: true,
14 install_dir: get_option('bindir')
15)
Andrew Geissler119e5a22022-03-25 08:54:53 -050016
17systemd_system_unit_dir = dependency('systemd').get_variable(
Patrick Williamse80b5bc2023-04-12 08:01:05 -050018 'systemdsystemunitdir',
Andrew Geissler119e5a22022-03-25 08:54:53 -050019 pkgconfig_define: ['prefix', get_option('prefix')])
20
21install_data(
22 'phosphor-bmc-side-switch.service',
23 install_dir: systemd_system_unit_dir)