xref: /openbmc/phosphor-bmc-code-mgmt/bmc/side-switch/meson.build (revision cab87e9cdeeb3e166d6d577511f6be4dc7721aca)
1*cab87e9cSJagpal Singh Gillsource = [
2*cab87e9cSJagpal Singh Gill    'side_switch.cpp',
3*cab87e9cSJagpal Singh Gill    '../utils.cpp',
4*cab87e9cSJagpal Singh Gill    ]
5*cab87e9cSJagpal Singh Gill
6*cab87e9cSJagpal Singh Gillexecutable(
7*cab87e9cSJagpal Singh Gill    'phosphor-bmc-side-switch',
8*cab87e9cSJagpal Singh Gill    source,
9*cab87e9cSJagpal Singh Gill    include_directories: ['..'],
10*cab87e9cSJagpal Singh Gill    dependencies: [
11*cab87e9cSJagpal Singh Gill        phosphor_logging_dep,
12*cab87e9cSJagpal Singh Gill    ],
13*cab87e9cSJagpal Singh Gill    install: true,
14*cab87e9cSJagpal Singh Gill    install_dir: get_option('bindir')
15*cab87e9cSJagpal Singh Gill)
16*cab87e9cSJagpal Singh Gill
17*cab87e9cSJagpal Singh Gillsystemd_system_unit_dir = dependency('systemd').get_variable(
18*cab87e9cSJagpal Singh Gill    'systemdsystemunitdir',
19*cab87e9cSJagpal Singh Gill    pkgconfig_define: ['prefix', get_option('prefix')])
20*cab87e9cSJagpal Singh Gill
21*cab87e9cSJagpal Singh Gillinstall_data(
22*cab87e9cSJagpal Singh Gill        'phosphor-bmc-side-switch.service',
23*cab87e9cSJagpal Singh Gill        install_dir: systemd_system_unit_dir)
24