blob: b13e53c2b2293f9d4acb1c976b6e5962e64ec1a3 [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(
18 pkgconfig: 'systemdsystemunitdir',
19 pkgconfig_define: ['prefix', get_option('prefix')])
20
21install_data(
22 'phosphor-bmc-side-switch.service',
23 install_dir: systemd_system_unit_dir)