Linux: Use the system "bell" for the terminal bell

Adds libcanberra as a new dependency to play the system sound.
This commit is contained in:
Kovid Goyal
2019-07-03 22:06:47 +05:30
parent 2e8188e89d
commit 2cfd55f3ce
6 changed files with 33 additions and 2 deletions

View File

@@ -273,6 +273,9 @@ def kitty_env():
gl_libs = ['-framework', 'OpenGL'] if is_macos else pkg_config('gl', '--libs')
libpng = pkg_config('libpng', '--libs')
ans.ldpaths += pylib + font_libs + gl_libs + libpng
if not is_macos:
cflags.extend(pkg_config('libcanberra', '--cflags-only-I'))
ans.ldpaths += pkg_config('libcanberra', '--libs')
if is_macos:
ans.ldpaths.extend('-framework Cocoa'.split())
else: