From 8a64621e8c8610a45884df82b46859bc3297d3e3 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 26 Sep 2021 15:45:09 +0200 Subject: CI/svg-flatten: add wasm builds --- svg-flatten/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'svg-flatten/Makefile') diff --git a/svg-flatten/Makefile b/svg-flatten/Makefile index 94dab9b..202a14c 100644 --- a/svg-flatten/Makefile +++ b/svg-flatten/Makefile @@ -74,7 +74,7 @@ WASI_CXXFLAGS ?= -DNOFORK -DNOTHROW -DWASI -DPUGIXML_NO_EXCEPTIONS -fno-exceptio BINARY := svg-flatten -all: $(BUILDDIR)/$(BINARY) +all: $(BUILDDIR)/$(BINARY) $(BUILDDIR)/nopencv-test $(CACHEDIR)/$(WASI_SDK): mkdir -p $(dir $@) @@ -92,19 +92,20 @@ $(BUILDDIR)/host/%.o: %.cpp @mkdir -p $(dir $@) $(CXX) -c $(HOST_CXXFLAGS) $(HOST_CXXFLAGS) $(HOST_INCLUDES) -o $@ $< +.INTERMEDIATE: $(HOST_SOURCES:%.cpp=$(BUILDDIR)/host/%.o) $(BUILDDIR)/$(BINARY): $(HOST_SOURCES:%.cpp=$(BUILDDIR)/host/%.o) @mkdir -p $(dir $@) $(CXX) $(HOST_CXXFLAGS) -o $@ $^ $(HOST_LDFLAGS) $(BUILDDIR)/nopencv-test: src/test/nopencv_test.cpp src/nopencv.cpp src/util.cpp @mkdir -p $(dir $@) - $(CXX) $(CXXFLAGS) $(INCLUDES) -o $@ $^ $(LDFLAGS) + $(CXX) $(CXXFLAGS) $(INCLUDES) -o $@ $^ $(HOST_LDFLAGS) .PHONY: tests tests: $(BUILDDIR)/nopencv-test $(BUILDDIR)/nopencv-test - $(PYTHON3) src/test/svg_tests.py + $(PYTHON3) src/test/svg_tests.py || ( mkdir testcase-fails && cp /tmp/gerbolyze-*.{svg,png} testcase-fails/ && false ) .PHONY: install install: -- cgit