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: [ |
| 7 | 'cpp_std=c++17', |
| 8 | 'werror=true', |
| 9 | ], |
| 10 | ) |
| 11 | |
John Wang | 63c3ea1 | 2019-04-17 17:38:41 +0800 | [diff] [blame^] | 12 | install_data( |
| 13 | 'create_usbhid.sh', |
| 14 | install_mode: 'rwxr-xr-x', |
| 15 | install_dir: get_option('bindir') |
| 16 | ) |
| 17 | |
Brad Bishop | 81739f4 | 2019-03-29 09:48:26 -0400 | [diff] [blame] | 18 | executable( |
| 19 | 'obmc-ikvm', |
| 20 | [ |
| 21 | 'ikvm_args.cpp', |
| 22 | 'ikvm_input.cpp', |
| 23 | 'ikvm_manager.cpp', |
| 24 | 'ikvm_server.cpp', |
| 25 | 'ikvm_video.cpp', |
| 26 | 'obmc-ikvm.cpp', |
| 27 | ], |
| 28 | dependencies: [ |
| 29 | dependency('libvncserver'), |
| 30 | dependency('phosphor-logging'), |
| 31 | dependency('phosphor-dbus-interfaces'), |
| 32 | dependency('sdbusplus'), |
| 33 | dependency('threads'), |
| 34 | ], |
| 35 | install: true |
| 36 | ) |
Brad Bishop | fb6a8e1 | 2019-03-29 10:54:44 -0400 | [diff] [blame] | 37 | |
| 38 | configure_file( |
| 39 | input: 'start-ipkvm.service', |
| 40 | output: 'start-ipkvm.service', |
| 41 | copy: true, |
| 42 | install_dir: |
| 43 | dependency('systemd').get_pkgconfig_variable( |
| 44 | 'systemdsystemunitdir') |
| 45 | ) |