mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Enable building of glfw-wayland backend
This commit is contained in:
13
setup.py
13
setup.py
@@ -384,11 +384,20 @@ def find_c_files():
|
||||
|
||||
|
||||
def compile_glfw(incremental, compilation_database, all_keys):
|
||||
modules = 'cocoa' if isosx else 'x11'
|
||||
modules = 'cocoa' if isosx else 'x11 wayland'
|
||||
for module in modules.split():
|
||||
genv = glfw.init_env(env, pkg_config, at_least_version, module)
|
||||
try:
|
||||
genv = glfw.init_env(env, pkg_config, at_least_version, module)
|
||||
except SystemExit as err:
|
||||
if module != 'wayland':
|
||||
raise
|
||||
print(err.message, file=sys.stderr)
|
||||
print('Disabling building of wayland backend', file=sys.stderr)
|
||||
continue
|
||||
sources = [os.path.join('glfw', x) for x in genv.sources]
|
||||
all_headers = [os.path.join('glfw', x) for x in genv.all_headers]
|
||||
if module == 'wayland':
|
||||
glfw.build_wayland_protocols(genv, run_tool, emphasis, newer, os.path.join(base, 'glfw'))
|
||||
compile_c_extension(genv, 'kitty/glfw-' + module, incremental, compilation_database, all_keys, sources, all_headers)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user