2022-06-16 12:42:31 +02:00
|
|
|
diff --git a/meson.build b/meson.build
|
2024-04-20 19:50:07 +02:00
|
|
|
index 40883073..d8f2e536 100644
|
2022-06-16 12:42:31 +02:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2023-10-17 13:05:38 +02:00
|
|
|
@@ -33,20 +33,7 @@ if cpp_compiler.check_header('execinfo.h')
|
|
|
|
add_project_arguments('-DHAS_EXECINFO', language: 'cpp')
|
|
|
|
endif
|
2023-02-27 13:32:38 +01:00
|
|
|
|
2024-04-12 19:35:31 +02:00
|
|
|
-wlroots = subproject('wlroots-hyprland', default_options: ['examples=false', 'renderers=gles2'])
|
2022-06-16 12:42:31 +02:00
|
|
|
-have_xwlr = wlroots.get_variable('features').get('xwayland')
|
2023-03-15 19:45:44 +01:00
|
|
|
-xcb_dep = dependency('xcb', required: get_option('xwayland'))
|
|
|
|
-
|
2023-02-27 13:32:38 +01:00
|
|
|
-cmake = import('cmake')
|
|
|
|
-udis = cmake.subproject('udis86')
|
|
|
|
-udis86 = udis.dependency('libudis86')
|
|
|
|
-
|
2022-06-16 12:42:31 +02:00
|
|
|
-if get_option('xwayland').enabled() and not have_xwlr
|
|
|
|
- error('Cannot enable Xwayland in Hyprland: wlroots has been built without Xwayland support')
|
|
|
|
-endif
|
2023-03-15 19:45:44 +01:00
|
|
|
-have_xwayland = xcb_dep.found() and have_xwlr
|
2022-06-16 12:42:31 +02:00
|
|
|
-
|
2023-03-15 19:45:44 +01:00
|
|
|
-if not have_xwayland
|
|
|
|
+if get_option('xwayland').disabled()
|
2023-10-10 21:21:57 +02:00
|
|
|
add_project_arguments('-DNO_XWAYLAND', language: 'cpp')
|
2023-03-15 19:29:25 +01:00
|
|
|
endif
|
|
|
|
|
2024-04-20 19:50:07 +02:00
|
|
|
@@ -65,8 +52,6 @@ if get_option('buildtype') == 'debug'
|
2023-10-19 01:09:06 +02:00
|
|
|
add_project_arguments('-DHYPRLAND_DEBUG', language: 'cpp')
|
|
|
|
endif
|
2023-10-10 21:21:57 +02:00
|
|
|
|
|
|
|
-version_h = run_command('sh', '-c', 'scripts/generateVersion.sh')
|
|
|
|
-
|
2023-10-19 01:09:06 +02:00
|
|
|
globber = run_command('find', 'src', '-name', '*.h*', check: true)
|
|
|
|
headers = globber.stdout().strip().split('\n')
|
|
|
|
foreach file : headers
|
2022-06-16 12:42:31 +02:00
|
|
|
diff --git a/src/meson.build b/src/meson.build
|
2024-04-20 19:50:07 +02:00
|
|
|
index 15c69552..327aa4fb 100644
|
2022-06-16 12:42:31 +02:00
|
|
|
--- a/src/meson.build
|
|
|
|
+++ b/src/meson.build
|
2024-03-09 17:52:59 +01:00
|
|
|
@@ -9,7 +9,7 @@ executable('Hyprland', src,
|
2022-06-16 12:42:31 +02:00
|
|
|
server_protos,
|
|
|
|
dependency('wayland-server'),
|
|
|
|
dependency('wayland-client'),
|
|
|
|
- wlroots.get_variable('wlroots'),
|
2023-02-27 13:32:38 +01:00
|
|
|
+ dependency('wlroots'),
|
2022-06-16 12:42:31 +02:00
|
|
|
dependency('cairo'),
|
2024-03-09 17:52:59 +01:00
|
|
|
dependency('hyprcursor'),
|
2024-02-18 16:00:34 +01:00
|
|
|
dependency('hyprlang', version: '>= 0.3.2'),
|
2024-04-20 19:50:07 +02:00
|
|
|
@@ -17,10 +17,10 @@ executable('Hyprland', src,
|
2023-02-27 13:32:38 +01:00
|
|
|
dependency('egl'),
|
2023-03-15 19:45:44 +01:00
|
|
|
dependency('xkbcommon'),
|
|
|
|
dependency('libinput'),
|
|
|
|
- xcb_dep,
|
|
|
|
+ dependency('xcb', required: get_option('xwayland')),
|
2023-02-27 13:32:38 +01:00
|
|
|
backtrace_dep,
|
2024-04-15 15:42:17 +02:00
|
|
|
epoll_dep,
|
2023-02-27 13:32:38 +01:00
|
|
|
- udis86,
|
|
|
|
+ dependency('udis86'),
|
|
|
|
|
|
|
|
dependency('pixman-1'),
|
|
|
|
dependency('gl', 'opengl'),
|