From decdc15e66d388660d39e7e2b3d87b923edd8dd1 Mon Sep 17 00:00:00 2001 From: cas Date: Wed, 19 Jan 2000 18:04:47 +0000 Subject: [PATCH] No comments --- src/WOKMake/WOKMake_Step.cxx | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/WOKMake/WOKMake_Step.cxx b/src/WOKMake/WOKMake_Step.cxx index a4937ce..79def0b 100755 --- a/src/WOKMake/WOKMake_Step.cxx +++ b/src/WOKMake/WOKMake_Step.cxx @@ -53,6 +53,9 @@ #include #include +//---> EUG4YAN +Standard_EXPORT Standard_Boolean g_fCompOrLnk; +//<--- EUG4YAN //======================================================================= //function : WOKMake_Step @@ -950,7 +953,7 @@ void WOKMake_Step::AcquitExecution(const Handle(WOKMake_HSequenceOfInputFile)& e inmap(index) = infile; - if(infile->IsPhysic()) + if(infile->IsPhysic()&&!infile->LastPath().IsNull ()&&!oldfile->LastPath().IsNull ()) { if(infile->LastPath()->Name()->IsSameString(oldfile->LastPath()->Name())) infile->SetStatus(WOKMake_Same); @@ -1307,7 +1310,9 @@ void WOKMake_Step::Init() //======================================================================= WOKMake_Status WOKMake_Step::Make() { - +//---> EUG4YAN + g_fCompOrLnk = Standard_False; +//<--- EUG4YAN Init(); if(CheckStatus("perform init of step")) {Terminate(); return Status();} @@ -1320,6 +1325,8 @@ WOKMake_Status WOKMake_Step::Make() if(CheckStatus("getting input list")) {Terminate(); return Status();} + Handle( WOKMake_HSequenceOfInputFile ) flist = ForceBuild (); + execlist = ExecutionInputList(); if(CheckStatus("determine exec list")) {Terminate(); return Status();} @@ -1334,7 +1341,24 @@ WOKMake_Status WOKMake_Step::Make() { SetUptodate(); } - +//---> EUG4YAN + Standard_CString aType = DynamicType () -> Name (); + + if ( !strcmp ( aType, "WOKStep_Compile" ) || + !strcmp ( aType, "WOKStep_DynamicLibrary" ) || + !strcmp ( aType, "WOKStep_DLLink" ) || + !strcmp ( aType, "WOKStep_ExecLink" ) || + !strcmp ( aType, "WOKStep_LibLink" ) + ) { + + InfoMsg << "WOKMake_Step :: Make" << "Generating build file" << endm; + + g_fCompOrLnk = Standard_True; + + Execute ( flist ); + + } // end if +//<--- EUG4YAN AcquitExecution(execlist); if(CheckStatus("acquit execution")) {Terminate(); return Status();} -- 2.39.5