]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Merge from V7_2_BR 09/08/2013
authorvsr <vsr@opencascade.com>
Mon, 12 Aug 2013 09:23:08 +0000 (09:23 +0000)
committervsr <vsr@opencascade.com>
Mon, 12 Aug 2013 09:23:08 +0000 (09:23 +0000)
13 files changed:
salome_adm/cmake_files/deprecated/FindBOOST.cmake
salome_adm/cmake_files/deprecated/FindOMNIORB.cmake
salome_adm/cmake_files/deprecated/FindPLATFORM.cmake
salome_adm/cmake_files/deprecated/FindPYTHON.cmake
salome_adm/cmake_files/deprecated/am2cmake.py
src/Basics/CMakeLists.txt
src/Container/Container_i.cxx
src/KERNEL_PY/salome_test.py
src/Logger/CMakeLists.txt
src/SALOMEDSClient/CMakeLists.txt
src/SALOMELocalTrace/CMakeLists.txt
src/SALOMELocalTrace/Test/SALOMELocalTraceTest.cxx
src/SALOMETraceCollector/Test/SALOMETraceCollectorTest.cxx

index fff9d21a128640be172660319e787866c18e3a5e..ed0389eddce2853b5484fb4f2e5023a386ec7419 100644 (file)
@@ -26,6 +26,8 @@ MESSAGE(STATUS "Check for boost ...")
 
 # ------
 
+SET (boost_versions 1_35 1_38 1_42 1_46_1 1_49 1_52)
+
 IF(BOOST_IS_MANDATORY STREQUAL 0)
   SET(BOOST_IS_MANDATORY 0)
   SET(BOOST_IS_OPTIONAL 1)
@@ -75,6 +77,9 @@ ENDIF(BOOST_STATUS)
 IF(BOOST_STATUS)
   IF(BOOST_ROOT_USER)
     SET(BOOST_INCLUDE_PATHS ${BOOST_ROOT_USER} ${BOOST_ROOT_USER}/include)
+    FOREACH(version ${boost_versions})
+     SET(BOOST_INCLUDE_PATHS ${BOOST_INCLUDE_PATHS} ${BOOST_ROOT_USER}/include/boost-${version})
+    ENDFOREACH(version ${boost_versions})
   ELSE(BOOST_ROOT_USER)
     SET(BOOST_INCLUDE_PATHS)
   ENDIF(BOOST_ROOT_USER)
@@ -114,7 +119,7 @@ ENDIF(WINDOWS)
   
 IF(BOOST_STATUS)
   SET(BOOST_LIBS)
-  FOREACH(name thread date_time signals filesystem system regex)
+  FOREACH(name thread date_time signals filesystem system regex chrono)
     IF(WINDOWS)
       IF(CMAKE_BUILD_TYPE STREQUAL Debug)
         SET(EXTENSION -gd)
@@ -123,10 +128,10 @@ IF(BOOST_STATUS)
       ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
       SET(LIB_NAMES)
       SET(STATIC_LIB_NAMES)      
