mirror of
https://github.com/ItsDrike/hyprland-dwindle-autogroup.git
synced 2025-06-28 21:40:42 +00:00
Initial commit
This commit is contained in:
commit
2d883200bc
11 changed files with 442 additions and 0 deletions
28
Makefile
Normal file
28
Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
# compile with HYPRLAND_HEADERS=<path_to_hl> make all
|
||||
# make sure that the path above is to the root hl repo directory, NOT src/
|
||||
# and that you have ran `make protocols` in the hl dir.
|
||||
|
||||
PLUGIN_NAME=dwindle-autogroup
|
||||
|
||||
SOURCE_FILES=$(wildcard src/*.cpp)
|
||||
|
||||
.PHONY: clean clangd
|
||||
|
||||
all: check_env $(PLUGIN_NAME).so
|
||||
|
||||
install: all
|
||||
cp $(PLUGIN_NAME).so ${HOME}/.local/share/hyprload/plugins/bin
|
||||
|
||||
check_env:
|
||||
ifndef HYPRLAND_HEADERS
|
||||
$(error HYPRLAND_HEADERS is undefined! Please set it to the path to the root of the configured Hyprland repo)
|
||||
endif
|
||||
|
||||
$(PLUGIN_NAME).so: $(SOURCE_FILES) $(INCLUDE_FILES)
|
||||
g++ -shared -fPIC --no-gnu-unique $(SOURCE_FILES) -o $(PLUGIN_NAME).so -g -I "/usr/include/pixman-1" -I "/usr/include/libdrm" -I "${HYPRLAND_HEADERS}" -Iinclude -std=c++23
|
||||
|
||||
clean:
|
||||
rm ./${PLUGIN_NAME}.so
|
||||
|
||||
clangd:
|
||||
printf "%b" "-I/usr/include/pixman-1\n-I/usr/include/libdrm\n-I${HYPRLAND_HEADERS}\n-Iinclude\n-std=c++2b" > compile_flags.txt
|
Loading…
Add table
Add a link
Reference in a new issue