Brad Bishop | 81739f4 | 2019-03-29 09:48:26 -0400 | [diff] [blame] | 1 | project( |
| 2 | 'obmc-ikvm', |
| 3 | 'cpp', |
| 4 | version: '1.0', |
| 5 | license: 'GPLv2', |
| 6 | default_options: [ |
Patrick Williams | 12b2380 | 2023-07-12 11:16:06 -0500 | [diff] [blame] | 7 | 'cpp_std=c++23', |
Brad Bishop | 81739f4 | 2019-03-29 09:48:26 -0400 | [diff] [blame] | 8 | 'werror=true', |
| 9 | ], |
Patrick Williams | 12b2380 | 2023-07-12 11:16:06 -0500 | [diff] [blame] | 10 | meson_version: '>=1.1.1', |
Brad Bishop | 81739f4 | 2019-03-29 09:48:26 -0400 | [diff] [blame] | 11 | ) |
| 12 | |
John Wang | 63c3ea1 | 2019-04-17 17:38:41 +0800 | [diff] [blame] | 13 | install_data( |
| 14 | 'create_usbhid.sh', |
| 15 | install_mode: 'rwxr-xr-x', |
| 16 | install_dir: get_option('bindir') |
| 17 | ) |
| 18 | |
Brad Bishop | 81739f4 | 2019-03-29 09:48:26 -0400 | [diff] [blame] | 19 | executable( |
| 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 Aladyshev | 033b18e | 2024-04-23 12:22:53 +0300 | [diff] [blame] | 35 | dependency('boost'), |
Brad Bishop | 81739f4 | 2019-03-29 09:48:26 -0400 | [diff] [blame] | 36 | ], |
| 37 | install: true |
| 38 | ) |
Brad Bishop | fb6a8e1 | 2019-03-29 10:54:44 -0400 | [diff] [blame] | 39 | |
George Liu | 1489d04 | 2023-08-16 14:07:46 +0800 | [diff] [blame] | 40 | fs = import('fs') |
| 41 | fs.copyfile( |
| 42 | 'start-ipkvm.service', |
| 43 | install: true, |
Brad Bishop | fb6a8e1 | 2019-03-29 10:54:44 -0400 | [diff] [blame] | 44 | install_dir: |
Patrick Williams | 673ba88 | 2023-04-12 08:01:04 -0500 | [diff] [blame] | 45 | dependency('systemd').get_variable( |
Brad Bishop | fb6a8e1 | 2019-03-29 10:54:44 -0400 | [diff] [blame] | 46 | 'systemdsystemunitdir') |
Konstantin Aladyshev | 033b18e | 2024-04-23 12:22:53 +0300 | [diff] [blame] | 47 | ) |