]> granicus.if.org Git - graphviz/log
graphviz
7 years agoRemove HAVE_LIBGD check from plugin/gd
Erwin Janssen [Fri, 31 Mar 2017 11:06:41 +0000 (13:06 +0200)]
Remove HAVE_LIBGD check from plugin/gd

This check should exist only in the build configuration, if plugin/gd gets
build, then libgd should _always_ be available. Otherwise, mistakenly
building plugin/gd without defining HAVE_LIBGD, will lead to believe that
the build is succesfull, while in truth nothing gets build.

7 years agoRemove declared, not defined, function from cdt.h
Erwin Janssen [Fri, 31 Mar 2017 07:06:41 +0000 (09:06 +0200)]
Remove declared, not defined, function from cdt.h

Remove `dttreeset` function declaration from cdt.h. The function
definition was removed some time ago because it was not used in the
codebase, but the declaration wasn't removed properly.

7 years agoRemove unused declaration of type `nodesizefn_t`
Erwin Janssen [Thu, 30 Mar 2017 12:59:33 +0000 (14:59 +0200)]
Remove unused declaration of type `nodesizefn_t`

This type was declared in lib/common/render.h, but never used.

7 years agoFix issue #1225.
Emden Gansner [Wed, 5 Apr 2017 18:17:28 +0000 (14:17 -0400)]
Fix issue #1225.

7 years agoMerge pull request #1224 from ErwinJanssen/windows-fixes
John Ellson [Wed, 5 Apr 2017 16:53:19 +0000 (12:53 -0400)]
Merge pull request #1224 from ErwinJanssen/windows-fixes

Windows fixes

7 years agoAdd gvpr script to create a derived cluster graph.
Emden Gansner [Tue, 4 Apr 2017 19:20:02 +0000 (15:20 -0400)]
Add gvpr script to create a derived cluster graph.

7 years agoReduce exported symbols for plugin/neato_layout
Erwin Janssen [Sat, 1 Apr 2017 08:43:46 +0000 (10:43 +0200)]
Reduce exported symbols for plugin/neato_layout

On Windows, the plugin gvplugin_neato_layout exported a lot of function,
also from other libraries that are not being exported, such as ortho and
neatogen. This has been reduced to only the varaible
`gvplugin_neato_layout_LTX_library`.
A minor link change was needed on Windows as a result.

7 years agoAdd `extern "C"` to export in plugin/gdiplus
Erwin Janssen [Sat, 1 Apr 2017 07:57:40 +0000 (09:57 +0200)]
Add `extern "C"` to export in plugin/gdiplus

plugin/gdiplus is a C++ project, so the `extern "C"` must be added in
order to export C symbols that can be used by the rest of the code.

7 years agoMerge pull request #1220 from ErwinJanssen/windows-build
John Ellson [Tue, 28 Mar 2017 15:30:40 +0000 (11:30 -0400)]
Merge pull request #1220 from ErwinJanssen/windows-build

Windows build improvements and fixes

7 years agoUse dllimport to link gd fonts on Windows
Erwin Janssen [Mon, 27 Mar 2017 20:53:07 +0000 (22:53 +0200)]
Use dllimport to link gd fonts on Windows

Using extern to link the gd fonts on Windows doesn't work, they should be
imported from the DLL using __declspec(dllimport).
Also update the libgd DLL to the most recent version.

7 years agoRestructure appveyor.yml
Erwin Janssen [Mon, 27 Mar 2017 09:12:12 +0000 (11:12 +0200)]
Restructure appveyor.yml

Split the script into three parts, instead of one large block. Because
of the block structure, errors didn't show up because only the last
command was evaluated when determining whether the build was successful.
These errors should now be visible.

7 years agoRemove disabled Autotools build from appveyor.yml
Erwin Janssen [Mon, 27 Mar 2017 08:40:45 +0000 (10:40 +0200)]
Remove disabled Autotools build from appveyor.yml

