]>
granicus.if.org Git - graphviz/log
Matthew Fernandez [Sun, 29 Aug 2021 23:28:37 +0000 (16:28 -0700)]
selectedLayer: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:26:16 +0000 (16:26 -0700)]
is_natural_number: use more precise type for input parameter
We can be more strict and rigorous with how we deal with strings here.
Matthew Fernandez [Sun, 29 Aug 2021 23:25:38 +0000 (16:25 -0700)]
is_natural_number: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:21:59 +0000 (16:21 -0700)]
more standard usage of isdigit and friends
Matthew Fernandez [Sun, 29 Aug 2021 23:20:38 +0000 (16:20 -0700)]
remove some commented out code
Matthew Fernandez [Sun, 29 Aug 2021 23:19:57 +0000 (16:19 -0700)]
colorcmpf: remove strcmp micro-optimization
This is unnecessary when using a modern compiler.
Matthew Fernandez [Sun, 29 Aug 2021 23:19:20 +0000 (16:19 -0700)]
colorcmpf: remove unnecessary casts
These pointers implicitly coerce.
Matthew Fernandez [Sun, 29 Aug 2021 23:18:41 +0000 (16:18 -0700)]
colorxlate: remove some unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:17:17 +0000 (16:17 -0700)]
colorxlate: remove strcmp micro-optimization
This is unnecessary when using a modern compiler.
Matthew Fernandez [Sun, 29 Aug 2021 22:38:10 +0000 (15:38 -0700)]
replace header guards in lib/common with more modern #pragma once
Matthew Fernandez [Sun, 29 Aug 2021 22:29:56 +0000 (15:29 -0700)]
remove cryptic globals.h comment
The link in this comment is dead and it is unclear what it is referring to.
Matthew Fernandez [Sun, 29 Aug 2021 22:20:12 +0000 (15:20 -0700)]
colorxlate: squash some -Wswitch-default warnings
Matthew Fernandez [Sun, 29 Aug 2021 22:19:20 +0000 (15:19 -0700)]
colorxlate: squash some -Wconversion warnings
By design, these calculations cannot overflow.
Matthew Fernandez [Sun, 29 Aug 2021 22:19:02 +0000 (15:19 -0700)]
colorCvt: remove commented out code
Matthew Fernandez [Sun, 29 Aug 2021 22:07:48 +0000 (15:07 -0700)]
rgb2cmyk: call fmin instead of open coding floating point comparison
Matthew Fernandez [Sun, 29 Aug 2021 22:02:37 +0000 (15:02 -0700)]
replace use of MIN, MAX macros in colxlate.c with standard fmin, fmax
Matthew Fernandez [Sun, 29 Aug 2021 21:59:43 +0000 (14:59 -0700)]
canontoken: use char pointers instead of unsigned char pointers
It is not clear to me why this code was using unsigned char pointers.
Matthew Fernandez [Sun, 29 Aug 2021 21:55:51 +0000 (14:55 -0700)]
canontoken: remove commented out code
Matthew Fernandez [Sun, 29 Aug 2021 21:54:50 +0000 (14:54 -0700)]
hsv2rgb: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 21:52:47 +0000 (14:52 -0700)]
remove unnecessary casts around usage of 'bsearch'
Matthew Fernandez [Sun, 29 Aug 2021 21:45:56 +0000 (14:45 -0700)]
colorxlate: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 21:43:04 +0000 (14:43 -0700)]
colorxlate: remove a strcmp micro-optimization
This is unnecessary when using modern compilers.
Matthew Fernandez [Sun, 29 Aug 2021 21:40:56 +0000 (14:40 -0700)]
colorxlate: use char pointers instead of unsigned char pointers
It is not clear to me why this code was using unsigned char pointers.
Matthew Fernandez [Sat, 4 Sep 2021 01:55:01 +0000 (01:55 +0000)]
Merge branch 'smattr/
7e2248f2 -8a26-4cfa-9908-
b5d191b0070e ' into 'main'
fix various -Wmissing-field-initializer warnings
See merge request graphviz/graphviz!2130
Matthew Fernandez [Tue, 31 Aug 2021 04:00:58 +0000 (21:00 -0700)]
p_plain: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 04:00:28 +0000 (21:00 -0700)]
p_plaintext: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 03:59:47 +0000 (20:59 -0700)]
p_square: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 03:59:10 +0000 (20:59 -0700)]
p_box: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 03:58:37 +0000 (20:58 -0700)]
p_triangle: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 03:57:51 +0000 (20:57 -0700)]
p_egg: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 03:56:57 +0000 (20:56 -0700)]
p_circle: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 03:56:03 +0000 (20:56 -0700)]
p_ellipse: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 03:54:55 +0000 (20:54 -0700)]
p_polygon: squash -Wmissing-field-initializer warning
Matthew Fernandez [Tue, 31 Aug 2021 03:53:35 +0000 (20:53 -0700)]
Center: squash -Wmissing-field-initializer warning
Matthew Fernandez [Sat, 4 Sep 2021 01:00:01 +0000 (01:00 +0000)]
Merge branch 'smattr/
9A8B94F0 -FA1E-4200-A71D-
03595C913ACF ' into 'main'
remove Fedora 32 CI testing
See merge request graphviz/graphviz!2128
Matthew Fernandez [Tue, 31 Aug 2021 00:02:12 +0000 (17:02 -0700)]
remove Fedora ≤ 32 work around
Matthew Fernandez [Tue, 31 Aug 2021 00:01:23 +0000 (17:01 -0700)]
remove Fedora 32 CI testing
Fedora 32 was EOLed in May 2021.¹
¹ https://fedoraproject.org/wiki/End_of_life?rd=LifeCycle/EOL
Matthew Fernandez [Fri, 3 Sep 2021 15:27:07 +0000 (15:27 +0000)]
Merge branch 'smattr/
C574183C -758B-4503-AFE2-
3BEE5F2BBA87 ' into 'main'
some Pylint warning squashing
See merge request graphviz/graphviz!2118
Matthew Fernandez [Sat, 28 Aug 2021 15:24:28 +0000 (08:24 -0700)]
fix some missing Python docstrings
Matthew Fernandez [Sat, 28 Aug 2021 15:22:14 +0000 (08:22 -0700)]
squash Pylint warnings about shadowing 'root'
Matthew Fernandez [Sat, 28 Aug 2021 15:21:19 +0000 (08:21 -0700)]
squash Pylint warnings about shadowing 'p'
Matthew Fernandez [Sat, 28 Aug 2021 15:14:15 +0000 (08:14 -0700)]
squash Pylint wrong-import-position warnings
Matthew Fernandez [Sat, 28 Aug 2021 15:12:57 +0000 (08:12 -0700)]
squash a Pylint line-too-long warning
Matthew Fernandez [Thu, 2 Sep 2021 03:40:04 +0000 (03:40 +0000)]
Merge branch 'smattr/
8D176743 -758B-4021-8E02-
E18155F7503A ' into 'main'
smyrna: remove expat installation when using MS Build
See merge request graphviz/graphviz!2115
Matthew Fernandez [Fri, 27 Aug 2021 03:33:26 +0000 (20:33 -0700)]
smyrna: remove expat installation when using MS Build
AFAICT Smyrna does not directly depend on expat. It depends on it indirectly,
but should then pick up expat installation steps from dependent MS Build files.
Magnus Jacobsson [Wed, 1 Sep 2021 16:11:52 +0000 (16:11 +0000)]
Merge branch 'add-mingw-cmake-builds-to-ci' into 'main'
Add MinGW CMake build jobs to CI
See merge request graphviz/graphviz!2107
Magnus Jacobsson [Sun, 15 Aug 2021 10:04:09 +0000 (12:04 +0200)]
CI: add windows-mingw64-cmake-build job
Magnus Jacobsson [Sun, 15 Aug 2021 10:03:57 +0000 (12:03 +0200)]
CI: add windows-mingw32-cmake-build job
Magnus Jacobsson [Tue, 31 Aug 2021 05:19:31 +0000 (07:19 +0200)]
add ci/mingw-build.sh script
Magnus Jacobsson [Sun, 15 Aug 2021 09:33:42 +0000 (11:33 +0200)]
ci/build.sh: CMake: move the MinGW zip and exe build artifacts to the release directory
Magnus Jacobsson [Wed, 21 Jul 2021 10:04:18 +0000 (12:04 +0200)]
remove import/export declaration of lt_preloaded_sybols in gvcext.h
lt_preloaded_symbols is always defined in the executable that links to
the gvc lib, so it should only have a standard extern declaration.
Fixes this error with MinGW:
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cmd/dot/CMakeFiles/dot.dir/dot.c.obj:dot.c:(.text+0x1e9): undefined reference to `__imp_lt_preloaded_symbols'
Also removes this warning with MinGw:
C:/Users/magja/graphviz/cmd/dot/no_builtins.c:13:14: warning: 'lt_preloaded_symbols' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
13 | lt_symlist_t lt_preloaded_symbols[] = { { 0, 0 } };
| ^~~~~~~~~~~~~~~~~~~~
Also removes these three warnings in standard Windows MSVC builds:
C:\Users\magja\graphviz\cmd\dot\no_builtins.c(13,37): warning C4273: 'lt_preloaded_symbols': inconsistent dll linkage [C:\Users\magja\graphviz\build\cmd\dot\dot.vcxproj]
C:\Users\magja\graphviz\cmd\tools\gvpack.c(34,37): warning C4273: 'lt_preloaded_symbols': inconsistent dll linkage [C:\Users\magja\graphviz\build\cmd\tools\gvpack.vcxproj]
LINK : warning LNK4217: symbol 'lt_preloaded_symbols' defined in 'no_builtins.obj' is imported by 'dot.obj' in function 'main' [C:\Users\magja\graphviz\build\cmd\dot\dot.vcxproj]
Magnus Jacobsson [Thu, 29 Jul 2021 05:58:37 +0000 (07:58 +0200)]
label: CMake: ensure label symbols are exported from the gvc lib
The object modules from the static label lib are statically linked
into the gvc shared lib through the common object library which means
that their symbols should be exported from gvc instead of
imported. Defining GVC_EXPORTS achieves this.
This is what the autotools build already does.
Fixes this error with MinGW:
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../label/liblabel.a(xlabels.c.obj):xlabels.c:(.text+0x98): undefined reference to `__imp_zmalloc'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../label/liblabel.a(xlabels.c.obj):xlabels.c:(.text+0x1f40): undefined reference to `__imp_zmalloc'
Magnus Jacobsson [Sat, 24 Jul 2021 06:04:53 +0000 (08:04 +0200)]
ortho: CMake: ensure ortho symbols are exported from gvc
The object modules from the static ortho lib are statically linked
into the gvc shared lib which means that its symbols should be
exported from gvc instead of imported. Defining GVC_EXPORTS achieves
this.
Fixes errors like this with MinGW:
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../ortho/CMakeFiles/ortho_obj.dir/fPQ.c.obj:fPQ.c:(.text+0x6d): undefined reference to `__imp_gcalloc'
Magnus Jacobsson [Thu, 29 Jul 2021 16:31:12 +0000 (18:31 +0200)]
common: ensure correct import/export declarations of expat with MinGW
The expat library does not seem to recognize MinGW and therefore does
not apply the Microsoft storage class attributes to its function
declarations when using MinGW. Defining XML_USE_MSC_EXTENSIONS forces
it to use those.
Fixes errors like this with MinGW:
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../common/CMakeFiles/common_obj.dir/htmllex.c.obj:htmllex.c:(.text+0x1cec): undefined reference to `XML_ParserCreate'
Magnus Jacobsson [Thu, 5 Aug 2021 07:36:20 +0000 (09:36 +0200)]
CMake: fix expat runtime library not found by cpack on msys2
Fixes these errors with MinGW:
CMake Error at C:/Users/magja/graphviz/build/lib/gvc/cmake_install.cmake:75 (file):
file INSTALL cannot find
"C:/Users/magja/graphviz/lib/gvc/EXPAT_RUNTIME_LIBRARIES-NOTFOUND": No
error.
Call Stack (most recent call first):
C:/Users/magja/graphviz/build/lib/cmake_install.cmake:70 (include)
C:/Users/magja/graphviz/build/cmake_install.cmake:58 (include)
CMake Error at C:/Users/magja/graphviz/build/cmd/tools/cmake_install.cmake:269 (file):
file INSTALL cannot find
"C:/Users/magja/graphviz/cmd/tools/EXPAT_RUNTIME_LIBRARIES-NOTFOUND": No
error.
Call Stack (most recent call first):
C:/Users/magja/graphviz/build/cmd/cmake_install.cmake:44 (include)
C:/Users/magja/graphviz/build/cmake_install.cmake:60 (include)
CPack Error: Error when generating package: Graphviz
Magnus Jacobsson [Tue, 31 Aug 2021 13:52:57 +0000 (15:52 +0200)]
gvc: WIN32: install expat runtime library only if we have it
Magnus Jacobsson [Wed, 18 Aug 2021 11:00:27 +0000 (13:00 +0200)]
gvc: CMake: link to ltdl even on Windows with MinGW
Fixes these errors with MinGW:
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/gvc.dir/objects.a(gvplugin.c.obj):gvplugin.c:(.text+0x4f7): undefined reference to `lt_dlinit'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/gvc.dir/objects.a(gvplugin.c.obj):gvplugin.c:(.text+0x529): undefined reference to `lt_dlopen'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/gvc.dir/objects.a(gvplugin.c.obj):gvplugin.c:(.text+0x578): undefined reference to `lt_dlerror'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/gvc.dir/objects.a(gvplugin.c.obj):gvplugin.c:(.text+0x69e): undefined reference to `lt_dlsym'
collect2.exe: error: ld returned 1 exit status
Magnus Jacobsson [Mon, 16 Aug 2021 18:28:23 +0000 (20:28 +0200)]
CMake: FindLTDL: ensure ltdl is found with MinGW
CMake defines both WIN32 and MINGW when the compiler is some version
of MinGW. With MinGW we do want to use the ltdl library athough on
native Windows we only use the ltdl compatibility header introduced in
d70cdba7937724c19393d97bd280320cdf8c3c8f , not the library itself.
Fixes the following errors with MinGW:
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/gvc.dir/objects.a(gvplugin.c.obj):gvplugin.c:(.text+0x4f7): undefined reference to `lt_dlinit'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/gvc.dir/objects.a(gvplugin.c.obj):gvplugin.c:(.text+0x529): undefined reference to `lt_dlopen'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/gvc.dir/objects.a(gvplugin.c.obj):gvplugin.c:(.text+0x578): undefined reference to `lt_dlerror'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/gvc.dir/objects.a(gvplugin.c.obj):gvplugin.c:(.text+0x69e): undefined reference to `lt_dlsym'
Towards https://gitlab.com/graphviz/graphviz/-/issues/2102.
Magnus Jacobsson [Tue, 3 Aug 2021 15:39:31 +0000 (17:39 +0200)]
CMake: add use_win_pre_inst_libs option
This option will be used in an upcoming commit that adds MinGW jobs to
CI.
Magnus Jacobsson [Mon, 30 Aug 2021 16:41:19 +0000 (16:41 +0000)]
Merge branch 'more-linking-clean-up' into 'main'
More linking cleanup
See merge request graphviz/graphviz!2127
Magnus Jacobsson [Mon, 30 Aug 2021 06:29:29 +0000 (08:29 +0200)]
common: link to expat privately instead of publicly
Downstream libraries that explicitly use expat now all link to expat
themselves and no longer rely on a transitive dependency to expat
through gvc via common.
Magnus Jacobsson [Mon, 30 Aug 2021 06:19:09 +0000 (08:19 +0200)]
plugin/neato_layout: remove linking to cdt
The neato_layout plugin source files do not refer to cdt.
Magnus Jacobsson [Mon, 30 Aug 2021 06:19:09 +0000 (08:19 +0200)]
plugin/gd: remove linking to cdt
The gd plugin source files do not refer to cdt.
Magnus Jacobsson [Mon, 30 Aug 2021 06:19:09 +0000 (08:19 +0200)]
plugin/dot_layout: remove linking to cdt
The dot_layout plugin source files do not refer to cdt.
Magnus Jacobsson [Mon, 30 Aug 2021 06:19:09 +0000 (08:19 +0200)]
plugin/core: remove linking to cdt
The core plugin source files do not refer to cdt.
Magnus Jacobsson [Mon, 30 Aug 2021 06:09:36 +0000 (08:09 +0200)]
gvc: link to cdt privately instead of publicly
Downstream libraries that explicitly use cdt now all link to cdt
themselves and no longer rely on a transitive dependency to cdt
through gvc.
Magnus Jacobsson [Sun, 29 Aug 2021 17:02:44 +0000 (19:02 +0200)]
gxl2gv: remove linking to cdt
The gxl2gv source files do not refer to cdt.
Magnus Jacobsson [Sun, 29 Aug 2021 17:02:44 +0000 (19:02 +0200)]
gvpack: remove linking to cdt
The gvpack source files do not refer to cdt.
Magnus Jacobsson [Sun, 29 Aug 2021 17:02:44 +0000 (19:02 +0200)]
graphml2gv: remove linking to cdt
The graphml2gv source files do not refer to cdt.
Magnus Jacobsson [Sun, 29 Aug 2021 17:02:44 +0000 (19:02 +0200)]
dijkstra: remove linking to cdt
The dijkstra source files do not refer to cdt.
Magnus Jacobsson [Sun, 29 Aug 2021 16:13:39 +0000 (18:13 +0200)]
neatogen: add linking to sparse
E.g. lib/neatogen/adjust.c uses SparseMatrix_from_coordinate_arrays
from lib/sparse/SparseMatrix.c.
Magnus Jacobsson [Sun, 29 Aug 2021 16:06:31 +0000 (18:06 +0200)]
neatogen: add linking to gvc
E.g. lib/neatogen/stress.c uses gcalloc from lib/common/memory.c
through the N_NEW macro in lib/common/memory.h.
Magnus Jacobsson [Sun, 29 Aug 2021 15:59:40 +0000 (17:59 +0200)]
neatogen: add linking to pathplan
E.g. lib/neatogen/multispline.c uses Proutespline from
lib/pathplan/route.c.
Magnus Jacobsson [Sun, 29 Aug 2021 15:51:33 +0000 (17:51 +0200)]
sfdpgen: add linking to neatogen
E.g. lib/sfdpgen/post_process.c uses call_tri from
lib/neatogen/call_tri.c.
Magnus Jacobsson [Sun, 29 Aug 2021 15:47:13 +0000 (17:47 +0200)]
sfdpgen: add linking to sparse
E.g. lib/sfdpgen/Multilevel.c uses random_permutation from
lib/sparse/general.c.
Magnus Jacobsson [Sun, 29 Aug 2021 15:43:14 +0000 (17:43 +0200)]
sfdpgen: add linking to gvc
E.g. lib/sfdpgen/spring_electrical.c uses gcalloc from
lib/common/memory.c and the common object files are available through
the gvc library.
Magnus Jacobsson [Sun, 29 Aug 2021 15:18:12 +0000 (17:18 +0200)]
graphml2gv: remove useless linking to ingraphs
The graphml2gv source files do not refer to ingraphs.
Magnus Jacobsson [Sun, 29 Aug 2021 15:18:12 +0000 (17:18 +0200)]
gml2gv: remove useless linking to ingraphs
The gml2gv source files do not refer to ingraphs.
Magnus Jacobsson [Sun, 29 Aug 2021 13:39:16 +0000 (15:39 +0200)]
ingraphs: add linking to cgraph
E.g. ingraphs.c uses agsetfile from lib/cgraph/scan.l.
This removes the need to link to cgraph for downstream libraries that
do not explicitly use cgraph.
Magnus Jacobsson [Sun, 29 Aug 2021 08:48:24 +0000 (10:48 +0200)]
label: add linking to cdt
E.g. lib/label/xlabels.c use Dtobag from lib/cdt/dttree.c.
This removes the need to link to cdt for downstream libraries that
do not explicitly use cdt.
Magnus Jacobsson [Wed, 18 Aug 2021 18:29:43 +0000 (20:29 +0200)]
gvc: CMake: link to pack privately instead of publicly
The pack object modules are part of the gvc library and downstream
libraries should link to the gvc library, not to the pack
library. Hence no need for a transitive dependency to pack in gvc.
Matthew Fernandez [Mon, 30 Aug 2021 15:40:43 +0000 (15:40 +0000)]
Merge branch 'smattr/
550FBFBC -60E7-4C91-85B7-
795331C1A531 ' into 'main'
remove SWIG #include malloc.h work arounds
See merge request graphviz/graphviz!2119
Matthew Fernandez [Sat, 28 Aug 2021 16:36:27 +0000 (09:36 -0700)]
remove SWIG #include malloc.h work arounds
These lines were working around an issue where SWIG-generated code includes the
non-standard header malloc.h This was fixed in SWIG commit
571a84c9e788a8e97517a5d730d0e01edf0085e2 which made it into SWIG v1.3.32
released in 2007. Thus this work around is no longer necessary.
Related to #2115.
Magnus Jacobsson [Mon, 30 Aug 2021 06:32:43 +0000 (06:32 +0000)]
Merge branch 'clean-up-expat-xdot-and-label-linking' into 'main'
Clean up linking of expat, xdot and label
See merge request graphviz/graphviz!2123
Magnus Jacobsson [Sat, 28 Aug 2021 05:54:59 +0000 (07:54 +0200)]
gvc: CMake: remove now obsolete linking to label
The gvc source files do not refer to label explicitly and any implicit
references are now resolved through common.
Magnus Jacobsson [Wed, 25 Aug 2021 18:05:50 +0000 (20:05 +0200)]
common: add linking to label
E.g. lib/common/postproc.c uses placeLabels from lib/label/xlabels.c.
This removes the need to link to label for downstream libraries that
do not explicitly use label.
Magnus Jacobsson [Sat, 28 Aug 2021 05:32:33 +0000 (07:32 +0200)]
gvc: CMake: remove now obsolete linking to xdot
The core plugin that previously relied on this now explicitly links to
xdot itself.
The gvc source files do not refer to xdot explicitly and any implicit
references are now resolved by the transitive dependency through
common.
Magnus Jacobsson [Sat, 28 Aug 2021 05:26:25 +0000 (07:26 +0200)]
plugin/core: add linking to xdot
E.g. plugin/core/gvrender_core_dot.c uses parseXDot from
lib/xdot/xdot.c.
This will allow removal of unecessary linking to xdot in gvc in an
upcoming commit.
Magnus Jacobsson [Wed, 25 Aug 2021 18:15:41 +0000 (20:15 +0200)]
common: add linking to xdot
E.g. lib/common/emit.c. uses parseXDotF from lib/xdot/xdot.c.
This removes the need to link to xdot for downstream libraries that do
not explicitly use xdot.
Magnus Jacobsson [Wed, 25 Aug 2021 21:38:40 +0000 (23:38 +0200)]
gvc: CMake: replace now obsolete linking to expat
The gvc source files do not refer to expat explicitly and any implicit
references are now resolved through common.
Magnus Jacobsson [Wed, 25 Aug 2021 03:59:12 +0000 (05:59 +0200)]
common: add linking to expat if we have it
E.g. lib/common/htmllex.c uses XML_ParserCreate from
/usr/include/expat.h when we have expat.
This removes the need to link to expat for downstream libraries that
do not explicitly use expat.
Magnus Jacobsson [Sun, 29 Aug 2021 21:03:02 +0000 (21:03 +0000)]
Merge branch 'clean-up-cgraph-linking' into 'main'
Clean up cgraph linking
See merge request graphviz/graphviz!2124
Magnus Jacobsson [Sat, 28 Aug 2021 06:42:59 +0000 (08:42 +0200)]
gvc: change to link to cgraph privately
Downstream libraries that explicitly use cgraph now link to cgraph
themselves and no longer rely on a transitive dependency to cgraph
through gvc.
Magnus Jacobsson [Sat, 28 Aug 2021 08:12:04 +0000 (10:12 +0200)]
plugin/neato_layout: remove now obsolete linking to cgraph
The neato_layout source files do not refer to cgraph explicitly and
dependencies that need cgraph now all link to cgraph themselves.
Magnus Jacobsson [Sat, 28 Aug 2021 17:44:05 +0000 (19:44 +0200)]
osage: add linking to cgraph
E.g. osageinit.c uses agfstnode from lib/cgraph/node.c.
This removes the need to link to cgraph for downstream libraries that
do not explicitly use cgraph.
Magnus Jacobsson [Sat, 28 Aug 2021 17:39:29 +0000 (19:39 +0200)]
patchwork: add linking to cgraph
E.g. patchwork.c uses agfstnode from lib/cgraph/node.c.
This removes the need to link to cgraph for downstream libraries that
do not explicitly use cgraph.
Magnus Jacobsson [Sat, 28 Aug 2021 17:32:22 +0000 (19:32 +0200)]
twopigen: add linking to cgraph
E.g. twopiinit.c uses agnode from lib/cgraph/node.c.
This removes the need to link to cgraph for downstream libraries that
do not explicitly use cgraph.
Magnus Jacobsson [Sat, 28 Aug 2021 17:22:00 +0000 (19:22 +0200)]
neatogen: add linking to cgraph
E.g. constraint.c uses agopen from lib/cgraph/graph.c.
This removes the need to link to cgraph for downstream libraries that
do not explicitly use cgraph.
Magnus Jacobsson [Sat, 28 Aug 2021 09:31:12 +0000 (11:31 +0200)]
fdpgen: add linking to cgraph
E.g. layout.c uses agopen from lib/cgraph/graph.c.
This removes the need to link to cgraph for downstream libraries that
do not explicitly use cgraph.
Magnus Jacobsson [Sat, 28 Aug 2021 07:47:21 +0000 (09:47 +0200)]
circogen: add linking to cgraph
E.g. circularinit.c uses agopen from lib/cgraph/graph.c.
This removes the need to link to cgraph for downstream libraries that
do not explicitly use cgraph.