|
@@ -525,6 +525,18 @@ if cocoa.found() and get_option('gtk').enabled()
|
|
|
error('Cocoa and GTK+ cannot be enabled at the same time')
|
|
|
endif
|
|
|
|
|
|
+vmnet = dependency('appleframeworks', modules: 'vmnet', required: get_option('vmnet'))
|
|
|
+if vmnet.found() and not cc.has_header_symbol('vmnet/vmnet.h',
|
|
|
+ 'VMNET_BRIDGED_MODE',
|
|
|
+ dependencies: vmnet)
|
|
|
+ vmnet = not_found
|
|
|
+ if get_option('vmnet').enabled()
|
|
|
+ error('vmnet.framework API is outdated')
|
|
|
+ else
|
|
|
+ warning('vmnet.framework API is outdated, disabling')
|
|
|
+ endif
|
|
|
+endif
|
|
|
+
|
|
|
seccomp = not_found
|
|
|
if not get_option('seccomp').auto() or have_system or have_tools
|
|
|
seccomp = dependency('libseccomp', version: '>=2.3.0',
|
|
@@ -1553,6 +1565,7 @@ config_host_data.set('CONFIG_SNAPPY', snappy.found())
|
|
|
config_host_data.set('CONFIG_TPM', have_tpm)
|
|
|
config_host_data.set('CONFIG_USB_LIBUSB', libusb.found())
|
|
|
config_host_data.set('CONFIG_VDE', vde.found())
|
|
|
+config_host_data.set('CONFIG_VMNET', vmnet.found())
|
|
|
config_host_data.set('CONFIG_VHOST_USER_BLK_SERVER', have_vhost_user_blk_server)
|
|
|
config_host_data.set('CONFIG_VNC', vnc.found())
|
|
|
config_host_data.set('CONFIG_VNC_JPEG', jpeg.found())
|
|
@@ -3604,7 +3617,8 @@ summary(summary_info, bool_yn: true, section: 'Crypto')
|
|
|
# Libraries
|
|
|
summary_info = {}
|
|
|
if targetos == 'darwin'
|
|
|
- summary_info += {'Cocoa support': cocoa}
|
|
|
+ summary_info += {'Cocoa support': cocoa}
|
|
|
+ summary_info += {'vmnet.framework support': vmnet}
|
|
|
endif
|
|
|
summary_info += {'SDL support': sdl}
|
|
|
summary_info += {'SDL image support': sdl_image}
|