blob: 6e1c0f1f899bf57a42bdbaa72e4046035f450d0f [file] [log] [blame]
Brad Bishop81739f42019-03-29 09:48:26 -04001project(
2 'obmc-ikvm',
3 'cpp',
4 version: '1.0',
5 license: 'GPLv2',
6 default_options: [
Patrick Williams12b23802023-07-12 11:16:06 -05007 'cpp_std=c++23',
Brad Bishop81739f42019-03-29 09:48:26 -04008 'werror=true',
9 ],
Patrick Williams12b23802023-07-12 11:16:06 -050010 meson_version: '>=1.1.1',
Brad Bishop81739f42019-03-29 09:48:26 -040011)
12
John Wang63c3ea12019-04-17 17:38:41 +080013install_data(
14 'create_usbhid.sh',
15 install_mode: 'rwxr-xr-x',
16 install_dir: get_option('bindir')
17)
18
Brad Bishop81739f42019-03-29 09:48:26 -040019executable(
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'),
Konstantin Aladyshev033b18e2024-04-23 12:22:53 +030035 dependency('boost'),
Brad Bishop81739f42019-03-29 09:48:26 -040036 ],
37 install: true
38)
Brad Bishopfb6a8e12019-03-29 10:54:44 -040039
George Liu1489d042023-08-16 14:07:46 +080040fs = import('fs')
41fs.copyfile(
42 'start-ipkvm.service',
43 install: true,
Brad Bishopfb6a8e12019-03-29 10:54:44 -040044 install_dir:
Patrick Williams673ba882023-04-12 08:01:04 -050045 dependency('systemd').get_variable(
Brad Bishopfb6a8e12019-03-29 10:54:44 -040046 'systemdsystemunitdir')
Konstantin Aladyshev033b18e2024-04-23 12:22:53 +030047)