API marked obsolete in xcrun --show-sdk-path + 
/System/Library/Frameworks/ParavirtualizedGraphics.framework/Headers/PGDevice.h

Signed-off-by: DB Holder <[email protected]>
---
 meson.build | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meson.build b/meson.build
index 6dcfdceb50..a6b11cb009 100644
--- a/meson.build
+++ b/meson.build
@@ -852,6 +852,14 @@ elif host_os == 'darwin'
   host_dsosuf = '.dylib'
   pvg = dependency('appleframeworks', modules: ['ParavirtualizedGraphics', 
'Metal'],
                    required: get_option('pvg'))
+  if pvg.found() and not objc.has_type('PGTask_t',
+                          prefix: '#import 
<ParavirtualizedGraphics/ParavirtualizedGraphics.h>',
+                          dependencies: pvg)
+    if get_option('pvg').enabled()
+      error('ParavirtualizedGraphics framework found, but the API lacks 
PGTask_t')
+    endif
+    pvg = not_found
+  endif
 elif host_os == 'sunos'
   socket = [cc.find_library('socket'),
             cc.find_library('nsl'),
-- 
2.54.0 (Apple Git-157)




Reply via email to