From: Magnus Jacobsson Date: Sun, 1 Aug 2021 16:01:01 +0000 (+0200) Subject: ortho: MSBuild: define GVDLL X-Git-Tag: 2.49.2~32^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef64016c93276acbfc17ee9fb59a42822463cf1a;p=graphviz ortho: MSBuild: define GVDLL Without this change, an upcoming commit in this series that will use GVDLL instead of _WIN32 to enable Microsoft-specific storage-class attributes would cause this error: neatogen.lib(neatosplines.obj) : error LNK2019: unresolved external symbol _orthoEdges referenced in function __spline_edges [C:\GitLab-Runner\builds\magjac\graphviz\plugin\neato_layout\gvplugin_neato_layout.vcxproj] Since https://gitlab.com/graphviz/graphviz/-/merge_requests/2182, setting GVDLL is the preferred single mechanism to enable Microsoft-specific storage-class attributes. Also towards https://gitlab.com/graphviz/graphviz/-/issues/2058#note_678679545 --- diff --git a/lib/ortho/gvortho.vcxproj b/lib/ortho/gvortho.vcxproj index debb56b52..59a1dca3f 100644 --- a/lib/ortho/gvortho.vcxproj +++ b/lib/ortho/gvortho.vcxproj @@ -52,7 +52,7 @@ Disabled $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pathplan;%(AdditionalIncludeDirectories) - _DEBUG;_LIB;WIN32_DLL;%(PreprocessorDefinitions) + _DEBUG;_LIB;WIN32_DLL;GVDLL;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -67,7 +67,7 @@ $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pathplan;%(AdditionalIncludeDirectories) - NDEBUG;_LIB;WIN32_DLL;%(PreprocessorDefinitions) + NDEBUG;_LIB;WIN32_DLL;GVDLL;%(PreprocessorDefinitions) Level4 true