]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Mon, 3 Apr 2000 11:19:21 +0000 (11:19 +0000)
committercas <cas@opencascade.com>
Mon, 3 Apr 2000 11:19:21 +0000 (11:19 +0000)
src/WOKStep/WOKStep_LinkList.cxx
src/WOKStep/WOKStep_TKReplace.cxx

index d3e961380a0fc0dd14c0f197805013793e652fcc..fe4026124f116f264d78cb93a0ced7564a6d3264 100755 (executable)
@@ -41,7 +41,9 @@
 
 #include <WOKStep_LinkList.ixx>
 
-
+//---> EUG4JR
+Standard_Boolean g_fForceLib;
+//<--- EUG4JR
 
 //=======================================================================
 //function : WOKStep_LinkList
@@ -194,13 +196,14 @@ Handle(WOKMake_OutputFile) WOKStep_LinkList::GetUnitLibrary(const Handle(WOKerne
          Standard_Boolean mustExist = aunit->SearchInFileList(Locator(),libname);
          if (mustExist)
            {
-             ErrorMsg << "WOKStep_LinkList::GetUnitLibrary" 
-                      << "No library (" << libname << ") found for unit " << aunit->Name() << endm;          
-             SetFailed();
+//           ErrorMsg << "WOKStep_LinkList::GetUnitLibrary" 
+//                    << "No library (" << libname << ") found for unit " << aunit->Name() << endm;          
+//           SetFailed();
            }
-         else
-           WarningMsg << "WOKStep_LinkList::GetUnitLibrary" 
-                      << "No library (" << libname << ") in unit " << aunit->Name() << endm;
+         else {
+//         WarningMsg << "WOKStep_LinkList::GetUnitLibrary" 
+//                    << "No library (" << libname << ") in unit " << aunit->Name() << endm;
+         }
        }
       else
        {
@@ -350,9 +353,15 @@ void WOKStep_LinkList::AddWorkbenchUnitContribution(const Handle(WOKMake_InputFi
                  InfoMsg << "WOKStep_LinkList::GetUnitContribution" 
                    << "Processing step " << step->UniqueName() << endm;
 
+//---> EUG4JR
+          if (   !strcmp (  DynamicType () -> Name (), "WOKStep_TransitiveLinkList"  )   )
 
+           g_fForceLib = Standard_True;
+//<--- EUG4JR
                  Handle(WOKMake_HSequenceOfOutputFile) outfiles = step->OutputFileList();
-                 
+//---> EUG4JR
+          if ( g_fForceLib ) g_fForceLib = Standard_False;
+//<--- EUG4JR            
                  if(outfiles.IsNull())
                    {
                      ErrorMsg << "WOKStep_LinkList::GetUnitContribution" 
index b983d41b98e88fd1940feacc50c7e63eee961fc1..5d27a4b335c82dbcdf4dc451ad4f4ce3004f95bb 100755 (executable)
@@ -138,10 +138,13 @@ void WOKStep_TKReplace::LoadTKDefs()
   Handle(TCollection_HAsciiString)        aunitname;
   Handle(TCollection_HAsciiString)        afullname, abasename;
   Standard_Integer                        i,j;
-  
+#if 0  
   Handle(WOKernel_File) toolkits = Locator()->Locate(Unit()->Name(),
                                                     new TCollection_HAsciiString("source"), 
                                                     new TCollection_HAsciiString("TOOLKITS"));
+#else
+  Handle(WOKernel_File) toolkits;
+#endif
 
   if(toolkits.IsNull())
     {
@@ -285,6 +288,7 @@ void WOKStep_TKReplace::LoadTKDefs()
     }
 
 #ifdef WNT
+ if (  !mymatrix.IsNull ()  ) {
 
   // if faut enlever le tk qui contient eventuellement l'ud en cours de construction
   if(!WOKernel_IsToolkit(Unit()))
@@ -332,6 +336,7 @@ void WOKStep_TKReplace::LoadTKDefs()
            }
        }
     }
+ }  // end if
 #endif
 }
 
@@ -371,8 +376,10 @@ _TEST_BREAK();
                {
                  WarningMsg << "WOKStep_TKReplace::GetTKForUnit"
                             << "More than one toolkit contains " << aunit << " using " << result << " ignoring " << mytks(i) << endm;
+#if 0
                  WarningMsg << "WOKStep_TKReplace::GetTKForUnit"
                             << "You can specify the toolkit used using a TOOLKITS file" << endm;
+#endif
                }
              else
                {