imgtools/romtools/rofsbuild/rofsbuild.cpp
changeset 655 3f65fd25dfd4
parent 647 53d1ab72f5bc
child 662 60be34e1b006
equal deleted inserted replaced
649:02d78c9f018e 655:3f65fd25dfd4
    45 #define _alloca alloca
    45 #define _alloca alloca
    46 #endif
    46 #endif
    47 
    47 
    48 static const TInt RofsbuildMajorVersion=2;
    48 static const TInt RofsbuildMajorVersion=2;
    49 static const TInt RofsbuildMinorVersion=14;
    49 static const TInt RofsbuildMinorVersion=14;
    50 static const TInt RofsbuildPatchVersion=1;
    50 static const TInt RofsbuildPatchVersion=2;
    51 static TBool SizeSummary=EFalse;
    51 static TBool SizeSummary=EFalse;
    52 static TPrintType SizeWhere=EAlways;
    52 static TPrintType SizeWhere=EAlways;
    53 
    53 
    54 static TInt gHeaderType=1;			// EPOC header
    54 static TInt gHeaderType=1;			// EPOC header
    55 static TInt MAXIMUM_THREADS = 128;
    55 static TInt MAXIMUM_THREADS = 128;
   580 		} while(temp != 0);
   580 		} while(temp != 0);
   581 		gSmrImage = EFalse;
   581 		gSmrImage = EFalse;
   582 	}
   582 	}
   583 	// Process Rofs Obey files.
   583 	// Process Rofs Obey files.
   584 	if(obeyFileName) {
   584 	if(obeyFileName) {
   585 		if (cmdlogfile[cmdlogfile.size()-1] == '\\' || cmdlogfile[cmdlogfile.size()-1] == '/')
   585 		if(cmdlogfile.empty())
   586 			cmdlogfile += "ROFSBUILD.LOG";
   586 			cmdlogfile.assign("ROFSBUILD.LOG");
       
   587 		else if (cmdlogfile[cmdlogfile.length()-1] == '\\' || cmdlogfile[cmdlogfile.length()-1] == '/') {
       
   588 			cmdlogfile += "ROFSBUILD.LOG" ;
       
   589 		}
       
   590 			
   587 	 	H.SetLogFile(cmdlogfile.c_str());
   591 	 	H.SetLogFile(cmdlogfile.c_str());
   588 		ObeyFileReader *reader = new ObeyFileReader(obeyFileName); 
   592 		ObeyFileReader *reader = new ObeyFileReader(obeyFileName); 
   589 		if (!reader->Open())
   593 		if (!reader->Open())
   590 			return KErrGeneral;
   594 			return KErrGeneral;
   591 
   595