mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 10:05:58 +01:00
c21808dd2d
This patch adds 'opengl' as a fallback to 'GL' for dependency lookup, to link with libglvnd configured without X11 support. For OpenGL, libglvnd provides two pkg-config files: `gl.pc' with GLX support while `opengl.pc' not. When building without X11 support, the former won't be installed.
25 lines
621 B
Meson
25 lines
621 B
Meson
globber = run_command('find', '-name', '*.cpp', check: true)
|
|
src = globber.stdout().strip().split('\n')
|
|
|
|
executable('Hyprland', src,
|
|
cpp_args: ['-DWLR_USE_UNSTABLE'],
|
|
dependencies: [
|
|
server_protos,
|
|
dependency('wayland-server'),
|
|
dependency('wayland-client'),
|
|
wlroots.get_variable('wlroots'),
|
|
dependency('cairo'),
|
|
dependency('pango'),
|
|
dependency('pangocairo'),
|
|
dependency('libdrm'),
|
|
dependency('egl'),
|
|
dependency('xkbcommon'),
|
|
dependency('libinput'),
|
|
xcb_dep,
|
|
|
|
dependency('pixman-1'),
|
|
dependency('GL', 'opengl'),
|
|
dependency('threads')
|
|
],
|
|
install : true
|
|
)
|