Thomas Huth | 8bc5184 | 2021-07-13 13:09:02 +0200 | [diff] [blame] | 1 | if 'CONFIG_TOOLS' in config_host and virgl.found() and gbm.found() \ |
| 2 | and 'CONFIG_LINUX' in config_host and pixman.found() |
Marc-André Lureau | ea45896 | 2019-07-12 22:23:46 +0400 | [diff] [blame] | 3 | executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'), |
Marc-André Lureau | 0c27b9c | 2021-03-12 14:00:43 +0400 | [diff] [blame] | 4 | dependencies: [qemuutil, pixman, gbm, virgl, vhost_user, opengl], |
Marc-André Lureau | ea45896 | 2019-07-12 22:23:46 +0400 | [diff] [blame] | 5 | install: true, |
| 6 | install_dir: get_option('libexecdir')) |
| 7 | |
| 8 | configure_file(input: '50-qemu-gpu.json.in', |
| 9 | output: '50-qemu-gpu.json', |
Marc Hartmayer | cd57dea | 2020-11-03 12:23:33 +0100 | [diff] [blame] | 10 | configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') }, |
Marc-André Lureau | ab4c099 | 2020-08-26 15:04:16 +0400 | [diff] [blame] | 11 | install_dir: qemu_datadir / 'vhost-user') |
Marc-André Lureau | ea45896 | 2019-07-12 22:23:46 +0400 | [diff] [blame] | 12 | endif |