buildframework/helium/external/helium-antlib/imaker/tests/epocroot/imaker_mock.py
changeset 179 d8ac696cc51f
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
       
     1 #============================================================================ 
       
     2 #Name        : imaler_mock.py 
       
     3 #Part of     : Helium 
       
     4 
       
     5 #Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     6 #All rights reserved.
       
     7 #This component and the accompanying materials are made available
       
     8 #under the terms of the License "Eclipse Public License v1.0"
       
     9 #which accompanies this distribution, and is available
       
    10 #at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    11 #
       
    12 #Initial Contributors:
       
    13 #Nokia Corporation - initial contribution.
       
    14 #
       
    15 #Contributors:
       
    16 #
       
    17 #Description:
       
    18 #===============================================================================
       
    19 
       
    20 import sys
       
    21 print "iMaker 09.24.01, 10-Jun-2009."
       
    22 
       
    23 if sys.argv.count("version"):
       
    24     print ""
       
    25     sys.exit(0)
       
    26 
       
    27 if sys.argv.count("help-target-*-list") and sys.argv.count("/epoc32/rom/config/platform/product/image_conf_invalid.mk"):
       
    28     print """mingw_make: /epoc32/rom/config/platform/product/image_conf_invalid.mk: No such file or directory
       
    29 mingw_make: *** No rule to make target `/epoc32/rom/config/platform/product/image_conf_invalid.mk'.  Stop.
       
    30 *** Error: Command `\epoc32\tools\rom\imaker\mingw_make.exe -R --no-print-directory SHELL="C:\WINNT\system32\cmd.exe" -I
       
    31  B:/epoc32/rom/config -f B:/epoc32/tools/rom/imaker/imaker.mk TIMESTAMP=2009102317302243    -f /epoc32/rom/config/platform/
       
    32 product/image_conf_invalid.mk  -f B:/epoc32/tools/rom/imaker/imaker.mk help-target-*-list' failed in `/'.
       
    33 """
       
    34     sys.exit(1)
       
    35 
       
    36 if sys.argv.count("help-config"):
       
    37     print "Finding available configuration file(s):"
       
    38     print "/epoc32/rom/config/platform/product/image_conf_product.mk"
       
    39     print "/epoc32/rom/config/platform/product/image_conf_product_ui.mk"
       
    40     print ""
       
    41     sys.exit(0)
       
    42 
       
    43 if sys.argv.count("help-target-*-list"):
       
    44     # start with some kind of warnings...
       
    45     print "B:/epoc32/tools/rom/imaker/imaker_help.mk:55: memory_map_settings2.hrh: No such file or directory"
       
    46     print "all"
       
    47     print "core"
       
    48     print "core-dir"
       
    49     print "help-%-list"
       
    50     print "langpack_01"
       
    51     print ""
       
    52     sys.exit(0)
       
    53 
       
    54 if sys.argv.count("-f") and sys.argv.count("print-VARIABLE"):
       
    55     print "VARIABLE = `PRODUCT_VALUE'"
       
    56     print ""
       
    57     sys.exit(0)
       
    58 
       
    59 if sys.argv.count("print-VARIABLE"):
       
    60     print "VARIABLE = `VALUE'"
       
    61     print ""
       
    62     sys.exit(0)
       
    63 
       
    64 if sys.argv.count("print-NOTEXISTSVARIABLE"):
       
    65     print ""
       
    66     sys.exit(0)
       
    67 
       
    68 print ""
       
    69 sys.exit(0)