There was an attempt to include the Autotools build on Appveyor, but
with the current Visual Studio build and the future CMake build, this is
no longer relevant.

7 years agoUpdate version number in appveyor.yml to 2.41
Erwin Janssen [Sun, 26 Mar 2017 13:57:10 +0000 (15:57 +0200)]
Update version number in appveyor.yml to 2.41

7 years ago*_API to specify linkage for lib/cgraph on Windows
Erwin Janssen [Sun, 26 Mar 2017 13:52:11 +0000 (15:52 +0200)]
*_API to specify linkage for lib/cgraph on Windows

Instead of overloading the `extern` keyword with __dllspec(dllexport) or
__dllspec(dllimport) to specify the linkage, and use a function definition
file to specify the exported functions, this commit adds a seperate define
for each header file to do both. It also makes it more explicit which
function are exported.

7 years agoCDT_API to specify linkage for lib/cdt on Windows
Erwin Janssen [Sat, 25 Mar 2017 17:11:13 +0000 (18:11 +0100)]
CDT_API to specify linkage for lib/cdt on Windows

Instead of overloading the `extern` keyword with __dllspec(dllexport) or
__dllspec(dllimport) to specify the linkage, and use a function definition
file to specify the exported functions, this commit adds a seperate define
to do both.

7 years agoImprove __dllspec specification in plugin/
Erwin Janssen [Sat, 18 Mar 2017 23:05:33 +0000 (00:05 +0100)]
Improve __dllspec specification in plugin/

The plugin projects that are included in the Visual Studio build,
contained __dllspec specification for the `gvplugin_*_LTX_library`
definition. This commit improves this specification by making it more
consistant. The `.def` files in `pluging` are now no longer required.

7 years agoEnable features in plugin/core on Windows
Erwin Janssen [Sat, 18 Mar 2017 21:37:16 +0000 (22:37 +0100)]
Enable features in plugin/core on Windows

Remove the `#ifdef` blocks surrounding some function prototypes and add
`gvrender_core_mp.c` to the Visual Studio build.

7 years agoReplace WIN32_DLL with _WIN32 in vplugin_core.c
Erwin Janssen [Thu, 16 Mar 2017 10:36:08 +0000 (11:36 +0100)]
Replace WIN32_DLL with _WIN32 in vplugin_core.c

This define check should only be triggerd on Windows. Using the compiler
set `_WIN32` to check if Windows is the platform is better than using a
user set define.

7 years agoUse #ifdef instead of #if in gvloadimage_core.c
Erwin Janssen [Tue, 14 Mar 2017 21:14:46 +0000 (22:14 +0100)]
Use #ifdef instead of #if in gvloadimage_core.c

Replace `#if HAVE_SYS_MMAN_H` with `#ifdef HAVE_SYS_MMAN_H`. Using the
former causes problems is HAVE_SYS_MMAN_H is defined without a value.

7 years agoSupport opacity in svg fonts. Issue #1217.
Emden Gansner [Thu, 23 Mar 2017 18:42:21 +0000 (14:42 -0400)]
Support opacity in svg fonts. Issue #1217.

7 years agoFix switched roles for prerev and preposrev in traversal.
Emden Gansner [Thu, 16 Mar 2017 19:13:14 +0000 (15:13 -0400)]
Fix switched roles for prerev and preposrev in traversal.

7 years agoReplace name bisect with gvbisect to avoid conflicts.
Emden R. Gansner [Tue, 14 Mar 2017 22:20:26 +0000 (18:20 -0400)]
Replace name bisect with gvbisect to avoid conflicts.

7 years agoReplace hard-coded 2 with Ndim
Emden R. Gansner [Tue, 14 Mar 2017 22:18:16 +0000 (18:18 -0400)]
Replace hard-coded 2 with Ndim

7 years agoThe test for a pointer being >= 0 is silly.
Emden R. Gansner [Tue, 14 Mar 2017 22:14:11 +0000 (18:14 -0400)]
The test for a pointer being >= 0 is silly.

