aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten
diff options
context:
space:
mode:
Diffstat (limited to 'svg-flatten')
-rw-r--r--svg-flatten/Makefile9
-rw-r--r--svg-flatten/src/test/svg_tests.py4
2 files changed, 6 insertions, 7 deletions
diff --git a/svg-flatten/Makefile b/svg-flatten/Makefile
index 2c9ff6c..18edfd9 100644
--- a/svg-flatten/Makefile
+++ b/svg-flatten/Makefile
@@ -26,11 +26,11 @@ SOURCES := src/svg_color.cpp \
src/lambda_sink.cpp \
src/flatten.cpp \
src/nopencv.cpp \
- $(UPSTREAM_DIR)/cpp-base64/base64.cpp
+ $(UPSTREAM_DIR)/cpp-base64/base64.cpp \
+ $(UPSTREAM_DIR)/clipper-6.4.2/cpp/clipper.cpp \
+ $(UPSTREAM_DIR)/pugixml/src/pugixml.cpp
-PUGIXML_SOURCES ?= $(UPSTREAM_DIR)/pugixml/src/pugixml.cpp
PUGIXML_INCLUDES ?= -I$(UPSTREAM_DIR)/pugixml/src
-CLIPPER_SOURCES ?= $(UPSTREAM_DIR)/clipper-6.4.2/cpp/clipper.cpp
CLIPPER_INCLUDES ?= -I$(UPSTREAM_DIR)/clipper-6.4.2/cpp
VORONOI_INCLUDES ?= -I$(UPSTREAM_DIR)/voronoi/src
POISSON_INCLUDES ?= -I$(UPSTREAM_DIR)/poisson-disk-sampling/thinks/poisson_disk_sampling/
@@ -41,10 +41,9 @@ SUBPROCESS_INCLUDES ?= -I$(UPSTREAM_DIR)/subprocess.h
MINUNIT_INCLUDES ?= -I$(UPSTREAM_DIR)/minunit
STB_INCLUDES ?= -isystem$(UPSTREAM_DIR)/stb
-SOURCES += $(CLIPPER_SOURCES)
INCLUDES := -Iinclude -Isrc $(CLIPPER_INCLUDES) $(VORONOI_INCLUDES) $(POISSON_INCLUDES) $(BASE64_INCLUDES) $(ARGAGG_INCLUDES) $(CAVC_INCLUDES) $(SUBPROCESS_INCLUDES) $(MINUNIT_INCLUDES) $(STB_INCLUDES)
-CXXFLAGS := -std=c++2a -g -Wall -Wextra -O0
+CXXFLAGS := -std=c++2a -g -Wall -Wextra -O2
LDFLAGS := -lm
PKG_CONFIG_DEPS :=
diff --git a/svg-flatten/src/test/svg_tests.py b/svg-flatten/src/test/svg_tests.py
index e4cff76..f98e367 100644
--- a/svg-flatten/src/test/svg_tests.py
+++ b/svg-flatten/src/test/svg_tests.py
@@ -100,9 +100,9 @@ class SVGRoundTripTests(unittest.TestCase):
#print_stats(ref)
#print_stats(out)
- print(f'{test_name}: mean={delta.mean():.5g}')
+ # print(f'{test_name}: mean={delta.mean():.5g}')
- self.fail('debug')
+ # self.fail('debug')
self.assertTrue(delta.mean() < mean,
f'Expected mean pixel difference between images to be <{mean}, was {delta.mean():.5g}')