Skip to content

Commit 85128eb

Browse files
authored
Merge pull request #130 from vaxerski/bundle-wlroots
Bundle wlroots
2 parents c9041bf + ad98b96 commit 85128eb

File tree

6 files changed

+70
-49
lines changed

6 files changed

+70
-49
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
3131
- name: Checkout Hyprland
3232
uses: actions/checkout@v3
33+
with:
34+
submodules: recursive
3335

3436
- name: Build Hyprland With default settings
3537
run: |

.github/workflows/nix-build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
steps:
99
- name: Clone repository
1010
uses: actions/checkout@v3
11+
with:
12+
submodules: recursive
1113
- name: Install nix
1214
uses: cachix/install-nix-action@v17
1315
with:

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "wlroots"]
2+
path = wlroots
3+
url = https://gitlab.freedesktop.org/wlroots/wlroots

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ clear:
8989
rm -rf build
9090
rm -f *.o *-protocol.h *-protocol.c
9191
rm -f ./hyprctl/hyprctl
92+
rm -rf ./wlroots/build
9293

9394
all:
9495
make config
@@ -113,4 +114,16 @@ uninstall:
113114
rm -f ${PREFIX}/bin/hyprctl
114115
rm -rf ${PREFIX}/share/hyprland
115116

116-
config: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o wlr-screencopy-unstable-v1-protocol.o idle-protocol.o ext-workspace-unstable-v1-protocol.o pointer-constraints-unstable-v1-protocol.o
117+
protocols: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o wlr-screencopy-unstable-v1-protocol.o idle-protocol.o ext-workspace-unstable-v1-protocol.o pointer-constraints-unstable-v1-protocol.o
118+
119+
config:
120+
make protocols
121+
122+
sed -i -E 's/(soversion = 11)([^032]|$$)/soversion = 11032/g' ./wlroots/meson.build
123+
124+
rm -rf ./wlroots/build
125+
126+
cd wlroots && meson ./build --prefix=/usr --buildtype=release
127+
cd wlroots && ninja -C build/
128+
129+
cd wlroots && sudo cp ./build/libwlroots.so.11032 /usr/lib/

src/includes.hpp

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -34,56 +34,56 @@
3434
#define static
3535

