xref: /openbmc/obmc-ikvm/meson.build (revision 033b18e0)
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        dependency('boost'),
36    ],
37    install: true
38)
39
40fs = import('fs')
41fs.copyfile(
42    'start-ipkvm.service',
43    install: true,
44    install_dir:
45        dependency('systemd').get_variable(
46            'systemdsystemunitdir')
47)
48