Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[windows] pexport is a dead project anyway
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 3 Oct 2015 20:23:51 +0000 (22:23 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 3 Oct 2015 20:23:54 +0000 (22:23 +0200)
We should use gendef, the mingw-w64 equivalent, if we want to produce
DLL that can be used in external projects. But we don't want that.

tools/cmake/Java.cmake
tools/cmake/MakeLibWin.cmake

index 502fb16..b763705 100644 (file)
@@ -44,12 +44,6 @@ if(WIN32)
 
   set_target_properties(simgrid-java PROPERTIES
     LINK_FLAGS "-Wl,--subsystem,windows,--kill-at")
 
   set_target_properties(simgrid-java PROPERTIES
     LINK_FLAGS "-Wl,--subsystem,windows,--kill-at")
-  find_path(PEXPORTS_PATH NAMES pexports.exe PATHS NO_DEFAULT_PATHS)
-  message(STATUS "pexports: ${PEXPORTS_PATH}")
-  if(PEXPORTS_PATH)
-    add_custom_command(TARGET simgrid-java POST_BUILD
-      COMMAND ${PEXPORTS_PATH}/pexports.exe ${CMAKE_BINARY_DIR}/lib/simgrid-java.dll > ${CMAKE_BINARY_DIR}/lib/simgrid-java.def)
-  endif(PEXPORTS_PATH)
 endif()
 
 # Rules to build simgrid.jar
 endif()
 
 # Rules to build simgrid.jar
@@ -188,8 +182,4 @@ add_dependencies(simgrid-java_jar surf-java)
 if(WIN32)
   set_target_properties(surf-java PROPERTIES
     LINK_FLAGS "-Wl,--subsystem,windows,--kill-at")
 if(WIN32)
   set_target_properties(surf-java PROPERTIES
     LINK_FLAGS "-Wl,--subsystem,windows,--kill-at")
-  if(PEXPORTS_PATH)
-    add_custom_command(TARGET surf-java POST_BUILD
-      COMMAND ${PEXPORTS_PATH}/pexports.exe ${CMAKE_BINARY_DIR}/lib/surf-java.dll > ${CMAKE_BINARY_DIR}/lib/surf-java.def)
-  endif(PEXPORTS_PATH)
 endif()
 endif()
index 8f77f3d..ceaab1d 100644 (file)
@@ -33,9 +33,3 @@ endif()
 
 target_link_libraries(simgrid  ${SIMGRID_DEP})
 
 
 target_link_libraries(simgrid  ${SIMGRID_DEP})
 
-find_path(PEXPORTS_PATH NAMES pexports.exe PATHS NO_DEFAULT_PATHS)
-message(STATUS "pexports: ${PEXPORTS_PATH}")
-if(PEXPORTS_PATH)
-  add_custom_command(TARGET simgrid POST_BUILD
-    COMMAND ${PEXPORTS_PATH}/pexports.exe ${CMAKE_BINARY_DIR}/lib/libsimgrid.dll > ${CMAKE_BINARY_DIR}/lib/libsimgrid.def)
-endif()