This commit is contained in:
Kovid Goyal 2022-06-01 08:19:11 +05:30
parent 6b0bb2e845
commit bec620a8d3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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}')