From 5ef6ca21ab9e1cf4f69254234d190a634b777d52 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Wed, 14 Oct 2026 09:38:31 +0300 Subject: Remove deprecated Cocoa OpenGL and private compatibility APIs --- meson.build | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 4d7d7ce..5f5b26c 100644 --- a/meson.build +++ b/meson.build @@ -76,7 +76,7 @@ elif system == 'darwin' error('Cocoa requires macOS 14 or newer. Set MACOSX_DEPLOYMENT_TARGET=14.0 or a newer target before configuring.') endif deps += [ - dependency('appleframeworks', modules: ['AppKit', 'Metal', 'QuartzCore', 'UserNotifications', 'OpenGL']), + dependency('appleframeworks', modules: ['AppKit', 'Metal', 'QuartzCore', 'UserNotifications']), ] else error('YASL supports Linux and macOS.') @@ -92,6 +92,7 @@ if not has_wayland and not has_x11 and not has_cocoa endif add_project_arguments( + '-Werror=deprecated-declarations', '-DYASL_HAS_EGL=' + (has_egl ? '1' : '0'), '-DYASL_HAS_VULKAN=' + (has_vulkan ? '1' : '0'), '-DYASL_HAS_WAYLAND=' + (has_wayland ? '1' : '0'), @@ -172,10 +173,12 @@ notepad_example = executable( dependencies: yasl_dep, ) -game_example = executable( - 'yasl-game', - 'examples/game.c', - dependencies: yasl_dep, -) +if has_egl + game_example = executable( + 'yasl-game', + 'examples/game.c', + dependencies: yasl_dep, + ) +endif subdir('tests') -- cgit v1.2.3