This commit is contained in:
2026-02-17 23:13:20 +03:00
parent 65218abfb1
commit e52dde575a
429 changed files with 875 additions and 14 deletions

View File

@ -0,0 +1,23 @@
DIRS=dist build $(PLUGIN_DIR)
CXX=clang++ -std=c++23 -O3
NAME=seam_carving
PLUGIN_DIR=$(HOME)/.config/GIMP/3.0/plug-ins/$(NAME)
all: $(DIRS) $(PLUGIN_DIR)/$(NAME)
$(PLUGIN_DIR)/$(NAME): dist/plugin
cp $< $@
dist/plugin: build/plugin.o
$(CXX) $< -o $@ $(shell pkg-config --libs gimp-3.0 gimpui-3.0 gegl-0.4)
chmod +x $@
build/plugin.o: plugin.cpp
$(CXX) -c $< -o $@ $(shell pkg-config --cflags gimp-3.0 gimpui-3.0 gegl-0.4)
clean:
rm -rf $(DIRS)
rm compile_commands.json
$(DIRS):
mkdir -p $@