mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-12 18:20:34 +03:00
Fix #5154
This commit is contained in:
parent
6b0bb2e845
commit
bec620a8d3
5
setup.py
5
setup.py
@ -375,6 +375,7 @@ def init_env(
|
||||
library_paths['glfw/egl_context.c'] = [f'_GLFW_EGL_LIBRARY="{egl_library}"']
|
||||
|
||||
desktop_libs = []
|
||||
fc_libs = []
|
||||
if startup_notification_library is not None:
|
||||
assert('"' not in startup_notification_library)
|
||||
desktop_libs = [f'_KITTY_STARTUP_NOTIFICATION_LIBRARY="{startup_notification_library}"']
|
||||
@ -385,10 +386,12 @@ def init_env(
|
||||
|
||||
if fontconfig_library is not None:
|
||||
assert('"' not in fontconfig_library)
|
||||
desktop_libs += [f'_KITTY_FONTCONFIG_LIBRARY="{fontconfig_library}"']
|
||||
fc_libs += [f'_KITTY_FONTCONFIG_LIBRARY="{fontconfig_library}"']
|
||||
|
||||
if desktop_libs != []:
|
||||
library_paths['kitty/desktop.c'] = desktop_libs
|
||||
if fc_libs != []:
|
||||
library_paths['kitty/fontconfig.c'] = fc_libs
|
||||
|
||||
for path in extra_include_dirs:
|
||||
cflags.append(f'-I{path}')
|
||||
|
Loading…
Reference in New Issue
Block a user