]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Fri, 5 Nov 1999 18:28:10 +0000 (18:28 +0000)
committercas <cas@opencascade.com>
Fri, 5 Nov 1999 18:28:10 +0000 (18:28 +0000)
src/WOKBuilder/FILES
src/WOKBuilder/WOKBuilder.cdl
src/WOKBuilder/WOKBuilder_CompilerIterator.cdl
src/WOKBuilder/WOKBuilder_CompilerIterator.cxx
src/WOKBuilder/WOKBuilder_DLLinker.cxx
src/WOKBuilder/WOKBuilder_Linker.cxx
src/WOKBuilder/WOKBuilder_MSAction.cxx
src/WOKBuilder/WOKBuilder_ToolInShellIterator.cdl
src/WOKBuilder/WOKBuilder_ToolInShellIterator.cxx

index 60c0be90a7fb18b56b424fece5ff2a241351aa2d..cf732da2912ef7da943701b6690f5b059d869bf7 100755 (executable)
@@ -1,3 +1,4 @@
 WOKBuilder_MSExtractorExtractPtr.hxx
 WOKBuilder_MSExtractorTemplatesPtr.hxx
 WOKBuilder_MSTranslatorPtr.hxx
+
index 0ae96caf715af28b27a6e197a83fef85535d1dc7..a9290c27c38ead23b5adf248eb6b52ad6ae9ca4f 100755 (executable)
@@ -117,7 +117,8 @@ is
                class MSServerExtractor;
                class MSClientExtractor;
                class MSEngineExtractor;
-                   
+                class MSJiniExtractor;             
+
        class MSExtractorIterator;
            
        deferred class ToolInShell;
index 388ea6c7218c5f2804c63af85940622957c8959e..4e2fbbdeb20fcf6808a546e8a778a4e6b881ef75 100755 (executable)
@@ -51,6 +51,8 @@ is
        returns BuildStatus from WOKBuilder;
 
     CmdLine ( me ) returns HAsciiString from TCollection;
+    ---C++: return const &
+
 fields
 
     myincdirs : HSequenceOfPath from WOKUtils;
index fb784a67a969f6432765b7c8789f08f9a47ad358..c125d85fc7b6493e6c65bd7085bc83a0522d49f5 100755 (executable)
@@ -140,3 +140,8 @@ WOKBuilder_BuildStatus WOKBuilder_CompilerIterator::Execute(const Handle(WOKBuil
   return status;
 }
 
+const Handle( TCollection_HAsciiString )& WOKBuilder_CompilerIterator :: CmdLine () const {
+
+ return myCmdLine;
+
+}  // end 
index 1794a0ffd5c5fbfbae386c315678dd75f2206f6e..c2cba37f62914834f837a11042b9aa19df329e40 100755 (executable)
@@ -46,9 +46,6 @@ Handle(TCollection_HAsciiString) WOKBuilder_DLLinker::EvalFooter()
   Handle(WOKBuilder_Entity)        outEnt[4];
   Handle(TCollection_HAsciiString) tmp;
   Handle(TCollection_HAsciiString) retVal = EvalToolParameter("LinkerOutput");
-  Standard_Boolean                 fDebug;
-
-  //fDebug = Params().Value("%DebugMode")->IsSameString(new TCollection_HAsciiString("True")) ? Standard_True : Standard_False;
  
   tmp = EvalToolTemplate("LinkerDLL");
 
@@ -65,13 +62,10 @@ Handle(TCollection_HAsciiString) WOKBuilder_DLLinker::EvalFooter()
 
   outEnt[2] = new WOKBuilder_ExportLibrary(new WOKUtils_Path(EvalToolTemplate("LinkerEXP")));
 
-  //if (fDebug) {
-
   retVal -> AssignCat (  EvalToolParameter ( "LinkerPDBOption" )  );
   tmp = EvalToolTemplate ( "LinkerPDB" );
   retVal -> AssignCat ( tmp );
   outEnt[3] = new WOKBuilder_SharedLibrary(new WOKUtils_Path(tmp));
-  //} 
 
   SetProduction(new WOKBuilder_HSequenceOfEntity());
 
@@ -79,7 +73,7 @@ Handle(TCollection_HAsciiString) WOKBuilder_DLLinker::EvalFooter()
   Produces()->Append(outEnt[1]);
   Produces()->Append(outEnt[2]);
 
-  //if( fDebug ) 
   Produces()->Append(outEnt[3]);
   return retVal;
 }
+
index e6fc79455a19e7d74898f54d91dfef2f7e85c7a0..a4d38a182930de2321bf60bc5d4947de5cb4aa64 100755 (executable)
@@ -461,25 +461,40 @@ WOKBuilder_BuildStatus WOKBuilder_Linker::Execute()
 #ifndef LIN
   Shell()->Execute(EvalFooter());
 #else
-  static Handle( TCollection_HAsciiString ) skipStr =
-   new TCollection_HAsciiString ( "/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to " );
+  Handle( TCollection_HAsciiString ) target = Params ().Value ( "%Target", 0 );
+
   Shell () -> Send (  EvalFooter ()  );
 
