From 54e8e786122ae5e8d87a49d19eb2e8c57eb06e6b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 25 Jun 2022 12:13:24 +0200 Subject: save wlroots and restore --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bb753451..aa3a52f8 100644 --- a/Makefile +++ b/Makefile @@ -107,6 +107,9 @@ all: cd ./hyprctl && make all && cd .. install: + [ ! -d /usr/include/wlr ] || mv /usr/include/wlr /usr/include/wlrBackup + [ ! -f /usr/lib/libwlroots.so ] || mv /usr/lib/libwlroots.so /usr/lib/libwlroots.so.backup + make all mkdir -p ${PREFIX}/share/wayland-sessions cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions/ @@ -118,6 +121,10 @@ install: cp ./assets/wall_4K.png ${PREFIX}/share/hyprland cp ./assets/wall_8K.png ${PREFIX}/share/hyprland + rm -rf /usr/include/wlr + [ ! -d /usr/include/wlrBackup ] || mv /usr/include/wlrBackup /usr/include/wlr + [ ! -f /usr/lib/libwlroots.so.backup ] || mv -f /usr/lib/libwlroots.so.backup /usr/lib/libwlroots.so + uninstall: rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop rm -f ${PREFIX}/bin/Hyprland -- cgit v1.2.3 From 7dad15035a418d567eac1b99781a6aa8e2be09b3 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 27 Jun 2022 11:40:23 +0200 Subject: forgot wlroots.pc --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index aa3a52f8..618e755e 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,7 @@ all: install: [ ! -d /usr/include/wlr ] || mv /usr/include/wlr /usr/include/wlrBackup [ ! -f /usr/lib/libwlroots.so ] || mv /usr/lib/libwlroots.so /usr/lib/libwlroots.so.backup + [ ! -f /usr/lib/pkgconfig/wlroots.pc ] || mv /usr/lib/pkgconfig/wlroots.pc /usr/lib/pkgconfig/wlroots.pc.backup make all mkdir -p ${PREFIX}/share/wayland-sessions @@ -124,6 +125,7 @@ install: rm -rf /usr/include/wlr [ ! -d /usr/include/wlrBackup ] || mv /usr/include/wlrBackup /usr/include/wlr [ ! -f /usr/lib/libwlroots.so.backup ] || mv -f /usr/lib/libwlroots.so.backup /usr/lib/libwlroots.so + [ ! -f /usr/lib/pkgconfig/wlroots.pc.backup ] || mv -f /usr/lib/pkgconfig/wlroots.pc.backup /usr/lib/pkgconfig/wlroots.pc uninstall: rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop -- cgit v1.2.3 From 07013b835dc9c4d03e94bdabfca796ea447708a8 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 27 Jun 2022 11:42:52 +0200 Subject: remove so and pc --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 618e755e..4c281568 100644 --- a/Makefile +++ b/Makefile @@ -123,6 +123,8 @@ install: cp ./assets/wall_8K.png ${PREFIX}/share/hyprland rm -rf /usr/include/wlr + rm -f /usr/lib/libwlroots.so + rm -f /usr/lib/pkgconfig/wlroots.pc [ ! -d /usr/include/wlrBackup ] || mv /usr/include/wlrBackup /usr/include/wlr [ ! -f /usr/lib/libwlroots.so.backup ] || mv -f /usr/lib/libwlroots.so.backup /usr/lib/libwlroots.so [ ! -f /usr/lib/pkgconfig/wlroots.pc.backup ] || mv -f /usr/lib/pkgconfig/wlroots.pc.backup /usr/lib/pkgconfig/wlroots.pc -- cgit v1.2.3 From bbc3b5e19bf52a860a687bc98b7daf50f19261d4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 29 Jun 2022 13:30:28 +0200 Subject: added make fixwlr --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4c281568..827080e7 100644 --- a/Makefile +++ b/Makefile @@ -137,13 +137,16 @@ uninstall: 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 tablet-unstable-v2-protocol.o -config: - make protocols - +fixwlr: sed -i -E 's/(soversion = 11)([^032]|$$)/soversion = 11032/g' subprojects/wlroots/meson.build rm -rf ./subprojects/wlroots/build +config: + make protocols + + make fixwlr + cd subprojects/wlroots && meson ./build --prefix=/usr --buildtype=release cd subprojects/wlroots && ninja -C build/ -- cgit v1.2.3 From 7d20d5c8c3f4014a637f6987985d1cf011327aa1 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 29 Jun 2022 23:06:45 +0200 Subject: fix make clear wlroots --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 827080e7..227d340f 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,7 @@ clear: rm -rf build rm -f *.o *-protocol.h *-protocol.c rm -f ./hyprctl/hyprctl - rm -rf ./wlroots/build + rm -rf ./subprojects/wlroots/build all: make config -- cgit v1.2.3