secureswitools/swisistools/source/makesis/makesis.cpp
branchRCL_3
changeset 24 5cc91383ab1e
parent 1 c42dffbd5b4f
child 25 7333d7932ef7
equal deleted inserted replaced
23:cd189dac02f7 24:5cc91383ab1e
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   496 			iLineNo(0),
   496 			iLineNo(0),
   497 			iDump(false),
   497 			iDump(false),
   498 			iVerbose(false)
   498 			iVerbose(false)
   499 	{}
   499 	{}
   500 
   500 
   501 int CMakeSIS::Run(int argc, wchar_t* argv[])
   501 int CMakeSIS::RunL(int argc, wchar_t* argv[])
   502 // Inputs   : argc, argv, envp - The command line passed to the process
   502 // Inputs   : argc, argv, envp - The command line passed to the process
   503 	{
   503 	{
   504 	int err=1;
   504 	int err=1;
   505 	
   505 	
   506 	try
   506 	try
   540 			pkgParser.SetSearchDirectory(iCmdOptions.SearchPath());
   540 			pkgParser.SetSearchDirectory(iCmdOptions.SearchPath());
   541 			}
   541 			}
   542 		
   542 		
   543 		
   543 		
   544 		bool isStubFile= (iCmdOptions.Flags() & CParseCmd::EOptMakeStub) != 0;
   544 		bool isStubFile= (iCmdOptions.Flags() & CParseCmd::EOptMakeStub) != 0;
   545 		pkgParser.MakeSis(iCmdOptions.SourceFile(), iCmdOptions.TargetFile(), isStubFile, iCmdOptions.InterpretSisReport());
   545 		pkgParser.MakeSisL(iCmdOptions.SourceFile(), iCmdOptions.TargetFile(), isStubFile, iCmdOptions.InterpretSisReport());
   546 		err = 0;
   546 		err = 0;
   547 
   547 
   548 		if (iCmdOptions.InterpretSisReport())
   548 		if (iCmdOptions.InterpretSisReport())
   549 			{
   549 			{
   550 			if ( iInterpretSisReport.empty() )
   550 			if ( iInterpretSisReport.empty() )
   597 But CommandLineArgs works as a wide main for MinGW and STLPort
   597 But CommandLineArgs works as a wide main for MinGW and STLPort
   598 is used for wide characters stuff.
   598 is used for wide characters stuff.
   599 */
   599 */
   600 	wchar_t **argv1	= CommandLineArgs(argc,argv);
   600 	wchar_t **argv1	= CommandLineArgs(argc,argv);
   601 	CMakeSIS app;
   601 	CMakeSIS app;
   602 	int reply = app.Run(argc, argv1);
   602 	int reply = app.RunL(argc, argv1);
   603 	cleanup(argc,argv1);
   603 	cleanup(argc,argv1);
   604 	return reply;
   604 	return reply;
   605 	}
   605 	}
   606 
   606