]> granicus.if.org Git - graphviz/commitdiff
Windows: Pathplan now generating .lib file.
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 20 Jun 2016 22:55:55 +0000 (00:55 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Mon, 20 Jun 2016 22:55:55 +0000 (00:55 +0200)
lib/pathplan/Pathplan.vcxproj
lib/pathplan/pathplan.h

index 8e94a648afe37acf7d5d7a56f9d0311ac64b549c..3d4b848f3c0c0f2224fce5c7f954110e18f7064f 100644 (file)
@@ -47,7 +47,7 @@
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
     <OutDir>$(SolutionDir)Graphviz\bin\</OutDir>
     <IntDir>Release\</IntDir>
-    <CodeAnalysisRuleSet>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset</CodeAnalysisRuleSet>
+    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
     <RunCodeAnalysis>true</RunCodeAnalysis>
   </PropertyGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
index 244e998bf1843cdcc5b3ba9deba275f71a6312a8..fdadb26410ec8762d39f378e4bdcf7bd2d740e26 100644 (file)
@@ -27,6 +27,16 @@ extern "C" {
 #   define extern __EXPORT__
 #endif
 
+/*visual studio*/
+#if defined(WIN32)
+#   if !defined(PATHPLAN_EXPORTS)
+#       define extern __declspec(dllimport)
+#   else
+#       define extern __declspec(dllexport)
+#   endif
+#endif
+/*end visual studio*/
+
 /* find shortest euclidean path within a simple polygon */
     extern int Pshortestpath(Ppoly_t * boundary, Ppoint_t endpoints[2],
                             Ppolyline_t * output_route);