-      FOREACH(version 1_35 1_38 1_42 1_46_1 1_49)
+      FOREACH(version ${boost_versions})
         SET(LIB_NAMES ${LIB_NAMES} boost_${name}-vc90-mt${EXTENSION}-${version})
         SET(STATIC_LIB_NAMES ${STATIC_LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
-      ENDFOREACH(version 1_35 1_38 1_42 1_46_1 1_49)
+      ENDFOREACH(version ${boost_versions})
       FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
       SET(BOOST_LIB_${name}_FOUNDED ${BOOST_LIB_${name}})
       IF(NOT BOOST_LIB_${name})
index 64599d1bf712fa4f3bd25ceb95aef4dae6830122..f14adaee7910eaa5ea7641921249d4362750d2ef 100644 (file)
@@ -65,8 +65,13 @@ ENDIF(OMNIORB_STATUS)
 
 IF(OMNIORB_STATUS)
   SET(OMNIIDL_EXECUTABLE_TO_FIND omniidl)
+  IF(WINDOWS)
+    SET( FIND_PATH ${OMNIORB_ROOT_USER}/bin/x86_win32)
+  ELSE(WINDOWS)
+    SET( FIND_PATH ${OMNIORB_ROOT_USER}/bin)
+  ENDIF(WINDOWS)  
   IF(OMNIORB_ROOT_USER)
-    FIND_PROGRAM(OMNIIDL_EXECUTABLE ${OMNIIDL_EXECUTABLE_TO_FIND} PATHS ${OMNIORB_ROOT_USER}/bin)
+    FIND_PROGRAM(OMNIIDL_EXECUTABLE ${OMNIIDL_EXECUTABLE_TO_FIND} PATHS ${FIND_PATH} )
   ELSE(OMNIORB_ROOT_USER)
     FIND_PROGRAM(OMNIIDL_EXECUTABLE ${OMNIIDL_EXECUTABLE_TO_FIND})
   ENDIF(OMNIORB_ROOT_USER)
index d7dcd003337cb3517fb3f5f925529b7c3f8114da..7b86981114fee36fbd55fae778a502fa51179fe5 100644 (file)
@@ -108,7 +108,10 @@ IF(WINDOWS)
   SET(PLATFORM_LIBS ${PLATFORM_LIBS} Userenv.lib) # At least for GEOM suit
 
   IF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")          # if platform is Windows 64 bit 
-    SET(PLATFORM_CPPFLAGS "${PLATFORM_CPPFLAGS} -D_SECURE_SCL=0 -D_SECURE_SCL_THROWS=0 -D_HAS_ITERATOR_DEBUGGING=0") # To avoid runtime error during checking iterators  # to be removed
+    # To avoid runtime error during checking iterators  # to be removed
+    SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SECURE_SCL=0)
+    SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SECURE_SCL_THROWS=0) 
+    SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_HAS_ITERATOR_DEBUGGING=0) 
     SET(PLATFORM_DEFINITIONS "${PLATFORM_DEFINITIONS} -D_SECURE_SCL=0 -D_SECURE_SCL_THROWS=0 -D_HAS_ITERATOR_DEBUGGING=0") # To avoid runtime error during checking iterators 
   ENDIF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
 ELSE(WINDOWS)
index 1b2f64aae256cc7926f86ec1a031d145e8d86c77..cf7b93211c97f2d994eb98ff14554ceab91f59f7 100644 (file)
@@ -190,6 +190,7 @@ IF(PYTHON_STATUS)
   IF(PYTHON_LIB)
     SET(PYTHON_LIBS ${PYTHON_LIBS} ${PYTHON_LIB})
     MESSAGE(STATUS "python lib found: ${PYTHON_LIB}")
+    SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${PYTHON_LIB_PATHS})
   ELSE(PYTHON_LIB)
     SET(PYTHON_STATUS 0)
     IF(PYTHON_ROOT_USER)
index a03ad23c591229cd29ec442ea6d72fa5123805b7..fac70cb18b3e20e5fba7381b97a4c0e7935f7289 100644 (file)
@@ -594,6 +594,7 @@ class CMakeFile(object):
                             newlines.append("""
                             SET(GEOM_ROOT_DIR $ENV{GEOM_ROOT_DIR})
                             SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR})
+                            INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/deprecated/FindQWT.cmake)
                             INCLUDE(${GEOM_ROOT_DIR}/adm_local/cmake_files/FindGEOM.cmake)
                             INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMEDFILE.cmake)
                             INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMED.cmake)
@@ -660,6 +661,10 @@ class CMakeFile(object):
                             INCLUDE(${CMAKE_SOURCE_DIR}/adm/cmake/FindEXPAT.cmake)
                             INCLUDE(${CMAKE_SOURCE_DIR}/adm/cmake/FindGRAPHVIZ.cmake)
                             INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindSPHINX.cmake)
+
+                            SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SECURE_SCL=0)
+                            SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SECURE_SCL_THROWS=0)
+                            SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_HAS_ITERATOR_DEBUGGING=0) # To avoid runtime error during checking iterators
                             """)
                             pass
                         if self.module == "jobmanager":
index becf90fa788cf01b7a22d75b79eb125196140f07..6a32248cc9b7e44465b0740b476039b64e9e0c69 100755 (executable)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
+INCLUDE_DIRECTORIES(
+  ${PTHREAD_INCLUDE_DIRS}
+)
+
 SET(SALOMEBasics_SOURCES
   BasicsGenericDestructor.cxx
   Basics_Utils.cxx
index 106f8485c2123be71c82b3e84ee92a008dea709f..c2fb5febf30cb172748050ef5b3720633ef83db6 100644 (file)
@@ -1365,7 +1365,8 @@ void ActSigIntHandler()
 
 #else  
   signal( SIGINT, SigIntHandler );
-  signal( SIGUSR1, SigIntHandler );
+// legacy code required to supervisor. Commented in order to avoid problems on Windows 
+//  signal( SIGUSR1, SigIntHandler );
 #endif
 
 }
