aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-05-01 01:04:25 +0100
committerGitHub <[email protected]>2023-05-01 01:04:25 +0100
commitdbf0b92de78377328e4895871923724883f74355 (patch)
treebc84c99dedd6e94c51b5432407cf19ac17eb1b4d /Makefile
parent02312cac59e8b22a823043ef64a34bc9cf0eef02 (diff)
downloadHyprland-dbf0b92de78377328e4895871923724883f74355.tar.gz
Hyprland-dbf0b92de78377328e4895871923724883f74355.zip
Plugin header overhaul 2: fixes (Electric boogaloo) (#2201)
* Add wlroots headers to makefile + fix pluginenv with new headers * Add wlroots to pc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 90e12619..87a6850e 100644
--- a/Makefile
+++ b/Makefile
@@ -49,11 +49,14 @@ install:
cp ./assets/wall_8K.png ${PREFIX}/share/hyprland
install -Dm644 -t ${PREFIX}/share/man/man1 ./docs/*.1
- mkdir -p ${PREFIX}/include/hyprland
+ mkdir -p ${PREFIX}/include/hyprland
mkdir -p ${PREFIX}/include/hyprland/protocols
+ mkdir -p ${PREFIX}/include/hyprland/wlroots
mkdir -p ${PREFIX}/share/pkgconfig
+
find src -name '*.h*' -exec cp --parents '{}' ${PREFIX}/include/hyprland ';'
+ cd subprojects/wlroots/include && find . -name '*.h*' -exec cp --parents '{}' ${PREFIX}/include/hyprland/wlroots ';' && cd ../../..
cp ./protocols/*-protocol.h ${PREFIX}/include/hyprland/protocols
cp ./build/hyprland.pc ${PREFIX}/share/pkgconfig
@@ -95,6 +98,16 @@ pluginenv:
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build -G Ninja
+ mkdir -p ${PREFIX}/include/hyprland
+ mkdir -p ${PREFIX}/include/hyprland/protocols
+ mkdir -p ${PREFIX}/include/hyprland/wlroots
+ mkdir -p ${PREFIX}/share/pkgconfig
+
+ find src -name '*.h*' -exec cp --parents '{}' ${PREFIX}/include/hyprland ';'
+ cd subprojects/wlroots/include && find . -name '*.h*' -exec cp --parents '{}' ${PREFIX}/include/hyprland/wlroots ';' && cd ../../..
+ cp ./protocols/*-protocol.h ${PREFIX}/include/hyprland/protocols
+ cp ./build/hyprland.pc ${PREFIX}/share/pkgconfig
+
configdebug:
make fixwlr