]> granicus.if.org Git - graphviz/commitdiff
Add 64bit dependencies for lib/gvc
authorErwin Janssen <erwinjanssen@outlook.com>
Tue, 11 Apr 2017 20:02:12 +0000 (22:02 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Sun, 14 May 2017 21:22:24 +0000 (23:22 +0200)
These dependencies had the following changes:
- rxspencer became a lib-only library
- libexpat became expat
- The 64bit version of ltdl required cygwin1.dll

CMakeLists.txt
cmake/FindRxSpencer.cmake
cmd/tools/graphml2gv.vcxproj
cmd/tools/gxl2gv.vcxproj
lib/gvc.vcxproj
lib/gvc/CMakeLists.txt
windows/dependencies/libraries

index 65642ad57158bea3f2628ede2b6202129c37bc10..63dc00f9d31b89e8495432f826b91dec94a87764 100644 (file)
@@ -85,6 +85,9 @@ if (WIN32)
 
     # Find DLLs on Windows
     find_file(EXPAT_RUNTIME_LIBRARIES NAMES libexpat.dll expat.dll)
+    if (CMAKE_CL_64)
+        find_file(MSYS_RUNTIME_LIBRARIES NAMES msys-2.0.dll)
+    endif()
 endif()
 
 # ============================ Set Graphviz version ============================
index 2a4df12f3af67af947fc7699df1ea56ee099c905..d5341917362bdbb47335a22e2ec3d94f613530c6 100644 (file)
@@ -1,20 +1,16 @@
 find_path(RXSPENCER_INCLUDE_DIR regex.h)
 find_library(RXSPENCER_LIBRARY NAMES rxspencer)
-find_file(RXSPENCER_RUNTIME_LIBRARY rxspencer.dll)
 
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(RXSPENCER DEFAULT_MSG
     RXSPENCER_LIBRARY
     RXSPENCER_INCLUDE_DIR
-    RXSPENCER_RUNTIME_LIBRARY
 )
 
 mark_as_advanced(
     RXSPENCER_INCLUDE_DIR
     RXSPENCER_LIBRARY
-    RXSPENCER_RUNTIME_LIBRARY
 )
 
 set(RXSPENCER_INCLUDE_DIRS ${RXSPENCER_INCLUDE_DIR})
 set(RXSPENCER_LIBRARIES ${RXSPENCER_LIBRARY})
-set(RXSPENCER_RUNTIME_LIBRARIES ${RXSPENCER_RUNTIME_LIBRARY})
index 4313f400a2330a4e1de97c4dba1f8e89117293fa..10d7e29b64b3d7727cfac9e38c669dbe71f3cecc 100644 (file)
       <SubSystem>Console</SubSystem>
       <TargetMachine>MachineX86</TargetMachine>
       <AdditionalLibraryDirectories>$(OutDir);$(SolutionDir)windows\getopt;$(SolutionDir)windows\dependencies\libraries\x86\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <AdditionalDependencies>getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;gvc.lib;libexpat.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;gvc.lib;expat.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PostBuildEvent>
-      <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libexpat.dll $(OutDir)libexpat.dll</Command>
+      <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\expat.dll $(OutDir)expat.dll</Command>
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <TargetMachine>MachineX86</TargetMachine>
       <AdditionalLibraryDirectories>$(OutDir);$(SolutionDir)windows\getopt;$(SolutionDir)windows\dependencies\libraries\x86\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <AdditionalDependencies>getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;gvc.lib;libexpat.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;gvc.lib;expat.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PostBuildEvent>
-      <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libexpat.dll $(OutDir)libexpat.dll</Command>
+      <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\expat.dll $(OutDir)expat.dll</Command>
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>
index 1d6ae46fe83141e4428b7d77f5a8140199360a93..756c0781551fd80fd94fdac1f41cbb65d48fa3a8 100644 (file)
       <SubSystem>Console</SubSystem>
       <DataExecutionPrevention />
       <TargetMachine>MachineX86</TargetMachine>
-      <AdditionalDependencies>getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;gvc.lib;libexpat.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;gvc.lib;expat.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PostBuildEvent>
-      <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libexpat.dll $(OutDir)libexpat.dll</Command>
+      <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\expat.dll $(OutDir)libexpat.dll</Command>
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <DataExecutionPrevention />
       <TargetMachine>MachineX86</TargetMachine>
-      <AdditionalDependencies>getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;gvc.lib;libexpat.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;gvc.lib;expat.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PostBuildEvent>
-      <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libexpat.dll $(OutDir)libexpat.dll</Command>
+      <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\expat.dll $(OutDir)libexpat.dll</Command>
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>
index c49065d3bfba47f054c3014d9d62e68f7fe20efc..85d300b3f0fee0d7b2ed7933c6167b785a55f19c 100644 (file)
@@ -69,7 +69,7 @@
       <DataExecutionPrevention />
       <TargetMachine>MachineX86</TargetMachine>
       <ModuleDefinitionFile>gvc.def</ModuleDefinitionFile>
-      <AdditionalDependencies>cdt.lib;cgraph.lib;ltdl.lib;xml2.lib;libexpat.lib;zlib.lib;rxspencer.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>cdt.lib;cgraph.lib;ltdl.lib;xml2.lib;expat.lib;zlib.lib;rxspencer.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PreBuildEvent>
       <Command>bison -dy common\htmlparse.y -o common\htmlparse-intermediate.c
@@ -84,8 +84,7 @@ awk -f $(SolutionDir)awk\colortbl.awk color_lib &gt; common\colortbl.h</Command>
     </PreBuildEvent>
     <PostBuildEvent>
       <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libltdl3.dll $(OutDir)libltdl3.dll
-copy $(SolutionDir)windows\dependencies\libraries\x86\bin\rxspencer.dll $(OutDir)rxspencer.dll
-copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libexpat.dll $(OutDir)libexpat.dll</Command>
+copy $(SolutionDir)windows\dependencies\libraries\x86\bin\expat.dll $(OutDir)expat.dll</Command>
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -107,7 +106,7 @@ copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libexpat.dll $(OutDir)
       <DataExecutionPrevention />
       <TargetMachine>MachineX86</TargetMachine>
       <ModuleDefinitionFile>gvc.def</ModuleDefinitionFile>
-      <AdditionalDependencies>cdt.lib;cgraph.lib;ltdl.lib;xml2.lib;libexpat.lib;zlib.lib;rxspencer.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>cdt.lib;cgraph.lib;ltdl.lib;xml2.lib;expat.lib;zlib.lib;rxspencer.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PreBuildEvent>
       <Command>bison -dy common\htmlparse.y -o common\htmlparse-intermediate.c
@@ -122,8 +121,7 @@ awk -f $(SolutionDir)awk\colortbl.awk color_lib &gt; common\colortbl.h</Command>
     </PreBuildEvent>
     <PostBuildEvent>
       <Command>copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libltdl3.dll $(OutDir)libltdl3.dll
-copy $(SolutionDir)windows\dependencies\libraries\x86\bin\rxspencer.dll $(OutDir)rxspencer.dll
-copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libexpat.dll $(OutDir)libexpat.dll</Command>
+copy $(SolutionDir)windows\dependencies\libraries\x86\bin\expat.dll $(OutDir)expat.dll</Command>
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>
@@ -237,4 +235,4 @@ copy $(SolutionDir)windows\dependencies\libraries\x86\bin\libexpat.dll $(OutDir)
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>
-</Project>
+</Project>
\ No newline at end of file
index 68f894e6d6682a08bfd632f452924177a94de438..a853ba3b0830f818259ff3b768049507d3801c71 100644 (file)
@@ -108,7 +108,15 @@ if (WIN32)
         FILES
             ${EXPAT_RUNTIME_LIBRARIES}
             ${LTDL_RUNTIME_LIBRARIES}
-            ${RXSPENCER_RUNTIME_LIBRARIES}
         DESTINATION ${BINARY_INSTALL_DIR}
     )
+    # Include msys runtime when compiling 64bit on Windows, required for the
+    # 64bit version of libltdl. TODO: replace ltdl with a different dynamic
+    # loader, or find a 64bit version that doesn't need msys.
+    if (CMAKE_CL_64)
+        install(
+            FILES ${MSYS_RUNTIME_LIBRARIES}
+            DESTINATION ${BINARY_INSTALL_DIR}
+        )
+    endif()
 endif()
index 2263df7255f0d8bc80d39f3f5da2c82764c10783..77fda08357b2d39eb9285f37feebde123759ff5a 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 2263df7255f0d8bc80d39f3f5da2c82764c10783
+Subproject commit 77fda08357b2d39eb9285f37feebde123759ff5a