mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 12:11:56 -07:00
meson & nix: install wlroots headers (#2287)
This commit is contained in:
45
subprojects/packagefiles/wlroots-meson-build.patch
Normal file
45
subprojects/packagefiles/wlroots-meson-build.patch
Normal file
@@ -0,0 +1,45 @@
|
||||
diff --git a/include/meson.build b/include/meson.build
|
||||
index e669800..687786b 100644
|
||||
--- a/include/meson.build
|
||||
+++ b/include/meson.build
|
||||
@@ -1,4 +1,5 @@
|
||||
-subdir('wlr')
|
||||
+run_command('ln', '-s', join_paths(meson.project_source_root(), 'include', 'wlr'), join_paths(meson.project_source_root(), 'include', 'wlroots'), check: true)
|
||||
+subdir('wlroots')
|
||||
|
||||
exclude_files = ['meson.build', 'config.h.in', 'version.h.in']
|
||||
if not features.get('drm-backend')
|
||||
@@ -24,8 +25,8 @@ if not features.get('session')
|
||||
exclude_files += 'backend/session.h'
|
||||
endif
|
||||
|
||||
-install_subdir('wlr',
|
||||
- install_dir: get_option('includedir'),
|
||||
+install_subdir('wlroots',
|
||||
+ install_dir: join_paths(get_option('includedir'), 'hyprland'),
|
||||
exclude_files: exclude_files,
|
||||
)
|
||||
|
||||
diff --git a/include/wlr/meson.build b/include/wlr/meson.build
|
||||
index f7ca413..0a86d54 100644
|
||||
--- a/include/wlr/meson.build
|
||||
+++ b/include/wlr/meson.build
|
||||
@@ -22,4 +22,4 @@ ver_h = configure_file(
|
||||
configuration: version_data,
|
||||
)
|
||||
|
||||
-install_headers(conf_h, ver_h, subdir: 'wlr')
|
||||
+install_headers(conf_h, ver_h, subdir: join_paths('hyprland', 'wlroots'))
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 29b103a..0b6e5a4 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -15,7 +15,7 @@ project(
|
||||
# necessary for bugfix releases. Increasing soversion is required because
|
||||
# wlroots never guarantees ABI stability -- only API stability is guaranteed
|
||||
# between minor releases.
|
||||
-soversion = 12
|
||||
+soversion = 12032
|
||||
|
||||
little_endian = target_machine.endian() == 'little'
|
||||
big_endian = target_machine.endian() == 'big'
|
7
subprojects/wlroots.wrap
Normal file
7
subprojects/wlroots.wrap
Normal file
@@ -0,0 +1,7 @@
|
||||
[wrap-git]
|
||||
directory = wlroots
|
||||
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
|
||||
revision = 6830bfc17fd94709e2cdd4da0af989f102a26e59
|
||||
depth = 1
|
||||
|
||||
diff_files = wlroots-meson-build.patch
|
Reference in New Issue
Block a user