File: 03-use-system-dxflib.patch

package info (click to toggle)
horizon-eda 2.4.0-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 32,192 kB
  • sloc: cpp: 265,690; ansic: 3,824; python: 2,085; makefile: 1,126; xml: 378; sql: 219; sh: 185; ruby: 61
file content (22 lines) | stat: -rw-r--r-- 808 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Use dxflib shipped with debian
Author: Wookey <wookey@debian.org>

--- a/Makefile
+++ b/Makefile
@@ -408,8 +408,6 @@
 	src/widgets/pool_browser_stockinfo.cpp\
 	src/widgets/plane_editor.cpp\
 	src/widgets/title_block_values_editor.cpp\
-	3rd_party/dxflib/dl_dxf.cpp\
-	3rd_party/dxflib/dl_writer_ascii.cpp\
 	src/import_dxf/dxf_importer.cpp\
 	src/imp/rules/rules_window.cpp\
 	src/imp/rules/rule_editor.cpp\
@@ -799,6 +797,7 @@
 DEBUGFLAGS = -g3
 WARNFLAGS = -Wall -Wshadow
 PKG_CONFIG_LIBS := $(shell $(PKG_CONFIG) --cflags $(LIBS_ALL))
+CXXFLAGS += $(CPPFLAGS)
 CXXFLAGS += $(DEBUGFLAGS) $(DEFINES) $(OPTIMIZE) $(PKG_CONFIG_LIBS) -MP -MD -pthread $(WARNFLAGS) -std=c++17
 CFLAGS = $(filter-out -Wsuggest-override, $(filter-out -std=%,$(CXXFLAGS))) -std=c99
 LDFLAGS += -lm -lpthread -lstdc++