mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
chore: clean up makefile
This commit is contained in:
parent
38c1d00f3c
commit
0ad0a0e4b7
2 changed files with 11 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
compile_commands.events.json
|
||||||
out
|
out
|
||||||
.cache
|
.cache
|
||||||
result
|
result
|
||||||
|
|
17
Makefile
17
Makefile
|
@ -1,18 +1,21 @@
|
||||||
PLUGIN_NAME=dynamic-cursors
|
PLUGIN_NAME=dynamic-cursors
|
||||||
|
|
||||||
SOURCE_FILES=$(wildcard ./src/*.cpp ./src/*/*.cpp)
|
SOURCE_FILES=$(wildcard ./src/*.cpp ./src/*/*.cpp)
|
||||||
|
OUTPUT=out/$(PLUGIN_NAME).so
|
||||||
|
|
||||||
all: $(PLUGIN_NAME).so
|
.PHONY: all clean load unload
|
||||||
|
|
||||||
$(PLUGIN_NAME).so: $(SOURCE_FILES)
|
all: $(OUTPUT)
|
||||||
|
|
||||||
|
$(OUTPUT): $(SOURCE_FILES)
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
$(CXX) -shared -Wall --no-gnu-unique -fPIC $(SOURCE_FILES) -g `pkg-config --cflags hyprland | awk '{print $$NF "/src";}'` `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++26 -o out/$(PLUGIN_NAME).so
|
$(CXX) -shared -Wall --no-gnu-unique -fPIC $(SOURCE_FILES) -g `pkg-config --cflags hyprland | awk '{print $$NF "/src";}'` `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++26 -o $(OUTPUT)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f out/$(PLUGIN_NAME).so
|
rm -f $(OUTPUT)
|
||||||
rm -f compile_commands.json
|
|
||||||
|
|
||||||
load: all unload
|
load: all unload
|
||||||
hyprctl plugin load ${PWD}/out/$(PLUGIN_NAME).so
|
hyprctl plugin load ${PWD}/$(OUTPUT)
|
||||||
|
|
||||||
unload:
|
unload:
|
||||||
hyprctl plugin unload ${PWD}/out/$(PLUGIN_NAME).so
|
hyprctl plugin unload ${PWD}/$(OUTPUT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue