mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-24 19:25:59 +01:00
20 lines
481 B
Makefile
20 lines
481 B
Makefile
CXXFLAGS = -shared -fPIC --no-gnu-unique -g -std=c++2b -Wno-c++11-narrowing
|
|
INCLUDES = `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon`
|
|
LIBS = `pkg-config --libs pangocairo`
|
|
|
|
SRC = main.cpp barDeco.cpp
|
|
TARGET = hyprbars.so
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(SRC)
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $^ $> -o $@ $(LIBS) -O2
|
|
|
|
clean:
|
|
rm ./$(TARGET)
|
|
|
|
meson-build:
|
|
mkdir -p build
|
|
cd build && meson .. && ninja
|
|
|
|
.PHONY: all meson-build clean
|