Update to a cleaner build path on macOS 27. ParavirtualizationGraphics.framework API has changed significantly.
PATCH 1/1 Update to a cleaner build path on macOS 27. ParavirtualizationGraphics.framework API has changed significantly.
API marked obsolete in xcrun --show-sdk-path + /System/Library/Frameworks/ParavirtualizedGraphics.framework/Headers/PGDevice.h
--- meson.build | 8 ++++++++ 1 file changed, 8 insertions(+)
meson.build +8 -0
@@ -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'),
Signature · 1 line
2.54.0 (Apple Git-157)
Quoted 18 lines · DB Holder
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(+)meson.build +0
-0@@ -852,6 +852,14 @@ elif host_os == 'darwin' host_dsosuf = '.dylib'
meson.build elif host_os == 'darwin' · line 862
Quoted 10 lines
meson.build +8
-0pvg = 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
Hi,
There's a newer path (RFC already sent since a while) that works on macOS 27. The older path already had the IOSurface mapper side gone since macOS 15.4 so this is not exactly new. It’s just marked as deprecated now since x86_64 macOS support is formally gone.
Quoted 9 lines
elif
host_os== 'sunos'
socket = [cc.find_library('socket'),cc.find_library('nsl'),Signature · 1 line
2.54.0 (Apple Git-157)