toolsandutils/productionbldtools/KitStandardLocations.pm
changeset 0 83f4b4db085c
child 10 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 #!perl
       
     2 
       
     3 # Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 # All rights reserved.
       
     5 # This component and the accompanying materials are made available
       
     6 # under the terms of "Eclipse Public License v1.0"
       
     7 # which accompanies this distribution, and is available
       
     8 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 #
       
    10 # Initial Contributors:
       
    11 # Nokia Corporation - initial contribution.
       
    12 #
       
    13 # Contributors:
       
    14 #
       
    15 # Description:
       
    16 #
       
    17 
       
    18 package KitStandardLocations;
       
    19 require Exporter;
       
    20 @ISA = qw(Exporter);
       
    21 @EXPORT = qw($SourceDir $BuildDir $OutputDir $Platform $ToolsDir $LogsDir $ZipDir $PublishLocation $ProductPath $BuildBaseName $ProductDir $CustKitDir $DevKitDir $SuppKitDir $SrcDefDir $PkgDefDir $CustKitPath $DevKitPath $SuppKitPath $pkgDefDevKitDir $pkgDefCustKitDir $outputDevKitDir $outputCustKitDir);
       
    22 
       
    23 
       
    24 # Standard locations from environment variables
       
    25 $SourceDir       = $ENV{'CleanSourceDir'};      # path to clean source 
       
    26 $BuildDir        = $ENV{'BuildDir'};            # path to build directory ([substed drive]\)
       
    27 $OutputDir       = $ENV{'OutputDir'};           # path to where the binaries are put ([substed drive]\bin\platform)
       
    28 $Platform        = $ENV{'Platform'};            # beech, cedar etc. 
       
    29 $ToolsDir        = $ENV{'ToolsDir'};            # path to main tools (IPR tool)
       
    30 $LogsDir         = $ENV{'LogsDir'};             # path to main build logs direrctory 
       
    31 $ZipDir          = $ENV{'ZipDir'};              # path to ZIPs directory (for lockit)
       
    32 $PublishLocation = $ENV{'PublishLocation'};     # path to DevBuilds publish location
       
    33 $ProductPath     = $ENV{'ProductPath'};         # path to output directory for Kits	
       
    34 $BuildBaseName   = $ENV{'BuildBaseName'};       # name of the build (e.g. "Symbian_OS_v8.0a")    
       
    35 
       
    36 
       
    37 # Kit-specific locations
       
    38 $ProductDir   = "Product";
       
    39 $CustKitDir   = "CustKit";
       
    40 $DevKitDir    = "DevKit";
       
    41 $SuppKitDir   = "SuppKit";
       
    42 $SrcDefDir    = "SourceDefinitions";
       
    43 $PkgDefDir    = "PackageDefinitions";
       
    44 $CustKitPath  = "$ProductPath\\$CustKitDir";
       
    45 $DevKitPath   = "$ProductPath\\$DevKitDir";
       
    46 $SuppKitPath  = "$ProductPath\\$SuppKitDir";
       
    47 $pkgDefDevKitDir  = "$DevKitPath\\$PkgDefDir";
       
    48 $pkgDefCustKitDir = "$CustKitPath\\$PkgDefDir";
       
    49 $outputDevKitDir  = "$ProductPath\\_PACKAGES\\DevKit_CD";
       
    50 $outputCustKitDir = "$ProductPath\\_PACKAGES\\CustKit_Extra_CD";
       
    51 
       
    52 
       
    53 
       
    54 # set environment variables for non source rebaseline batch files
       
    55 $ENV{'ProductDir'} = $ProductDir ;
       
    56 
       
    57 
       
    58