xref: /openbmc/obmc-ikvm/meson.build (revision 1489d044)
1project(
2    'obmc-ikvm',
3    'cpp',
4    version: '1.0',
5    license: 'GPLv2',
6    default_options: [
7        'cpp_std=c++23',
8        'werror=true',
9    ],
10    meson_version: '>=1.1.1',
11)
12
13install_data(
14    'create_usbhid.sh',
15    install_mode: 'rwxr-xr-x',
16    install_dir: get_option('bindir')
17)
18
19executable(
20    'obmc-ikvm',
21    [
22        'ikvm_args.cpp',
23        'ikvm_input.cpp',
24        'ikvm_manager.cpp',
25        'ikvm_server.cpp',
26        'ikvm_video.cpp',
27        'obmc-ikvm.cpp',
28    ],
29    dependencies: [
30        dependency('libvncserver'),
31        dependency('phosphor-logging'),
32        dependency('phosphor-dbus-interfaces'),
33        dependency('sdbusplus'),
34        dependency('threads'),
35    ],
36    install: true
37)
38
39fs = import('fs')
40fs.copyfile(
41    'start-ipkvm.service',
42    install: true,
43    install_dir:
44        dependency('systemd').get_variable(
45            'systemdsystemunitdir')
46)