7 years agoPull call to rank() out of assert. If assert is a no-op, rank() will not be
Emden R. Gansner [Tue, 14 Mar 2017 22:09:17 +0000 (18:09 -0400)]
Pull call to rank() out of assert. If assert is a no-op, rank() will not be
called.

7 years agoPull assignment out of assert statement. If assert is a no-op, the assignment
Emden R. Gansner [Tue, 14 Mar 2017 22:04:13 +0000 (18:04 -0400)]
Pull assignment out of assert statement. If assert is a no-op, the assignment
won't be done.

7 years agoRemove duplicate declaration of gd fonts; re-add extern. Without extern, thesewill...
Emden R. Gansner [Tue, 14 Mar 2017 21:39:47 +0000 (17:39 -0400)]
Remove duplicate declaration of gd fonts; re-add extern. Without extern, thesewill be defined locally and uninitialized. We want these to bind to gdFontPtrs
defined in libgd.

7 years agoSmall cleanup and replace np->name with agnameof(np)
Emden Gansner [Mon, 13 Mar 2017 15:06:02 +0000 (11:06 -0400)]
Small cleanup and replace np->name with agnameof(np)

7 years agoMerge pull request #1215 from ErwinJanssen/various-changes
John Ellson [Mon, 6 Mar 2017 18:13:59 +0000 (13:13 -0500)]
Merge pull request #1215 from ErwinJanssen/various-changes

Various changes

7 years agoEnable JSON on Windows build
Erwin Janssen [Sun, 5 Mar 2017 12:26:36 +0000 (13:26 +0100)]
Enable JSON on Windows build

The JSON module was not included in the Windows build because of some
errors. These errors were caused by two function from gvc not being added
to the Windows definition file. This is now resolved and JSON is added.

7 years agoUse <type>_MAX instead of <type>_SIZE, rectangle.c
Erwin Janssen [Fri, 10 Feb 2017 09:57:03 +0000 (10:57 +0100)]
Use <type>_MAX instead of <type>_SIZE, rectangle.c

Instead of using the custom defined <type>_SIZE defines in
lib/label/rectangle.c function RectAra, we now use the defines
<type>_MAX from the standard library. The meaning is the same, but it is
more portable and requires less checks.

7 years agoRemove `#ifdef _UWIN` block with hard path include
Erwin Janssen [Thu, 9 Feb 2017 06:57:08 +0000 (07:57 +0100)]
Remove `#ifdef _UWIN` block with hard path include

The header globals.h had an `#ifdef _UWIN` block at the top. This block
had an include with a hard path, which is a bad idea. Since it has
been 12 years since this block has been modified an UWIN isn't used in
the current build, we remove this block.

7 years agoRemove `AC_HEADER_DIRENT` from configure.ac
Erwin Janssen [Wed, 8 Feb 2017 19:36:35 +0000 (20:36 +0100)]
Remove `AC_HEADER_DIRENT` from configure.ac

The check `AC_HEADER_DIRENT` is no longer needed, as all current UNIX
systems have the correct version of this header. The checks and
corresponding define can be removed.

7 years agoRemove `AC_HEADER_TIME` from configure.ac
Erwin Janssen [Wed, 8 Feb 2017 17:14:10 +0000 (18:14 +0100)]
Remove `AC_HEADER_TIME` from configure.ac

This check is deprecated according to the official autoconf documentation,
it can safely be removed.

7 years agoRemove final check and usage of stdbool.h
Erwin Janssen [Wed, 8 Feb 2017 17:10:52 +0000 (18:10 +0100)]
Remove final check and usage of stdbool.h

Removed the check for stdbool.h from configure.ac and a remaining usage
of the define.

7 years agoRemove HAVE_STDBOOL_H check from common/logic.h
Erwin Janssen [Mon, 6 Feb 2017 17:12:22 +0000 (18:12 +0100)]
Remove HAVE_STDBOOL_H check from common/logic.h