-  Handle( TCollection_HAsciiString ) paramH = EvalToolTemplate ( "CheckUndefHeader" );
-  Handle( TCollection_HAsciiString ) paramF = EvalToolTemplate ( "CheckUndefFooter" );
+  static Handle( TCollection_HAsciiString ) skipStr =
+   new TCollection_HAsciiString ( "/usr/bin/ld: warning: cannot find entry symbol _start" );
+
+  Handle( TCollection_HAsciiString ) uType = Params ().Value ( "%UnitType", 0 );
 
-  if (  !paramH.IsNull     () && !paramF.IsNull     () &&
-        !paramH -> IsEmpty () && !paramF -> IsEmpty ()
+  if (  !uType.IsNull () &&
+        (   !strcmp (  uType -> ToCString (), "toolkit"     ) ||
+            !strcmp (  uType -> ToCString (), "executable"  )
+        )
   ) {
 
-   Shell () -> Send ( paramH );
-   Shell () -> Send ( EvalLibSearchDirectives ()  );
-   Shell () -> Send ( EvalDatabaseDirectives  ()  );
-   Shell () -> Send (  EvalObjectList  ()  );
-   Shell () -> Send (  EvalLibraryList ()  );
-   Shell () -> Execute ( paramF );
+   Handle( TCollection_HAsciiString ) paramH = EvalToolTemplate ( "CheckUndefHeader" );
+   Handle( TCollection_HAsciiString ) paramF = EvalToolTemplate ( "CheckUndefFooter" );
+
+   if (  !paramH.IsNull     () && !paramF.IsNull     () &&
+         !paramH -> IsEmpty () && !paramF -> IsEmpty ()
+   ) {
+
+    Shell () -> Send ( paramH );
+    Shell () -> Send ( EvalLibSearchDirectives ()  );
+    Shell () -> Send ( EvalDatabaseDirectives  ()  );
+    Shell () -> Send ( target );
+    Shell () -> Send (  EvalLibraryList ()  );
+    Shell () -> Send ( paramF );
+
+   }  // end if
+
+  }  // end if
 
-  } else Shell () -> Execute (  new TCollection_HAsciiString ( "\n" )  );
+  Shell () -> Execute (  new TCollection_HAsciiString ( "\n" )  );
 #endif  // LIN
 
   if(Shell()->Status())
index 239c6e9eed8fa7644802854242d10744550a9a35..04772d4aaff1db1c087a8415768417dc501fd0e8 100755 (executable)
@@ -40,7 +40,7 @@ WOKBuilder_MSAction::WOKBuilder_MSAction(const Handle(WOKBuilder_MSAction)& anac
 //=======================================================================
 WOKBuilder_MSAction::WOKBuilder_MSAction(const Handle(WOKBuilder_MSEntity)& anentity, 
                                          const WOKBuilder_MSActionType atype)
-: myent(anentity), mytype(atype), mydate(-1), mystatus(WOKBuilder_NotDefined)
+: myent(anentity), mytype(atype), mystatus(WOKBuilder_NotDefined), mydate(-1)
 {
 }
 
@@ -50,7 +50,7 @@ WOKBuilder_MSAction::WOKBuilder_MSAction(const Handle(WOKBuilder_MSEntity)& anen
 //=======================================================================
 WOKBuilder_MSAction::WOKBuilder_MSAction(const Handle(TCollection_HAsciiString)& aname, 
                                          const WOKBuilder_MSActionType atype)
-: mytype(atype), mydate(-1), mystatus(WOKBuilder_NotDefined)
+: mytype(atype), mystatus(WOKBuilder_NotDefined), mydate(-1)
 {
   myent = new WOKBuilder_MSEntity(aname);
 }
index 24565388f74da03c81717e7b69aa6b9e18139931..5c782636f2c586683eefa0fedb2e8d03626f17ff 100755 (executable)
@@ -35,6 +35,9 @@ is
           Param    : Param        from WOKUtils)
        returns ToolInShellIterator from WOKBuilder;
 
+    Destroy ( me : out );
+    ---C++: alias "Standard_EXPORT virtual ~WOKBuilder_ToolInShellIterator () {}"
+
     Init(me:out; ashell    : Shell        from WOKUtils; 
                 adir      : Path         from WOKUtils)
        is virtual;
index 6ee9abc442a277da384450b1227b10417bcb4535..74cb3512b4cafa97b03b788edf963a652395a70b 100755 (executable)
@@ -49,7 +49,7 @@ WOKBuilder_ToolInShellIterator::WOKBuilder_ToolInShellIterator(const Handle(TCol
                                                               const Handle(WOKUtils_Shell)& ashell,
                                                               const Handle(WOKUtils_Path)& apath,
                                                               const WOKUtils_Param& params)
-  : mygroup(agroup), myshell(ashell), myoutdir(apath), myparams(params)
+  : mygroup(agroup), myparams(params), myshell(ashell), myoutdir(apath)
 {
   
 }