summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorBerke Güzel <berke.guzel@gdh.digital>2026-10-14 09:38:31 +0300
committerBerke Güzel <berke.guzel@gdh.digital>2026-10-14 09:38:31 +0300
commit5ef6ca21ab9e1cf4f69254234d190a634b777d52 (patch)
tree974d3797a6d9487e54a811e224bf78a3f52dda85 /meson.build
parent563b23a33726289387193b85d90fb569631ee05f (diff)
Remove deprecated Cocoa OpenGL and private compatibility APIs
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build15
1 files changed, 9 insertions, 6 deletions
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')