diff options
author | jaseg <git@jaseg.de> | 2021-06-02 15:05:36 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-02 15:05:36 +0200 |
commit | 6cca4a3278c30fb35e97dd0017c5a5a25a78bcf0 (patch) | |
tree | f072376d37410477b809fc48af61666cca4ca1c7 /svg-flatten/Makefile | |
parent | 3e58a4228bff78e2c51136312337fc4b47efa587 (diff) | |
download | gerbolyze-6cca4a3278c30fb35e97dd0017c5a5a25a78bcf0.tar.gz gerbolyze-6cca4a3278c30fb35e97dd0017c5a5a25a78bcf0.tar.bz2 gerbolyze-6cca4a3278c30fb35e97dd0017c5a5a25a78bcf0.zip |
Port svg-flatten to nopencv
Diffstat (limited to 'svg-flatten/Makefile')
-rw-r--r-- | svg-flatten/Makefile | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/svg-flatten/Makefile b/svg-flatten/Makefile index 0824561..30f3966 100644 --- a/svg-flatten/Makefile +++ b/svg-flatten/Makefile @@ -25,6 +25,7 @@ SOURCES := src/svg_color.cpp \ src/out_dilater.cpp \ src/lambda_sink.cpp \ src/flatten.cpp \ + src/nopencv.cpp \ $(UPSTREAM_DIR)/cpp-base64/base64.cpp CLIPPER_SOURCES ?= $(UPSTREAM_DIR)/clipper-6.4.2/cpp/clipper.cpp @@ -44,14 +45,9 @@ INCLUDES := -Iinclude -Isrc $(CLIPPER_INCLUDES) $(VORONOI_INCLUDES) $(POISSON_IN PKG_CONFIG_DEPS := pugixml CXXFLAGS := -std=c++2a -g -Wall -Wextra -O0 CXXFLAGS += $(shell $(PKG_CONFIG) --cflags $(PKG_CONFIG_DEPS)) -# hack for stone age opencv in debian stable -CXXFLAGS += $(shell $(PKG_CONFIG) --cflags opencv4 2> /dev/null || $(PKG_CONFIG) --cflags opencv 2>/dev/null) LDFLAGS := -lm -lc -lstdc++ LDFLAGS += $(shell $(PKG_CONFIG) --libs $(PKG_CONFIG_DEPS)) -# debian hack. see above. -OPENCV_LDFLAGS := $(shell $(PKG_CONFIG) --libs opencv4 2> /dev/null || $(PKG_CONFIG) --libs opencv 2>/dev/null) -LDFLAGS += $(shell echo $(OPENCV_LDFLAGS) | sed 's/-l\S\+ //g') -lopencv_core -lopencv_imgproc -lopencv_imgcodecs TARGET := svg-flatten @@ -61,8 +57,6 @@ all: $(BUILDDIR)/$(TARGET) check-deps: @echo @$(PKG_CONFIG) --cflags --libs pugixml >/dev/null - # debian hack. see above. - @$(PKG_CONFIG) --cflags --libs opencv4 >/dev/null ||$(PKG_CONFIG) --cflags --libs opencv >/dev/null $(BUILDDIR)/%.o: %.cpp @mkdir -p $(dir $@) |