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'), |
| 35 | ], |
| 36 | install: true |
| 37 | ) |
Brad Bishop | fb6a8e1 | 2019-03-29 10:54:44 -0400 | [diff] [blame] | 38 | |
George Liu | 1489d04 | 2023-08-16 14:07:46 +0800 | [diff] [blame^] | 39 | fs = import('fs') |
| 40 | fs.copyfile( |
| 41 | 'start-ipkvm.service', |
| 42 | install: true, |
Brad Bishop | fb6a8e1 | 2019-03-29 10:54:44 -0400 | [diff] [blame] | 43 | install_dir: |
Patrick Williams | 673ba88 | 2023-04-12 08:01:04 -0500 | [diff] [blame] | 44 | dependency('systemd').get_variable( |
Brad Bishop | fb6a8e1 | 2019-03-29 10:54:44 -0400 | [diff] [blame] | 45 | 'systemdsystemunitdir') |
George Liu | 1489d04 | 2023-08-16 14:07:46 +0800 | [diff] [blame^] | 46 | ) |