From: Erwin Janssen Date: Wed, 30 Aug 2017 11:04:08 +0000 (+0200) Subject: Add lib/ast to include directories for lib/gvc X-Git-Tag: 2.42.0~109^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=629d143153ee359eea1a2098deee21fc87545164;p=graphviz Add lib/ast to include directories for lib/gvc The addition of including `unistd.h` or `compat_unistd.h` in gvplugin.c caused the build to fail on Windows because `compat_unistd.h` could not be found. The compatibility header is located in `lib/ast`, which is now added to the include directories. This resolves the error of the failed build on Windows. --- diff --git a/lib/gvc.vcxproj b/lib/gvc.vcxproj index fa20bc4d3..e547a6bfc 100644 --- a/lib/gvc.vcxproj +++ b/lib/gvc.vcxproj @@ -51,7 +51,7 @@ Disabled - $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\GTK2\include;$(SolutionDir)windows\dependencies\libraries\x86\include;$(SolutionDir);$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\fdpgen;$(SolutionDir)lib\label;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\gvc;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories) + $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\GTK2\include;$(SolutionDir)windows\dependencies\libraries\x86\include;$(SolutionDir);$(SolutionDir)lib\ast;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\fdpgen;$(SolutionDir)lib\label;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\gvc;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_WINDOWS;_USRDLL;GVC_EXPORTS;WIN32_DLL;%(PreprocessorDefinitions) true EnableFastChecks @@ -88,7 +88,7 @@ awk -f $(SolutionDir)awk\colortbl.awk color_lib > common\colortbl.h - $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\GTK2\include;$(SolutionDir)windows\dependencies\libraries\x86\include;$(SolutionDir);$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\fdpgen;$(SolutionDir)lib\label;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\gvc;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories) + $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\GTK2\include;$(SolutionDir)windows\dependencies\libraries\x86\include;$(SolutionDir);$(SolutionDir)lib\ast;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\fdpgen;$(SolutionDir)lib\label;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\gvc;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories) NDEBUG;_WINDOWS;_USRDLL;GVC_EXPORTS;WIN32_DLL;%(PreprocessorDefinitions) Level4 @@ -232,4 +232,4 @@ awk -f $(SolutionDir)awk\colortbl.awk color_lib > common\colortbl.h - + \ No newline at end of file diff --git a/lib/gvc/CMakeLists.txt b/lib/gvc/CMakeLists.txt index fa2abad1c..1e83671e7 100644 --- a/lib/gvc/CMakeLists.txt +++ b/lib/gvc/CMakeLists.txt @@ -3,6 +3,7 @@ add_definitions(-D_BLD_gvc=1 -DGVC_EXPORTS -DGVLIBDIR="${LIBRARY_INSTALL_DIR}/gr include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${TOP_SOURCE_DIR} + ${GRAPHVIZ_LIB_DIR}/ast ${GRAPHVIZ_LIB_DIR}/cdt ${GRAPHVIZ_LIB_DIR}/cgraph ${GRAPHVIZ_LIB_DIR}/common