Related to #1242 and #1785.
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}
- ${GRAPHVIZ_LIB_DIR}/ast
- ${GRAPHVIZ_LIB_DIR}/cdt
- ${GRAPHVIZ_LIB_DIR}/cgraph
- ${GRAPHVIZ_LIB_DIR}/common
- ${GRAPHVIZ_LIB_DIR}/expr
- ${GRAPHVIZ_LIB_DIR}/gvc
- ${GRAPHVIZ_LIB_DIR}/gvpr
- ${GRAPHVIZ_LIB_DIR}/pathplan
- ${GRAPHVIZ_LIB_DIR}/sfio
- ${GRAPHVIZ_LIB_DIR}/vmalloc
- ${GRAPHVIZ_LIB_DIR}/xdot
-)
-
# Generate ps.h from ps.txt
add_custom_command(
OUTPUT ps.h
gvrender_core_vml.c
)
+target_include_directories(gvplugin_core PRIVATE
+ ${GRAPHVIZ_LIB_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${GRAPHVIZ_LIB_DIR}/ast
+ ${GRAPHVIZ_LIB_DIR}/cdt
+ ${GRAPHVIZ_LIB_DIR}/cgraph
+ ${GRAPHVIZ_LIB_DIR}/common
+ ${GRAPHVIZ_LIB_DIR}/expr
+ ${GRAPHVIZ_LIB_DIR}/gvc
+ ${GRAPHVIZ_LIB_DIR}/gvpr
+ ${GRAPHVIZ_LIB_DIR}/pathplan
+ ${GRAPHVIZ_LIB_DIR}/sfio
+ ${GRAPHVIZ_LIB_DIR}/vmalloc
+ ${GRAPHVIZ_LIB_DIR}/xdot
+)
+
target_link_libraries(gvplugin_core
cdt
cgraph
## Process this file with automake to produce Makefile.in
AM_CPPFLAGS = \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/pathplan \
-I$(top_srcdir)/lib/gvc \
#include <io.h>
#endif
-#include "gvplugin_loadimage.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "gvio.h"
+#include <gvc/gvplugin_loadimage.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <gvc/gvio.h>
extern void core_loadimage_xdot(GVJ_t*, usershape_t*, boxf, boolean);
extern shape_desc *find_user_shape(char *name);
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "gvplugin.h"
+#include <gvc/gvplugin.h>
extern gvplugin_installed_t gvdevice_dot_types[];
extern gvplugin_installed_t gvdevice_fig_types[];
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir);$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir);$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir);$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir);$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PrecompiledHeader />
<WarningLevel>Level4</WarningLevel>
<EnablePREfast>true</EnablePREfast>
#include <string.h>
#include <ctype.h>
-#include "macros.h"
-#include "const.h"
+#include <common/macros.h>
+#include <common/const.h>
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "gvcint.h"
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <gvc/gvcint.h>
typedef enum { FORMAT_DIA, } format_type;
#include <string.h>
#include <ctype.h>
-#include "macros.h"
-#include "const.h"
-
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "gvio.h"
+#include <common/macros.h>
+#include <common/const.h>
+
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <gvc/gvio.h>
#define GNEW(t) (t*)malloc(sizeof(t))
#include <io.h>
#endif
-#include "macros.h"
-#include "const.h"
-
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "color.h"
+#include <common/macros.h>
+#include <common/const.h>
+
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <common/color.h>
/* Number of points to split splines into */
#define BEZIERSUBDIVISION 6
#include <io.h>
#endif
-#include "macros.h"
-#include "const.h"
-
-#include "gvdevice.h"
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "color.h"
+#include <common/macros.h>
+#include <common/const.h>
+
+#include <gvc/gvdevice.h>
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <common/color.h>
/* Number of points to split splines into */
#define BEZIERSUBDIVISION 6
#include <string.h>
#include <ctype.h>
-#include "macros.h"
-#include "const.h"
-#include "xdot.h"
-
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "gvc.h"
-#include "gvio.h"
-#include "gvcint.h"
+#include <common/macros.h>
+#include <common/const.h>
+#include <xdot/xdot.h>
+
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <gvc/gvc.h>
+#include <gvc/gvio.h>
+#include <gvc/gvcint.h>
typedef enum {
FORMAT_JSON,
#include <stdlib.h>
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
extern char *xml_string(char *str);
extern char *xml_url_string(char *str);
#include <string.h>
#include <ctype.h>
-#include "macros.h"
-#include "const.h"
-
-#include "gvio.h"
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvcint.h"
-#include "strcasecmp.h"
+#include <common/macros.h>
+#include <common/const.h>
+
+#include <gvc/gvio.h>
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvcint.h>
+#include <cgraph/strcasecmp.h>
typedef enum { FORMAT_MIF, } format_type;
#include <io.h>
#endif
-#include "macros.h"
-#include "const.h"
-
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "color.h"
+#include <common/macros.h>
+#include <common/const.h>
+
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <common/color.h>
/* Number of points to split splines into */
#define BEZIERSUBDIVISION 6
#include <stdarg.h>
#include <ctype.h>
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "color.h"
-#include "colorprocs.h"
-
-#include "const.h"
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <common/color.h>
+#include <common/colorprocs.h>
+
+#include <common/const.h>
/* Number of points to split splines into */
#define BEZIERSUBDIVISION 6
#include <ctype.h>
#include <errno.h>
-#include "macros.h"
-#include "const.h"
+#include <common/macros.h>
+#include <common/const.h>
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "gvcint.h"
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <gvc/gvcint.h>
#define POV_VERSION \
"#version 3.6;\n"
#include <stdlib.h>
#include <string.h>
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "agxbuf.h"
-#include "utils.h"
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
#include "ps.h"
/* for CHAR_LATIN1 */
-#include "const.h"
+#include <common/const.h>
/*
* J$: added `pdfmark' URL embedding. PostScript rendered from
#include <string.h>
#include <ctype.h>
-#include "macros.h"
-#include "const.h"
-
-#include "gvplugin_render.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "gvcint.h"
-#include "strcasecmp.h"
+#include <common/macros.h>
+#include <common/const.h>
+
+#include <gvc/gvplugin_render.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <gvc/gvcint.h>
+#include <cgraph/strcasecmp.h>
#define LOCALNAMEPREFIX '%'
#include <stdlib.h>
#include <string.h>
-#include "macros.h"
-#include "const.h"
+#include <common/macros.h>
+#include <common/const.h>
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "gvcint.h"
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <gvc/gvcint.h>
typedef enum { FORMAT_TK, } format_type;
#include <string.h>
#include <inttypes.h>
-#include "macros.h"
-#include "const.h"
-
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "gvio.h"
-#include "memory.h"
-#include "strcasecmp.h"
+#include <common/macros.h>
+#include <common/const.h>
+
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <gvc/gvio.h>
+#include <common/memory.h>
+#include <cgraph/strcasecmp.h>
typedef enum { FORMAT_VML, FORMAT_VMLZ, } format_type;
#include <io.h>
#endif
-#include "macros.h"
-#include "const.h"
-
-#include "gvio.h"
-#include "gvplugin_render.h"
-#include "gvplugin_device.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "color.h"
+#include <common/macros.h>
+#include <common/const.h>
+
+#include <gvc/gvio.h>
+#include <gvc/gvplugin_render.h>
+#include <gvc/gvplugin_device.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <common/color.h>
/* Number of points to split splines into */
#define BEZIERSUBDIVISION 6