From: Matthew Fernandez Date: Sat, 22 Aug 2020 15:21:13 +0000 (-0700) Subject: disambiguate lib/pathplan/*.c #includes X-Git-Tag: 2.46.0~20^2^2~90^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=621ace922d56081d6daeb5e782faa1e0973375a6;p=graphviz disambiguate lib/pathplan/*.c #includes Related to #1785. --- diff --git a/lib/pathplan/CMakeLists.txt b/lib/pathplan/CMakeLists.txt index 7ec68ced7..552d6243b 100644 --- a/lib/pathplan/CMakeLists.txt +++ b/lib/pathplan/CMakeLists.txt @@ -1,7 +1,5 @@ add_definitions(-D_BLD_pathplan -DPATHPLAN_EXPORTS) -include_directories(${CMAKE_CURRENT_SOURCE_DIR}) - add_library(pathplan SHARED # Header files pathgeom.h @@ -27,6 +25,11 @@ add_library(pathplan SHARED pathplan.def ) +target_include_directories(pathplan PRIVATE + ${GRAPHVIZ_LIB_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} +) + # Installation location of library files install( TARGETS pathplan diff --git a/lib/pathplan/Makefile.am b/lib/pathplan/Makefile.am index 4490374ad..3f631f1fa 100644 --- a/lib/pathplan/Makefile.am +++ b/lib/pathplan/Makefile.am @@ -6,8 +6,10 @@ PATHPLAN_VERSION="4:0:0" pdfdir = $(pkgdatadir)/doc/pdf pkgconfigdir = $(libdir)/pkgconfig +AM_CPPFLAGS = -I$(top_srcdir)/lib + if WITH_WIN32 -AM_CPPFLAGS = -O0 +AM_CPPFLAGS += -O0 endif pkginclude_HEADERS = pathgeom.h pathplan.h diff --git a/lib/pathplan/Pathplan.vcxproj b/lib/pathplan/Pathplan.vcxproj index 6f074112d..6ea0ed43a 100644 --- a/lib/pathplan/Pathplan.vcxproj +++ b/lib/pathplan/Pathplan.vcxproj @@ -51,7 +51,7 @@ Disabled - $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib\cdt;%(AdditionalIncludeDirectories) + $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;%(AdditionalIncludeDirectories) _DEBUG;_WINDOWS;_USRDLL;PATHPLAN_EXPORTS;WIN32_DLL;%(PreprocessorDefinitions) true EnableFastChecks @@ -72,7 +72,7 @@ - $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib\cdt;%(AdditionalIncludeDirectories) + $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;%(AdditionalIncludeDirectories) NDEBUG;_WINDOWS;_USRDLL;PATHPLAN_EXPORTS;WIN32_DLL;%(PreprocessorDefinitions) Level4 diff --git a/lib/pathplan/cvt.c b/lib/pathplan/cvt.c index 5d22194d1..5a0c56ddb 100644 --- a/lib/pathplan/cvt.c +++ b/lib/pathplan/cvt.c @@ -13,7 +13,7 @@ #include -#include "vis.h" +#include typedef Ppoint_t ilcoord_t; diff --git a/lib/pathplan/inpoly.c b/lib/pathplan/inpoly.c index 192d1ccea..708320f9f 100644 --- a/lib/pathplan/inpoly.c +++ b/lib/pathplan/inpoly.c @@ -19,8 +19,8 @@ */ #include -#include "vispath.h" -#include "pathutil.h" +#include +#include int in_poly(Ppoly_t poly, Ppoint_t q) { diff --git a/lib/pathplan/route.c b/lib/pathplan/route.c index 5a35710e6..9e0801221 100644 --- a/lib/pathplan/route.c +++ b/lib/pathplan/route.c @@ -17,8 +17,8 @@ #include #include #include -#include "pathutil.h" -#include "solvers.h" +#include +#include #define EPSILON1 1E-3 #define EPSILON2 1E-6 diff --git a/lib/pathplan/shortest.c b/lib/pathplan/shortest.c index 40dd055ad..58428abc2 100644 --- a/lib/pathplan/shortest.c +++ b/lib/pathplan/shortest.c @@ -18,7 +18,7 @@ #include #include #include -#include "pathutil.h" +#include #define ISCCW 1 #define ISCW 2 diff --git a/lib/pathplan/shortestpth.c b/lib/pathplan/shortestpth.c index a09266ac5..a79e660f3 100644 --- a/lib/pathplan/shortestpth.c +++ b/lib/pathplan/shortestpth.c @@ -12,7 +12,7 @@ *************************************************************************/ -#include "vis.h" +#include static COORD unseen = (double) INT_MAX; diff --git a/lib/pathplan/solvers.c b/lib/pathplan/solvers.c index 619f58dc5..1d76ed473 100644 --- a/lib/pathplan/solvers.c +++ b/lib/pathplan/solvers.c @@ -14,7 +14,7 @@ #include "config.h" #include -#include "solvers.h" +#include #ifndef HAVE_CBRT #define cbrt(x) ((x < 0) ? (-1*pow(-x, 1.0/3.0)) : pow (x, 1.0/3.0)) diff --git a/lib/pathplan/triang.c b/lib/pathplan/triang.c index 728024312..4923255b9 100644 --- a/lib/pathplan/triang.c +++ b/lib/pathplan/triang.c @@ -16,8 +16,8 @@ #include #include #include -#include "pathutil.h" -#include "tri.h" +#include +#include typedef struct lvertex_2_t { double x, y; diff --git a/lib/pathplan/util.c b/lib/pathplan/util.c index 5fabe03d6..01844d47d 100644 --- a/lib/pathplan/util.c +++ b/lib/pathplan/util.c @@ -14,7 +14,7 @@ #include #include -#include "pathutil.h" +#include #define ALLOC(size,ptr,type) (ptr? (type*)realloc(ptr,(size)*sizeof(type)):(type*)malloc((size)*sizeof(type))) diff --git a/lib/pathplan/visibility.c b/lib/pathplan/visibility.c index 33b9e54da..6549b333f 100644 --- a/lib/pathplan/visibility.c +++ b/lib/pathplan/visibility.c @@ -12,7 +12,7 @@ *************************************************************************/ -#include "vis.h" +#include /* TRANSPARENT means router sees past colinear obstacles */ #ifdef TRANSPARENT