Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Declare variable DLL_EXPORT for Libs.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 16 Jun 2010 10:25:56 +0000 (10:25 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 16 Jun 2010 10:25:56 +0000 (10:25 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7876 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/MakeExeLib.cmake
buildtools/Cmake/gras_config.h.in
include/simgrid_config.h.in

index d745412..0c08e0e 100644 (file)
@@ -1,4 +1,10 @@
 ### Make Libs
+foreach(file ${simgrid_sources})
+    set_source_files_properties(${file} PROPERTIES COMPILE_FLAGS "/D DLL_EXPORT")
+endforeach(file ${simgrid_sources})
+foreach(file ${gras_sources})
+    set_source_files_properties(${file} PROPERTIES COMPILE_FLAGS "/D DLL_EXPORT")
+endforeach(file ${gras_sources})
 
 if(enable_supernovae AND NOT WIN32)
        include(${PROJECT_DIRECTORY}/buildtools/Cmake/Supernovae.cmake)
@@ -17,14 +23,13 @@ if(enable_smpi)
        set_target_properties(smpi PROPERTIES VERSION ${libsmpi_version})
 endif(enable_smpi)
 
-
-set(GRAS_DEP "-lm -lpthread")
-set(SIMGRID_DEP "-lm")
-set(SMPI_DEP "")
-
 if(WIN32)
        set(GRAS_DEP "wsock32")
        set(SIMGRID_DEP "wsock32")
+else(WIN32)
+    set(GRAS_DEP "-lm -lpthread")
+    set(SIMGRID_DEP "-lm")
+    set(SMPI_DEP "")
 endif(WIN32)
 
 if(HAVE_RUBY)
index ba3c427..4cdeafd 100644 (file)
@@ -15,7 +15,6 @@
        #cmakedefine WIN32 @WIN32@
 #endif
 #ifdef _WIN32
-       #define DLL_EXPORT
        #define __VISUALC__
 #endif
 
index 612a80f..35e54e4 100644 (file)
@@ -8,8 +8,8 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/misc.h"           /* XBT_PUBLIC */
-#ifdef _WIN32
-       #define DLL_EXPORT
+#ifndef DLL_EXPORT
+       #define DLL_IMPORT
 #endif
 
 #ifndef SIMGRID_PUBLIC_CONFIG_H