aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-01-30 20:01:00 +0100
committerjaseg <git@jaseg.de>2021-01-30 20:01:00 +0100
commit2133867c8a86337c6668f9cfff06e4de9bd0bcce (patch)
treea8d1a9b41f7ae18a5a258e139635e4c54a990fc7
parent617a42a674bea6fcd90e19092303ce89acf4206e (diff)
downloadgerbolyze-2133867c8a86337c6668f9cfff06e4de9bd0bcce.tar.gz
gerbolyze-2133867c8a86337c6668f9cfff06e4de9bd0bcce.tar.bz2
gerbolyze-2133867c8a86337c6668f9cfff06e4de9bd0bcce.zip
Reorg: move svg-flatten files into subdir
-rw-r--r--svg-flatten/Makefile (renamed from Makefile)25
-rw-r--r--svg-flatten/include/gerbolyze.hpp (renamed from include/gerbolyze.hpp)0
-rw-r--r--svg-flatten/src/lambda_sink.cpp (renamed from src/lambda_sink.cpp)0
-rw-r--r--svg-flatten/src/main.cpp (renamed from src/main.cpp)0
-rw-r--r--svg-flatten/src/out_dilater.cpp (renamed from src/out_dilater.cpp)0
-rw-r--r--svg-flatten/src/out_flattener.cpp (renamed from src/out_flattener.cpp)0
-rw-r--r--svg-flatten/src/out_gerber.cpp (renamed from src/out_gerber.cpp)0
-rw-r--r--svg-flatten/src/out_sexp.cpp (renamed from src/out_sexp.cpp)0
-rw-r--r--svg-flatten/src/out_svg.cpp (renamed from src/out_svg.cpp)0
-rw-r--r--svg-flatten/src/svg_color.cpp (renamed from src/svg_color.cpp)0
-rw-r--r--svg-flatten/src/svg_color.h (renamed from src/svg_color.h)0
-rw-r--r--svg-flatten/src/svg_doc.cpp (renamed from src/svg_doc.cpp)0
-rw-r--r--svg-flatten/src/svg_geom.cpp (renamed from src/svg_geom.cpp)0
-rw-r--r--svg-flatten/src/svg_geom.h (renamed from src/svg_geom.h)0
-rw-r--r--svg-flatten/src/svg_import_defs.h (renamed from src/svg_import_defs.h)0
-rw-r--r--svg-flatten/src/svg_import_util.cpp (renamed from src/svg_import_util.cpp)0
-rw-r--r--svg-flatten/src/svg_import_util.h (renamed from src/svg_import_util.h)0
-rw-r--r--svg-flatten/src/svg_path.cpp (renamed from src/svg_path.cpp)0
-rw-r--r--svg-flatten/src/svg_path.h (renamed from src/svg_path.h)0
-rw-r--r--svg-flatten/src/svg_pattern.cpp (renamed from src/svg_pattern.cpp)0
-rw-r--r--svg-flatten/src/svg_pattern.h (renamed from src/svg_pattern.h)0
-rw-r--r--svg-flatten/src/vec_core.cpp (renamed from src/vec_core.cpp)0
-rw-r--r--svg-flatten/src/vec_core.h (renamed from src/vec_core.h)0
-rw-r--r--svg-flatten/src/vec_grid.cpp (renamed from src/vec_grid.cpp)0
-rw-r--r--svg-flatten/src/vec_grid.h (renamed from src/vec_grid.h)0
25 files changed, 12 insertions, 13 deletions
diff --git a/Makefile b/svg-flatten/Makefile
index 541af04..00a17dd 100644
--- a/Makefile
+++ b/svg-flatten/Makefile
@@ -4,6 +4,7 @@ LD := ld
PKG_CONFIG ?= pkg-config
BUILDDIR ?= build
+UPSTREAM_DIR ?= ../upstream
SOURCES := src/svg_color.cpp \
src/svg_doc.cpp \
@@ -20,15 +21,16 @@ SOURCES := src/svg_color.cpp \
src/out_flattener.cpp \
src/out_dilater.cpp \
src/lambda_sink.cpp \
+ $(UPSTREAM_DIR)/cpp-base64/base64.cpp
-CLIPPER_SOURCES ?= upstream/clipper-6.4.2/cpp/clipper.cpp upstream/clipper-6.4.2/cpp/cpp_cairo/cairo_clipper.cpp
-CLIPPER_INCLUDES ?= -Iupstream/clipper-6.4.2/cpp -Iupstream/clipper-6.4.2/cpp/cpp_cairo/
-VORONOI_INCLUDES ?= -Iupstream/voronoi/src
-POISSON_INCLUDES ?= -Iupstream/poisson-disk-sampling/thinks/poisson_disk_sampling/
-BASE64_INCLUDES ?= -Iupstream/cpp-base64
-ARGAGG_INCLUDES ?= -Iupstream/argagg/include/argagg
-CAVC_INCLUDES ?= -Iupstream/CavalierContours/include/cavc/
-SUBPROCESS_INCLUDES ?= -Iupstream/subprocess.h
+CLIPPER_SOURCES ?= $(UPSTREAM_DIR)/clipper-6.4.2/cpp/clipper.cpp $(UPSTREAM_DIR)/clipper-6.4.2/cpp/cpp_cairo/cairo_clipper.cpp
+CLIPPER_INCLUDES ?= -I$(UPSTREAM_DIR)/clipper-6.4.2/cpp -I$(UPSTREAM_DIR)/clipper-6.4.2/cpp/cpp_cairo/
+VORONOI_INCLUDES ?= -I$(UPSTREAM_DIR)/voronoi/src
+POISSON_INCLUDES ?= -I$(UPSTREAM_DIR)/poisson-disk-sampling/thinks/poisson_disk_sampling/
+BASE64_INCLUDES ?= -I$(UPSTREAM_DIR)/cpp-base64
+ARGAGG_INCLUDES ?= -I$(UPSTREAM_DIR)/argagg/include/argagg
+CAVC_INCLUDES ?= -I$(UPSTREAM_DIR)/CavalierContours/include/cavc/
+SUBPROCESS_INCLUDES ?= -I$(UPSTREAM_DIR)/subprocess.h
SOURCES += $(CLIPPER_SOURCES)
INCLUDES := -Iinclude -Isrc $(CLIPPER_INCLUDES) $(VORONOI_INCLUDES) $(POISSON_INCLUDES) $(BASE64_INCLUDES) $(ARGAGG_INCLUDES) $(CAVC_INCLUDES) $(SUBPROCESS_INCLUDES)
@@ -39,18 +41,15 @@ CXXFLAGS += $(shell $(PKG_CONFIG) --cflags pangocairo pugixml opencv4)
LDFLAGS := -lm -lc -lstdc++
LDFLAGS += $(shell $(PKG_CONFIG) --libs pangocairo pugixml opencv4)
-TARGET := svg-render
+TARGET := svg-flatten
all: $(BUILDDIR)/$(TARGET)
-test.gbr test.svg &: render
- ./render test.svg > test.gbr
-
$(BUILDDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
$(CXX) -c $(CXXFLAGS) $(CXXFLAGS) $(INCLUDES) -o $@ $^
-$(BUILDDIR)/$(TARGET): $(SOURCES:%.cpp=$(BUILDDIR)/%.o) $(BUILDDIR)/upstream/cpp-base64/base64.o
+$(BUILDDIR)/$(TARGET): $(SOURCES:%.cpp=$(BUILDDIR)/%.o)
@mkdir -p $(dir $@)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
diff --git a/include/gerbolyze.hpp b/svg-flatten/include/gerbolyze.hpp
index 1fe13ae..1fe13ae 100644
--- a/include/gerbolyze.hpp
+++ b/svg-flatten/include/gerbolyze.hpp
diff --git a/src/lambda_sink.cpp b/svg-flatten/src/lambda_sink.cpp
index 5172f24..5172f24 100644
--- a/src/lambda_sink.cpp
+++ b/svg-flatten/src/lambda_sink.cpp
diff --git a/src/main.cpp b/svg-flatten/src/main.cpp
index 135a4c1..135a4c1 100644
--- a/src/main.cpp
+++ b/svg-flatten/src/main.cpp
diff --git a/src/out_dilater.cpp b/svg-flatten/src/out_dilater.cpp
index c0e5969..c0e5969 100644
--- a/src/out_dilater.cpp
+++ b/svg-flatten/src/out_dilater.cpp
diff --git a/src/out_flattener.cpp b/svg-flatten/src/out_flattener.cpp
index 8868ca2..8868ca2 100644
--- a/src/out_flattener.cpp
+++ b/svg-flatten/src/out_flattener.cpp
diff --git a/src/out_gerber.cpp b/svg-flatten/src/out_gerber.cpp
index c320184..c320184 100644
--- a/src/out_gerber.cpp
+++ b/svg-flatten/src/out_gerber.cpp
diff --git a/src/out_sexp.cpp b/svg-flatten/src/out_sexp.cpp
index 9a04416..9a04416 100644
--- a/src/out_sexp.cpp
+++ b/svg-flatten/src/out_sexp.cpp
diff --git a/src/out_svg.cpp b/svg-flatten/src/out_svg.cpp
index 159bf13..159bf13 100644
--- a/src/out_svg.cpp
+++ b/svg-flatten/src/out_svg.cpp
diff --git a/src/svg_color.cpp b/svg-flatten/src/svg_color.cpp
index 5f1d693..5f1d693 100644
--- a/src/svg_color.cpp
+++ b/svg-flatten/src/svg_color.cpp
diff --git a/src/svg_color.h b/svg-flatten/src/svg_color.h
index 2817cd9..2817cd9 100644
--- a/src/svg_color.h
+++ b/svg-flatten/src/svg_color.h
diff --git a/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp
index 3b253be..3b253be 100644
--- a/src/svg_doc.cpp
+++ b/svg-flatten/src/svg_doc.cpp
diff --git a/src/svg_geom.cpp b/svg-flatten/src/svg_geom.cpp
index 385e848..385e848 100644
--- a/src/svg_geom.cpp
+++ b/svg-flatten/src/svg_geom.cpp
diff --git a/src/svg_geom.h b/svg-flatten/src/svg_geom.h
index 5f00479..5f00479 100644
--- a/src/svg_geom.h
+++ b/svg-flatten/src/svg_geom.h
diff --git a/src/svg_import_defs.h b/svg-flatten/src/svg_import_defs.h
index e25c52c..e25c52c 100644
--- a/src/svg_import_defs.h
+++ b/svg-flatten/src/svg_import_defs.h
diff --git a/src/svg_import_util.cpp b/svg-flatten/src/svg_import_util.cpp
index efa7701..efa7701 100644
--- a/src/svg_import_util.cpp
+++ b/svg-flatten/src/svg_import_util.cpp
diff --git a/src/svg_import_util.h b/svg-flatten/src/svg_import_util.h
index a6cd2d6..a6cd2d6 100644
--- a/src/svg_import_util.h
+++ b/svg-flatten/src/svg_import_util.h
diff --git a/src/svg_path.cpp b/svg-flatten/src/svg_path.cpp
index 537b5dd..537b5dd 100644
--- a/src/svg_path.cpp
+++ b/svg-flatten/src/svg_path.cpp
diff --git a/src/svg_path.h b/svg-flatten/src/svg_path.h
index 9c65fdd..9c65fdd 100644
--- a/src/svg_path.h
+++ b/svg-flatten/src/svg_path.h
diff --git a/src/svg_pattern.cpp b/svg-flatten/src/svg_pattern.cpp
index b62df28..b62df28 100644
--- a/src/svg_pattern.cpp
+++ b/svg-flatten/src/svg_pattern.cpp
diff --git a/src/svg_pattern.h b/svg-flatten/src/svg_pattern.h
index e6a6fe2..e6a6fe2 100644
--- a/src/svg_pattern.h
+++ b/svg-flatten/src/svg_pattern.h
diff --git a/src/vec_core.cpp b/svg-flatten/src/vec_core.cpp
index 9d2909f..9d2909f 100644
--- a/src/vec_core.cpp
+++ b/svg-flatten/src/vec_core.cpp
diff --git a/src/vec_core.h b/svg-flatten/src/vec_core.h
index 8267fd1..8267fd1 100644
--- a/src/vec_core.h
+++ b/svg-flatten/src/vec_core.h
diff --git a/src/vec_grid.cpp b/svg-flatten/src/vec_grid.cpp
index 7c27543..7c27543 100644
--- a/src/vec_grid.cpp
+++ b/svg-flatten/src/vec_grid.cpp
diff --git a/src/vec_grid.h b/svg-flatten/src/vec_grid.h
index f2ed55a..f2ed55a 100644
--- a/src/vec_grid.h
+++ b/svg-flatten/src/vec_grid.h