index 9b799e5a48e9b26c521c7a121019b5b26bc5144f..5bac523fe75a4530508f89b14c9d416b5e339351 100755 (executable)
@@ -22,7 +22,7 @@
 #
 
 print
-print "Perform quick test of the application by loading of the GEOM, SMESH, VISU, MED"
+print "Perform quick test of the application by loading of the GEOM, SMESH, MED, PARAVIS"
 print "components and doing some operation within the components."
 print
 
@@ -63,33 +63,14 @@ print "======================================================================"
 print "           %d. Check modules availability in the module catalog " % step; step+=1
 print "======================================================================"
 
-print
-print "--- Check GEOM ..."
-comp = catalog.GetComponent("GEOM")
-if not comp:
-    raise RuntimeError, "Component GEOM is not found in Module Catalog."
-print "OK"
-
-print
-print "--- Check SMESH ..."
-comp = catalog.GetComponent("SMESH")
-if not comp:
-    raise RuntimeError, "Component SMESH is not found in Module Catalog."
-print "OK"
-
-print
-print "--- Check MED ..."
-comp = catalog.GetComponent("MEDOPFactory")
-if not comp:
-    raise RuntimeError, "Component MED is not found in Module Catalog."
-print "OK"
-
-print
-print "--- Check PARAVIS ..."
-comp = catalog.GetComponent("PARAVIS")
-if not comp:
-    raise RuntimeError, "Component PARAVIS is not found in Module Catalog."
-print "OK"
+for module in [ "GEOM", "SMESH", "MEDOPFactory", "PARAVIS"]:
+    print
+    print "--- Check %s ..." % module
+    comp = catalog.GetComponent(module)
+    if not comp:
+        raise RuntimeError, "Component %s is not found in Module Catalog." % module
+    print "OK"
+    pass
 
 print
 
@@ -469,4 +450,4 @@ else: # not in gui mode, Paravis can not be tested
 
 # ---- update object browser
 if salome.hasDesktop():
-    salome.sg.updateObjBrowser(1);
\ No newline at end of file
+    salome.sg.updateObjBrowser(1);
index c07c0e66cc29d4f18ed0f814b8118a4d91b8fe13..fdbae1565cdc6b72539133d4bc99b0b8c726bd3b 100755 (executable)
@@ -19,6 +19,7 @@
 
 INCLUDE_DIRECTORIES(
   ${OMNIORB_INCLUDE_DIR}
+  ${PTHREAD_INCLUDE_DIRS}
   ${PROJECT_BINARY_DIR}/salome_adm
   ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
   ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
index a94632f1666574abde6f6ce9857b683adfc3888b..9e4ea8ab1d62aedc0563c16b0c31a8a5d3ef3ba5 100755 (executable)
@@ -27,7 +27,7 @@ INCLUDE_DIRECTORIES(
 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
 
 ADD_LIBRARY(SalomeDSClient SALOMEDSClient_ClientFactory.cxx)
-TARGET_LINK_LIBRARIES(SalomeDSClient SalomeIDLKernel)
+TARGET_LINK_LIBRARIES(SalomeDSClient SalomeIDLKernel ${PLATFORM_LIBS})
 INSTALL(TARGETS SalomeDSClient EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
index 3da322c7ff8d12af4a42064f06663645478c47f0..00af50a84de48c642e186617d406a1d1339df914 100755 (executable)
@@ -20,6 +20,7 @@
 INCLUDE_DIRECTORIES(
   ${PTHREAD_INCLUDE_DIR}
   ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
+  ${PTHREAD_INCLUDE_DIRS}
 )
 
 SET(COMMON_HEADERS
index 094f65d428fd170168b3d070f3683b74c219d747..b68f011ef14294fe38bad65ea803f13266ed4f0f 100644 (file)
@@ -190,7 +190,7 @@ void *PrintHello(void *threadid)
         << " - iter " << i);
 #endif
   pthread_exit(NULL);
-  #ifdef WIN32\r
-    return NULL;\r
-  #endif
+#ifdef WIN32
+  return NULL;
+#endif
 }
index 3c9758f02325fda7353f952805ee75f1f186edf8..14f49717f150abc2da449d32977143777ec98797 100644 (file)
@@ -113,7 +113,7 @@ void *PrintHello(void *threadid)
                 << " - iter " << i);
 #endif
   pthread_exit(NULL);
-  #ifdef WIN32\r
-    return NULL;\r
-  #endif
+#ifdef WIN32
+  return NULL;
+#endif
 }