Silence the OpenGL deprecation warnings on macOS 10.14

This commit is contained in:
Kovid Goyal 2018-07-29 19:35:43 +05:30
parent 31aa782362
commit c48fa0f078
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -236,6 +236,9 @@ def kitty_env():
cflags.extend(pkg_config('libpng', '--cflags-only-I'))
if is_macos:
font_libs = ['-framework', 'CoreText', '-framework', 'CoreGraphics']
# Apple deprecated OpenGL in Mojave (10.14) silence the endless
# warnings about it
cppflags.append('-DGL_SILENCE_DEPRECATION')
else:
cflags.extend(pkg_config('fontconfig', '--cflags-only-I'))
font_libs = pkg_config('fontconfig', '--libs')