navienginebsp/tools/testreference/lauterbach/sourcepaths.cmm
changeset 0 5de814552237
equal deleted inserted replaced
-1:000000000000 0:5de814552237
       
     1 //
       
     2 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:  
       
    15 //
       
    16 //////////////////////////////////////////////////////////////////////////////
       
    17 //
       
    18 // This script configures the paths that are searched for source code to be a
       
    19 // list of user specified paths plus a path that is computed as being the root
       
    20 // of the environment, ie. The path at which the "os" directory resides.
       
    21 //
       
    22 //////////////////////////////////////////////////////////////////////////////
       
    23 
       
    24 GLOBAL &driveletter
       
    25 GLOBAL &sospath
       
    26 
       
    27 &driveletter=string.mid(os.file.path(&_SYMBOLICS_FILENAME),0.,2.)
       
    28 &sospath=""
       
    29 
       
    30 if os.file("&driveletter\os\kernelhwsrv\kernel\eka\release.txt")
       
    31 	(
       
    32 	&sospath=""
       
    33 	)
       
    34 else if os.file("&driveletter\sf\os\kernelhwsrv\kernel\eka\release.txt")
       
    35 	(
       
    36 	&sospath="\sf"
       
    37 	)
       
    38 else
       
    39 	(
       
    40 	&sospath=""
       
    41 	)
       
    42 print "Base path for SymbianOS source code is &driveletter&sospath\os"
       
    43 
       
    44 if os.file("&PlatformsDir\&Platform\customsourcepaths.cmm")
       
    45 	(
       
    46 	print "Loading custom source paths"
       
    47 	do &PlatformsDir\&Platform\customsourcepaths.cmm
       
    48 	)
       
    49 else
       
    50 	(
       
    51 	if os.file("&PlatformsDir\&Platform\defaultsourcepaths.cmm")
       
    52 		(
       
    53 		print "Loading default source paths for this platform"
       
    54 		do &PlatformsDir\&Platform\defaultsourcepaths.cmm
       
    55 		)
       
    56 	else
       
    57 		(
       
    58 		print "No source paths defined for this platform, using some generic ones"
       
    59 
       
    60 		; extract the drive letter and add it to the symbol path
       
    61 		&driveletter=string.mid(os.file.path(&_SYMBOLICS_FILENAME),0.,2.)
       
    62 
       
    63 		SYMBOL.SPATH.RESET
       
    64 		SYMBOL.SPATH.SETRECURSEDIR "&driveletter&sospath\os\kernelhwsrv\kernel\eka\drivers"
       
    65 		if "&NumberOfCpus">"1"
       
    66 			(
       
    67 			print "More than one CPU, so using NKernSMP, not NKern"
       
    68 			SYMBOL.SPATH.SETRECURSEDIR "&driveletter&sospath\os\kernelhwsrv\kernel\eka\nkernsmp"
       
    69 			SYMBOL.SPATH.SET           "&driveletter\epoc32\release\armv5smp\UDEB"
       
    70 			)
       
    71 		else
       
    72 			(
       
    73 			print "Only one CPU, so using NKern, not NKernSMP"
       
    74 			SYMBOL.SPATH.SETRECURSEDIR "&driveletter&sospath\os\kernelhwsrv\kernel\eka\nkern"
       
    75 			)
       
    76 
       
    77 		SYMBOL.SPATH.SETRECURSEDIR "&driveletter&sospath\os\kernelhwsrv\kernel\eka\kernel"
       
    78 		SYMBOL.SPATH.SET           "&driveletter\epoc32\release\armv5\UDEB"
       
    79 		)
       
    80 	)
       
    81 
       
    82 enddo