This header check was removed earlier, but this one was missed. The C++
check can also be removed, because the stdbool.h header files includes is
check by itself.

7 years agoInclude header check for unistd.h in utils.c
Erwin Janssen [Sat, 4 Feb 2017 14:40:07 +0000 (15:40 +0100)]
Include header check for unistd.h in utils.c

The header unistd.h is not available on on platforms, so we add a check
around it.

7 years agoDon't use path as variable name in colortbl.awk
Erwin Janssen [Sat, 4 Feb 2017 10:21:18 +0000 (11:21 +0100)]
Don't use path as variable name in colortbl.awk

Instead of using `argv[1]` to name the variable, we now always call it
`color_lib` in awk/colortbl.awk. The reason for this, is in some build
configurations, like the Visual Studio and CMake build, the full path to
the color_lib file is used. This resulted in the variable conaining
slashes, etc. Since the rest of the code already assumes this variable is
called `color_lib`, there is no problem with hard coding it in
colortbl.awk

7 years agoRemove email address from .travis.yml
Erwin Janssen [Tue, 31 Jan 2017 15:57:32 +0000 (16:57 +0100)]
Remove email address from .travis.yml

Notifications about the build were now always send to John, even when
someone else, in their own fork, was using Travis. This should send the
emails to the one that issued the build.

7 years agoMade libgvpr a dynamic library on Windows
Erwin Janssen [Tue, 31 Jan 2017 13:29:46 +0000 (14:29 +0100)]
Made libgvpr a dynamic library on Windows

libgvpr is a dynamic library with the Autotools build, but was for some
reason a static library on Windows. Since Autotools is considered the
default, this commit makes libgvpr a dynamic library on Windows as well.
The added define "GVPR_API", is used for linking, so a seperate gvpr.def
file is not needed. On non-Windows platforms, this define is set to
"extern", so nothing changes there.

7 years agofix gtk_message_dialog_new() usage (fc26)
John Ellson [Sun, 5 Mar 2017 16:42:50 +0000 (11:42 -0500)]
fix gtk_message_dialog_new() usage (fc26)

7 years agofix gtk_message_dialog_new() usage (fc26)
John Ellson [Sun, 5 Mar 2017 16:32:26 +0000 (11:32 -0500)]
fix gtk_message_dialog_new() usage (fc26)

7 years agotrying to fix an issue with %post in rpm .spec filr
John Ellson [Sun, 5 Mar 2017 05:29:19 +0000 (00:29 -0500)]
trying to fix an issue with %post in rpm .spec filr

7 years agoAdd initializer to avoid warning.
Emden Gansner [Fri, 3 Mar 2017 15:46:58 +0000 (10:46 -0500)]
Add initializer to avoid warning.

7 years agoFix warning messages.
Emden Gansner [Fri, 3 Mar 2017 15:38:56 +0000 (10:38 -0500)]
Fix warning messages.

7 years agoFix bug in print function: two fields were interchanged.
Emden Gansner [Fri, 3 Mar 2017 14:58:29 +0000 (09:58 -0500)]
Fix bug in print function: two fields were interchanged.

7 years agoFix rtest.sh to use test data based on system running the tests;
Emden Gansner [Wed, 1 Mar 2017 19:54:27 +0000 (14:54 -0500)]
Fix rtest.sh to use test data based on system running the tests;
add test data for Ubuntu;
remove absolute paths containing dperry-make relative to the rtest directory.

7 years agoRemove antique test directories
Emden Gansner [Wed, 1 Mar 2017 19:26:32 +0000 (14:26 -0500)]
Remove antique test directories

7 years agosometimes 'dot -c' isn't getting run
John Ellson [Fri, 17 Feb 2017 14:17:52 +0000 (09:17 -0500)]
sometimes 'dot -c' isn't getting run

7 years agosometimes 'dot -c' isn't getting run
John Ellson [Fri, 17 Feb 2017 14:09:12 +0000 (09:09 -0500)]
sometimes 'dot -c' isn't getting run

