hypr-dynamic-cursors/Makefile

22 lines
522 B
Makefile
Raw Normal View History

2024-06-21 13:40:57 +02:00
PLUGIN_NAME=dynamic-cursors
2025-01-08 20:37:27 +01:00
2024-06-21 16:06:55 +02:00
SOURCE_FILES=$(wildcard ./src/*.cpp ./src/*/*.cpp)
2025-01-08 20:37:27 +01:00
OUTPUT=out/$(PLUGIN_NAME).so
.PHONY: all clean load unload
2024-06-21 13:40:57 +02:00
2025-01-08 20:37:27 +01:00
all: $(OUTPUT)
2024-06-21 13:40:57 +02:00
2025-01-08 20:37:27 +01:00
$(OUTPUT): $(SOURCE_FILES)
2024-06-21 13:40:57 +02:00
mkdir -p out
2025-01-08 20:37:27 +01:00
$(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)
2024-06-21 13:40:57 +02:00
clean:
2025-01-08 20:37:27 +01:00
rm -f $(OUTPUT)
2024-06-21 13:40:57 +02:00
load: all unload
2025-01-08 20:37:27 +01:00
hyprctl plugin load ${PWD}/$(OUTPUT)
2024-06-21 13:40:57 +02:00
unload:
2025-01-08 20:37:27 +01:00
hyprctl plugin unload ${PWD}/$(OUTPUT)