summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
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')