3636
extern "C" {
37-
#include <wlr/backend.h>
38-
#include <wlr/backend/libinput.h>
39-
#include <wlr/render/allocator.h>
40-
#include <wlr/render/wlr_renderer.h>
41-
#include <wlr/types/wlr_compositor.h>
42-
#include <wlr/types/wlr_cursor.h>
43-
#include <wlr/types/wlr_data_control_v1.h>
44-
#include <wlr/types/wlr_data_device.h>
45-
#include <wlr/types/wlr_export_dmabuf_v1.h>
46-
#include <wlr/types/wlr_linux_dmabuf_v1.h>
47-
#include <wlr/types/wlr_gamma_control_v1.h>
48-
#include <wlr/types/wlr_idle.h>
49-
#include <wlr/types/wlr_input_device.h>
50-
#include <wlr/types/wlr_keyboard.h>
51-
#include <wlr/types/wlr_layer_shell_v1.h>
52-
#include <wlr/types/wlr_matrix.h>
53-
#include <wlr/types/wlr_output.h>
54-
#include <wlr/types/wlr_output_layout.h>
55-
#include <wlr/types/wlr_output_management_v1.h>
56-
#include <wlr/types/wlr_pointer.h>
57-
#include <wlr/types/wlr_presentation_time.h>
58-
#include <wlr/types/wlr_primary_selection.h>
59-
#include <wlr/types/wlr_primary_selection_v1.h>
60-
#include <wlr/types/wlr_screencopy_v1.h>
61-
#include <wlr/types/wlr_seat.h>
62-
#include <wlr/types/wlr_server_decoration.h>
63-
#include <wlr/types/wlr_viewporter.h>
64-
#include <wlr/types/wlr_virtual_keyboard_v1.h>
65-
#include <wlr/types/wlr_xcursor_manager.h>
66-
#include <wlr/types/wlr_xdg_activation_v1.h>
67-
#include <wlr/types/wlr_xdg_decoration_v1.h>
68-
#include <wlr/types/wlr_xdg_output_v1.h>
69-
#include <wlr/types/wlr_xdg_shell.h>
70-
#include <wlr/types/wlr_subcompositor.h>
71-
#include <wlr/types/wlr_scene.h>
72-
#include <wlr/types/wlr_output_damage.h>
73-
#include <wlr/types/wlr_input_inhibitor.h>
74-
#include <wlr/types/wlr_keyboard_shortcuts_inhibit_v1.h>
75-
#include <wlr/types/wlr_virtual_pointer_v1.h>
76-
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
77-
#include <wlr/util/log.h>
78-
#include <wlr/xwayland.h>
79-
#include <wlr/util/region.h>
37+
#include "../wlroots/include/wlr/backend.h"
38+
#include "../wlroots/include/wlr/backend/libinput.h"
39+
#include "../wlroots/include/wlr/render/allocator.h"
40+
#include "../wlroots/include/wlr/render/wlr_renderer.h"
41+
#include "../wlroots/include/wlr/types/wlr_compositor.h"
42+
#include "../wlroots/include/wlr/types/wlr_cursor.h"
43+
#include "../wlroots/include/wlr/types/wlr_data_control_v1.h"
44+
#include "../wlroots/include/wlr/types/wlr_data_device.h"
45+
#include "../wlroots/include/wlr/types/wlr_export_dmabuf_v1.h"
46+
#include "../wlroots/include/wlr/types/wlr_linux_dmabuf_v1.h"
47+
#include "../wlroots/include/wlr/types/wlr_gamma_control_v1.h"
48+
#include "../wlroots/include/wlr/types/wlr_idle.h"
49+
#include "../wlroots/include/wlr/types/wlr_input_device.h"
50+
#include "../wlroots/include/wlr/types/wlr_keyboard.h"
51+
#include "../wlroots/include/wlr/types/wlr_layer_shell_v1.h"
52+
#include "../wlroots/include/wlr/types/wlr_matrix.h"
53+
#include "../wlroots/include/wlr/types/wlr_output.h"
54+
#include "../wlroots/include/wlr/types/wlr_output_layout.h"
55+
#include "../wlroots/include/wlr/types/wlr_output_management_v1.h"
56+
#include "../wlroots/include/wlr/types/wlr_pointer.h"
57+
#include "../wlroots/include/wlr/types/wlr_presentation_time.h"
58+
#include "../wlroots/include/wlr/types/wlr_primary_selection.h"
59+
#include "../wlroots/include/wlr/types/wlr_primary_selection_v1.h"
60+
#include "../wlroots/include/wlr/types/wlr_screencopy_v1.h"
61+
#include "../wlroots/include/wlr/types/wlr_seat.h"
62+
#include "../wlroots/include/wlr/types/wlr_server_decoration.h"
63+
#include "../wlroots/include/wlr/types/wlr_viewporter.h"
64+
#include "../wlroots/include/wlr/types/wlr_virtual_keyboard_v1.h"
65+
#include "../wlroots/include/wlr/types/wlr_xcursor_manager.h"
66+
#include "../wlroots/include/wlr/types/wlr_xdg_activation_v1.h"
67+
#include "../wlroots/include/wlr/types/wlr_xdg_decoration_v1.h"
68+
#include "../wlroots/include/wlr/types/wlr_xdg_output_v1.h"
69+
#include "../wlroots/include/wlr/types/wlr_xdg_shell.h"
70+
#include "../wlroots/include/wlr/types/wlr_subcompositor.h"
71+
#include "../wlroots/include/wlr/types/wlr_scene.h"
72+
#include "../wlroots/include/wlr/types/wlr_output_damage.h"
73+
#include "../wlroots/include/wlr/types/wlr_input_inhibitor.h"
74+
#include "../wlroots/include/wlr/types/wlr_keyboard_shortcuts_inhibit_v1.h"
75+
#include "../wlroots/include/wlr/types/wlr_virtual_pointer_v1.h"
76+
#include "../wlroots/include/wlr/types/wlr_foreign_toplevel_management_v1.h"
77+
#include "../wlroots/include/wlr/util/log.h"
78+
#include "../wlroots/include/wlr/xwayland.h"
79+
#include "../wlroots/include/wlr/util/region.h"
8080
#include <xkbcommon/xkbcommon.h>
8181
#include <X11/Xproto.h>
82-
#include <wlr/render/egl.h>
83-
#include <wlr/render/gles2.h>
84-
#include <wlr/render/wlr_texture.h>
85-
#include <wlr/types/wlr_pointer_constraints_v1.h>
86-
#include <wlr/types/wlr_relative_pointer_v1.h>
82+
#include "../wlroots/include/wlr/render/egl.h"
83+
#include "../wlroots/include/wlr/render/gles2.h"
84+
#include "../wlroots/include/wlr/render/wlr_texture.h"
85+
#include "../wlroots/include/wlr/types/wlr_pointer_constraints_v1.h"
86+
#include "../wlroots/include/wlr/types/wlr_relative_pointer_v1.h"
8787
}
8888

8989
#undef class

wlroots

Submodule wlroots added at 75d3150

0 commit comments

Comments
 (0)