diff options
author | jaseg <git@jaseg.de> | 2021-09-26 15:45:09 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-09-29 16:38:13 +0200 |
commit | 8a64621e8c8610a45884df82b46859bc3297d3e3 (patch) | |
tree | 4b6265bb01377e16e66dddeee8259f40ea86d562 /svg-flatten/Makefile | |
parent | 7eb0b9d7e42a20b85bd7afbfe3d33d9dd5fa5794 (diff) | |
download | gerbolyze-8a64621e8c8610a45884df82b46859bc3297d3e3.tar.gz gerbolyze-8a64621e8c8610a45884df82b46859bc3297d3e3.tar.bz2 gerbolyze-8a64621e8c8610a45884df82b46859bc3297d3e3.zip |
CI/svg-flatten: add wasm builds
Diffstat (limited to 'svg-flatten/Makefile')
-rw-r--r-- | svg-flatten/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
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: |