7 years agoMerge branch 'master' of https://github.com/ellson/graphviz
Emden Gansner [Wed, 15 Feb 2017 17:39:30 +0000 (12:39 -0500)]
Merge branch 'master' of https://github.com/ellson/graphviz

7 years agoAdd documentation on the newrank attribute.
Emden Gansner [Wed, 15 Feb 2017 17:39:02 +0000 (12:39 -0500)]
Add documentation on the newrank attribute.

7 years agoMerge pull request #1208 from ErwinJanssen/update-test-reference
John Ellson [Sun, 12 Feb 2017 21:33:37 +0000 (16:33 -0500)]
Merge pull request #1208 from ErwinJanssen/update-test-reference

Update test reference files after indent change

7 years agoUpdate test reference files after indent change
Erwin Janssen [Sat, 11 Feb 2017 10:33:37 +0000 (11:33 +0100)]
Update test reference files after indent change

The recent change in the indentation of the dot output, caused tests
regarding gv and xdot output to fail. A minor difference in indentation
was the cause (a single space), but the indentation is now better aligned.
We update the rest reference files to reflect this update.

7 years agoFix issue #1207 - if an edge key is written as part of printing all attributes, it...
Emden Gansner [Fri, 10 Feb 2017 20:13:17 +0000 (15:13 -0500)]
Fix issue #1207 - if an edge key is written as part of printing all attributes, it must increase the tab level.

7 years agoMerge branch 'master' of https://github.com/ellson/graphviz
Emden R. Gansner [Sun, 29 Jan 2017 23:53:04 +0000 (18:53 -0500)]
Merge branch 'master' of https://github.com/ellson/graphviz

7 years agoUpdate documentation to handle included json
Emden R. Gansner [Sun, 29 Jan 2017 23:50:34 +0000 (18:50 -0500)]
Update documentation to handle included json

7 years agoMerge pull request #1201 from ErwinJanssen/cmake
John Ellson [Sat, 28 Jan 2017 21:56:29 +0000 (16:56 -0500)]
Merge pull request #1201 from ErwinJanssen/cmake

Beginning of CMake build

7 years agoMerge pull request #1200 from ErwinJanssen/add-awk-to-windows
John Ellson [Sat, 28 Jan 2017 21:53:40 +0000 (16:53 -0500)]
Merge pull request #1200 from ErwinJanssen/add-awk-to-windows

Add awk to Windows

7 years agoDifferent section seperation in main CMakeLists
Erwin Janssen [Fri, 27 Jan 2017 13:08:02 +0000 (14:08 +0100)]
Different section seperation in main CMakeLists

With this new header, the section seperation is more clear.

7 years agoUse awk to generate ps.h on Windows
Erwin Janssen [Fri, 27 Jan 2017 00:49:58 +0000 (01:49 +0100)]
Use awk to generate ps.h on Windows

Instead of using the pregenerated ps.h in windows/include, we use awk to
generate this file instead.

7 years agoUse awk to generate colortbl.h on Windows
Erwin Janssen [Thu, 26 Jan 2017 12:56:15 +0000 (13:56 +0100)]
Use awk to generate colortbl.h on Windows

Instead of using the pregenerated colortbl.h in windows/include, we now
include awk in windows/dependencies/graphviz-build-utilities and use this
to generate colortbl.h

7 years agoAdded missing headers to windows libraries
Erwin Janssen [Thu, 26 Jan 2017 12:55:00 +0000 (13:55 +0100)]
Added missing headers to windows libraries

Two headers were missing from, and now added to
windows/dependencies/libraries: gd_io.h and gdfx.h

7 years agoAdd lib/neatogen to CMake build
Erwin Janssen [Tue, 24 Jan 2017 14:36:07 +0000 (15:36 +0100)]
Add lib/neatogen to CMake build

The static library 'neatogen' has no dependencies, but the `with_digcola`
option had to be added, for this is also done in the Autotools build.

