hyprland-plugins/hyprbars/Makefile
Vaxry dbe221941a
bars/vkfix/focus: chase hyprland
Chase hyprland changes, fix for lua. Too lazy to do expo and b++ rn.
2026-04-26 17:15:05 +01:00

28 lines
596 B
Makefile

# Else exist specifically for clang
ifeq ($(CXX),g++)
EXTRA_FLAGS = --no-gnu-unique
else
EXTRA_FLAGS =
endif
CXXFLAGS ?= -O2
CXXFLAGS += -shared -fPIC -std=c++2b -Wno-c++11-narrowing
INCLUDES = `pkg-config --cflags pixman-1 libdrm hyprland libinput libudev wayland-server xkbcommon`
LIBS =
SRC = main.cpp barDeco.cpp BarPassElement.cpp
TARGET = hyprbars.so
all: $(TARGET)
$(TARGET): $(SRC)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $^ $> -o $@ $(LIBS)
clean:
rm ./$(TARGET)
meson-build:
mkdir -p build
cd build && meson .. && ninja
.PHONY: all meson-build clean