2022-06-16 12:42:31 +02:00
|
|
|
diff --git a/meson.build b/meson.build
|
2023-03-15 19:45:44 +01:00
|
|
|
index f3802553..6a924a79 100644
|
2022-06-16 12:42:31 +02:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2023-03-04 16:34:15 +01:00
|
|
|
@@ -21,9 +21,9 @@ else
|
|
|
|
endif
|
|
|
|
|
|
|
|
GIT_BRANCH = run_command('git', 'rev-parse', '--abbrev-ref', 'HEAD', check: false).stdout().strip()
|
|
|
|
-GIT_COMMIT_HASH = run_command('git', 'rev-parse', 'HEAD', check: false).stdout().strip()
|
|
|
|
+GIT_COMMIT_HASH = '@GIT_COMMIT_HASH@'
|
|
|
|
GIT_COMMIT_MESSAGE = run_command('sh', '-c', 'git show | head -n 5 | tail -n 1', check: false).stdout().strip()
|
|
|
|
-GIT_DIRTY = run_command('sh', '-c', 'git diff-index --quiet HEAD -- || echo "dirty"', check: false).stdout().strip()
|
|
|
|
+GIT_DIRTY = '@GIT_DIRTY@'
|
|
|
|
|
|
|
|
add_project_arguments(
|
|
|
|
[
|
2023-03-15 19:45:44 +01:00
|
|
|
@@ -39,21 +39,8 @@ add_project_arguments(
|
2023-02-27 13:32:38 +01:00
|
|
|
],
|
|
|
|
language: 'cpp')
|
|
|
|
|
2022-06-16 12:42:31 +02:00
|
|
|
-wlroots = subproject('wlroots', default_options: ['examples=false'])
|
|
|
|
-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
|
|
|
|
- add_project_arguments('-DNO_XWAYLAND', language: 'cpp')
|
|
|
|
+if get_option('xwayland').disabled()
|
2023-03-15 19:29:25 +01:00
|
|
|
+ add_project_arguments('-DNO_XWAYLAND', language: 'cpp')
|
|
|
|
endif
|
|
|
|
|
2023-02-27 13:32:38 +01:00
|
|
|
backtrace_dep = cpp_compiler.find_library('execinfo', required: false)
|
2022-06-16 12:42:31 +02:00
|
|
|
diff --git a/src/meson.build b/src/meson.build
|
2023-03-15 19:45:44 +01:00
|
|
|
index 7b658d31..60aa4057 100644
|
2022-06-16 12:42:31 +02:00
|
|
|
--- a/src/meson.build
|
|
|
|
+++ b/src/meson.build
|
2023-03-15 19:45:44 +01:00
|
|
|
@@ -7,16 +7,16 @@ 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'),
|
2023-02-27 13:32:38 +01:00
|
|
|
dependency('libdrm'),
|
|
|
|
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,
|
|
|
|
systemd_dep,
|
|
|
|
- udis86,
|
|
|
|
+ dependency('udis86'),
|
|
|
|
|
|
|
|
dependency('pixman-1'),
|
|
|
|
dependency('gl', 'opengl'),
|