7 years agoDecapitalize CMake option variables
Erwin Janssen [Tue, 24 Jan 2017 11:25:22 +0000 (12:25 +0100)]
Decapitalize CMake option variables

The options that can be passed to configure the CMake build, are now in
lower case, similar to the Autotools build.

7 years agoAdd lib/sfdpgen to CMake build
Erwin Janssen [Fri, 20 Jan 2017 18:02:04 +0000 (19:02 +0100)]
Add lib/sfdpgen to CMake build

The static library 'sfdpgen' has no dependencies, but the `WITH_SFDP`
option had to be added, for this is also done in the Autotools build.
If WITH_SFDP is set, the define SFDP is also added (also added this for
ORTHO, this was missing).

7 years agoAdd lib/vpsc to CMake build
Erwin Janssen [Fri, 20 Jan 2017 16:55:41 +0000 (17:55 +0100)]
Add lib/vpsc to CMake build

The static library 'vpsc' has no dependencies, but the `WITH_IPSEPCOLA`
option had to be added, for this is also done in the Autotools build. This
library is disabled by default due to C++ portability issues.

7 years agoAdd lib/ortho to CMake build
Erwin Janssen [Fri, 20 Jan 2017 16:38:47 +0000 (17:38 +0100)]
Add lib/ortho to CMake build

The static library 'ortho' has no dependencies, but the `WITH_ORTHO`
option had to be added, for this is also done in the Autotools build.

7 years agoAdd lib/rbtree to CMake build
Erwin Janssen [Mon, 9 Jan 2017 22:06:34 +0000 (23:06 +0100)]
Add lib/rbtree to CMake build

The static library 'rbtree' has no dependencies and required no
additional checks.

7 years agoAdd lib/osage to CMake build
Erwin Janssen [Sun, 8 Jan 2017 11:03:41 +0000 (12:03 +0100)]
Add lib/osage to CMake build

The static library 'osage' has no dependencies and required no
additional checks.

7 years agoAdd lib/sparse to CMake build
Erwin Janssen [Sat, 7 Jan 2017 22:31:30 +0000 (23:31 +0100)]
Add lib/sparse to CMake build

The static library 'sparse' has no dependencies and required no
additional checks.

7 years agoAdd lib/spine to CMake build
Erwin Janssen [Sat, 7 Jan 2017 22:31:05 +0000 (23:31 +0100)]
Add lib/spine to CMake build

The static library 'spine' has no dependencies and required no
additional checks.

7 years agoAdd lib/ingraphs to CMake build
Erwin Janssen [Sat, 7 Jan 2017 21:41:27 +0000 (22:41 +0100)]
Add lib/ingraphs to CMake build

The static library 'ingraphs' has no dependencies and required no
additional checks.

7 years agoAdd lib/pack to CMake build
Erwin Janssen [Fri, 6 Jan 2017 14:55:55 +0000 (15:55 +0100)]
Add lib/pack to CMake build

The static library pack has no dependencies and required no
additional checks.

7 years agoAdd lib/xdot to CMake build
Erwin Janssen [Fri, 6 Jan 2017 14:38:16 +0000 (15:38 +0100)]
Add lib/xdot to CMake build

The dynamic library xdot has no dependencies and required no
additional checks.

7 years agoAdd lib/vmalloc to CMake build
Erwin Janssen [Thu, 5 Jan 2017 18:10:31 +0000 (19:10 +0100)]
Add lib/vmalloc to CMake build

The static library vmalloc has no dependencies. Various additional
header, function and type checks have been added.

7 years agoAdd lib/label to CMake build
Erwin Janssen [Thu, 5 Jan 2017 09:36:10 +0000 (10:36 +0100)]
Add lib/label to CMake build

The static library label has no dependencies and required no
additional checks.

7 years agoAdd lib/fdpgen to CMake build
Erwin Janssen [Thu, 5 Jan 2017 09:20:19 +0000 (10:20 +0100)]
Add lib/fdpgen to CMake build

