mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
Fix X11 presentation handoff after resizing, preserve NSView size callbacks, and correct content and backing-layer geometry. Add CoreText font enumeration for the language dropdown and rebuild/install the matching runtime overlays. Correct CarbonCore Gestalt version queries and roll back proc_listpids for Vanguard testing. Document that VAN -101 can still recur. Include accumulated CoreAudio stream and AudioUnit corrections. Add standalone font, version, resize and publisher-handoff regressions. Record manual confirmation of the language dropdown and window resizing; all 29 pinned patches and the source/script audit validate.
24 lines
1.3 KiB
Python
24 lines
1.3 KiB
Python
#!/usr/bin/env python3
|
|
"""Build an owned X11/IOSurface window that verifies pixels after resizing."""
|
|
from pathlib import Path
|
|
import shlex
|
|
import subprocess
|
|
|
|
root = Path(__file__).resolve().parent.parent
|
|
folder = root / 'build/darling-src/build/src/external/cocotron/AppKit'
|
|
flags = {}
|
|
for line in (folder / 'CMakeFiles/X11_backend.dir/flags.make').read_text().splitlines():
|
|
if line.startswith('C_') and ' = ' in line:
|
|
key, value = line.split(' = ', 1)
|
|
flags[key] = shlex.split(value)
|
|
obj = root / 'build/riot-client-resize-check.o'
|
|
subprocess.run(['clang', *flags['C_DEFINES'], *flags['C_INCLUDES'], *flags['C_FLAGS'],
|
|
'-O2', '-Wno-macro-redefined', '-c', str(root / 'tools/riot-client-resize-check.m'),
|
|
'-o', str(obj)], check=True)
|
|
subprocess.run(['clang', '-target', 'x86_64-apple-macosx11.0', '-fuse-ld=lld', '-nostdlib',
|
|
'-isysroot', '@DARLING_SDK@', str(obj), '-lSystem', '-lobjc',
|
|
'-framework', 'AppKit', '-framework', 'QuartzCore', '-framework', 'OpenGL',
|
|
'-framework', 'IOSurface', '-framework', 'CoreFoundation', '-framework', 'Foundation',
|
|
str(root / 'build/darling-src/build/src/native/libX11.dylib'),
|
|
'-o', str(root / 'build/riot-client-resize-check')], check=True)
|