WOKBuilder_MSExtractorExtractPtr.hxx
WOKBuilder_MSExtractorTemplatesPtr.hxx
WOKBuilder_MSTranslatorPtr.hxx
+
class MSServerExtractor;
class MSClientExtractor;
class MSEngineExtractor;
-
+ class MSJiniExtractor;
+
class MSExtractorIterator;
deferred class ToolInShell;
returns BuildStatus from WOKBuilder;
CmdLine ( me ) returns HAsciiString from TCollection;
+ ---C++: return const &
+
fields
myincdirs : HSequenceOfPath from WOKUtils;
return status;
}
+const Handle( TCollection_HAsciiString )& WOKBuilder_CompilerIterator :: CmdLine () const {
+
+ return myCmdLine;
+
+} // end
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");
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());
Produces()->Append(outEnt[1]);
Produces()->Append(outEnt[2]);
- //if( fDebug )
Produces()->Append(outEnt[3]);
return retVal;
}
+
#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())
//=======================================================================
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)
{
}
//=======================================================================
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);
}
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;
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)
{
}