The static library fdpgen has no dependencies. Two additional function
checks have been added: drand48 and srand48.

7 years agoReplace "." with "${CMAKE_CURRENT_SOURCE_DIR}"
Erwin Janssen [Thu, 5 Jan 2017 09:07:48 +0000 (10:07 +0100)]
Replace "." with "${CMAKE_CURRENT_SOURCE_DIR}"

When specifying the current source directory as an include directory, both
"." and "${CMAKE_CURRENT_SOURCE_DIR}" mean the same, but the latter is
more descriptive.

7 years agoAdd lib/dotgen to CMake build
Erwin Janssen [Wed, 4 Jan 2017 23:07:10 +0000 (00:07 +0100)]
Add lib/dotgen to CMake build

The static library dotgen has no dependencies and required no
additional checks.

7 years agoAdd Graphviz version define to config-cmake.h.in
Erwin Janssen [Wed, 4 Jan 2017 22:57:32 +0000 (23:57 +0100)]
Add Graphviz version define to config-cmake.h.in

This adds the `PACKAGE_VERSION` define, which is used in various parts to
print the version number.

7 years agoAdd lib/circogen to CMake build
Erwin Janssen [Tue, 3 Jan 2017 23:49:15 +0000 (00:49 +0100)]
Add lib/circogen to CMake build

The static library circogen has no dependencies and required no
additional checks.

7 years agoAdd lib/twopigen to CMake build
Erwin Janssen [Tue, 3 Jan 2017 22:08:18 +0000 (23:08 +0100)]
Add lib/twopigen to CMake build

The static library twopigen has no dependencies and required no
additional checks.

7 years agoAdd lib/patchwork to CMake build
Erwin Janssen [Tue, 3 Jan 2017 21:41:18 +0000 (22:41 +0100)]
Add lib/patchwork to CMake build

The static library patchwork has no dependencies and required no
additional checks.

7 years agoAdd lib/pathplan to the CMake build
Erwin Janssen [Tue, 3 Jan 2017 17:01:50 +0000 (18:01 +0100)]
Add lib/pathplan to the CMake build

Only a one additional checks were required for pathplan: cbrt function

7 years agoModify files generated by Bison and Flex, to match the Autotools build.
Erwin Janssen [Tue, 3 Jan 2017 12:35:12 +0000 (13:35 +0100)]
Modify files generated by Bison and Flex, to match the Autotools build.

- Replace "yy" with "aag" in all three files
- Replace "unsigned long int" with "uint64_t" in grammar.h and grammar.c
- Replace "unsigned long" with "uint64_t" in grammar.h and grammar.c
- Remove declaration of the "isatty()" function from scan.c

7 years agoRestructure root CMakeLists.txt
Erwin Janssen [Tue, 3 Jan 2017 09:31:43 +0000 (10:31 +0100)]
Restructure root CMakeLists.txt

Improve clairity of the file. Also bumps the version number to 2.41.

7 years agoAdd lib/cgraph to the CMake build
Erwin Janssen [Sun, 1 Jan 2017 16:12:21 +0000 (17:12 +0100)]
Add lib/cgraph to the CMake build

Before lib/cgraph can be build, a few checks have to be done for available
headers and functions. This is done in the main CMakeLists.txt.
The generate the required files with BISON and FLEX, the build-in CMake
modules for BISON and FLEX can be used.

7 years agoAdd (so)version specification to cdt CMake build
Erwin Janssen [Sat, 31 Dec 2016 12:55:00 +0000 (13:55 +0100)]
Add (so)version specification to cdt CMake build

The `set_target_properties` function can be used to set the version and
soversion properties. The versions are set to the current Autotools
version numbers.

7 years agoAdd 'uninstall' target to CMake build
Erwin Janssen [Sat, 31 Dec 2016 12:05:14 +0000 (13:05 +0100)]
Add 'uninstall' target to CMake build

