Initial commit

This commit is contained in:
2026-03-16 15:25:26 -08:00
commit 5a6fe00c9b
5 changed files with 314 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
PLUGIN_NAME := libhyprcolumns.so
PREFIX ?= $(HOME)/.local
LIBDIR := $(PREFIX)/lib/hyprland
CXX ?= c++
CXXFLAGS ?= -std=gnu++23 -O2 -fPIC -Wall -Wextra -Wpedantic
PKG_CFLAGS := $(shell pkg-config --cflags hyprland)
PKG_LIBS := $(shell pkg-config --libs hyprland)
SRC := src/main.cpp
all: $(PLUGIN_NAME)
$(PLUGIN_NAME): $(SRC)
$(CXX) $(CXXFLAGS) $(PKG_CFLAGS) -shared -o $@ $(SRC) $(PKG_LIBS)
install: $(PLUGIN_NAME)
mkdir -p $(LIBDIR)
install -m755 $(PLUGIN_NAME) $(LIBDIR)/$(PLUGIN_NAME)
clean:
rm -f $(PLUGIN_NAME)
.PHONY: all install clean