When CMake performs the 'install' step, it keeps track of the installed
files by listing them in the `install_manifest.txt` file. The 'uninstall'
step reverses the installation by removing the files listed in the
manifest. This solution is taken directly from the CMake FAQ:
https://cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3://cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F

7 years agoAdd install target and initial packaging to CMake
Erwin Janssen [Thu, 29 Dec 2016 11:41:06 +0000 (12:41 +0100)]
Add install target and initial packaging to CMake

The installation locations are identical to the Autotools install step,
but the pdf version of the manpages aren't generated yet.
With CPack, packages can be generated based on the `install` commands. For
now only the basic ZIP package generator is added.
Added the new CMake commands to the Travis and Appveyor scripts.

7 years agoCMake: add BISON and FLEX as build dependencies
Erwin Janssen [Wed, 28 Dec 2016 15:06:50 +0000 (16:06 +0100)]
CMake: add BISON and FLEX as build dependencies

BISON and FLEX are required to build some of the core parts of Graphviz.

7 years agoCMake: Add Graphviz version information
Erwin Janssen [Tue, 20 Dec 2016 19:38:45 +0000 (20:38 +0100)]
CMake: Add Graphviz version information

Adds version numbers to the main CMakeLists.txt. The build version is set
to the date and time of the most recent commit, similar to the Autotools
build.

7 years agoAdd CMake build to Travis
Erwin Janssen [Tue, 27 Sep 2016 16:45:29 +0000 (18:45 +0200)]
Add CMake build to Travis

- Add CMake installation to Centos 7 dockerfile
- New build script for CMake
- Add `BUILD_SYSTEM` variable to Travis: perform Autotools and CMake build, both on native Travis and Docker.

7 years agoAdd the CMake build to Appveyor CI
Erwin Janssen [Tue, 27 Sep 2016 15:46:27 +0000 (17:46 +0200)]
Add the CMake build to Appveyor CI

Renamed the `compiler` in appveyor.yml variable to `build_system`.
The CMake build will run for both configurations: Debug and Release.

7 years agoInitial minimal CMake project
Erwin Janssen [Mon, 19 Dec 2016 15:03:57 +0000 (16:03 +0100)]
Initial minimal CMake project

A CMake project consists of CMakeLists.txt files. The primary file in the
root of the project specifies global project information and
configuration. CMakeLists.txt files in subdirectories can contain
configuration for how to build to binaries.

This configuration minimal configuration only builds lib/cdt as a shared
(dynamic) library. CMake supports out of source builds, which is the
recommended way of building:

mkdir build
cd build
cmake ..
cmake --build .

The `cmake ..` generates the build files. On Unix based systems, it
gerenates makefiles, on Windows it generates Visual Studio projects. The
used generated can be specified with -G.

7 years agoMerge pull request #1197 from ErwinJanssen/various-changes
John Ellson [Thu, 19 Jan 2017 05:08:35 +0000 (00:08 -0500)]
Merge pull request #1197 from ErwinJanssen/various-changes

Various changes

7 years agoUse prebuild libgd from windows deps submodule
Erwin Janssen [Tue, 17 Jan 2017 16:41:06 +0000 (17:41 +0100)]
Use prebuild libgd from windows deps submodule

Instead of building libgd manually before Graphviz can be build, we
included a prebuild version of libgd in the graphviz windows dependencies
submodule. The doc/winbuild.html is updated to reflect this.

7 years agoMerge Windows dependencies into one submodule
Erwin Janssen [Mon, 16 Jan 2017 12:50:05 +0000 (13:50 +0100)]
Merge Windows dependencies into one submodule

Instead of using a submodule for every Windows dependency with a lot of
extra files, we now use a single submodule that only contains those files
that are required. This means fewer submodules and shorter download time
(because of the reduction in size and number of files).
Also removed some unused links in Smyrna.

7 years agoUpdate Freetype download link in appveyor.yml
Erwin Janssen [Wed, 11 Jan 2017 16:17:31 +0000 (17:17 +0100)]
Update Freetype download link in appveyor.yml