Subversion Repositories DevTools

Rev

Rev 4781 | Rev 4928 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4781 Rev 4902
Line 123... Line 123...
123
                                                # 0: Don't write progdeps. Prog is Phony
123
                                                # 0: Don't write progdeps. Prog is Phony
124
our $ScmToolsetSingleType   = 0;                # Toolset does not support Debug and Production
124
our $ScmToolsetSingleType   = 0;                # Toolset does not support Debug and Production
125
our $ScmToolsetProgSource   = ();               # Toolset Program Source
125
our $ScmToolsetProgSource   = ();               # Toolset Program Source
126
our $ScmToolsetSoName       = 0;                # 1: Shared library supports SoName
126
our $ScmToolsetSoName       = 0;                # 1: Shared library supports SoName
127
our $ScmToolsetNillLibSrc   = 0;                # 1: Librarys created without source specified
127
our $ScmToolsetNillLibSrc   = 0;                # 1: Librarys created without source specified
-
 
128
my  %ScmGlobalOptions       = ();               # Hash of Global(platform) options. Access via functions
128
 
129
 
129
our $ScmRoot                = "";
130
our $ScmRoot                = "";
130
our $ScmMakelib             = "";
131
our $ScmMakelib             = "";
131
our $ScmPlatform            = "";
132
our $ScmPlatform            = "";
132
our $ScmMachType            = "";
133
our $ScmMachType            = "";
Line 1025... Line 1026...
1025
    push( @ScmDepends, "$script" );             # makefile dependencies
1026
    push( @ScmDepends, "$script" );             # makefile dependencies
1026
    close( $fh );
1027
    close( $fh );
1027
}
1028
}
1028
 
1029
 
1029
#-------------------------------------------------------------------------------
1030
#-------------------------------------------------------------------------------
-
 
1031
# Function        : SetGlobalOption  
-
 
1032
#
-
 
1033
# Description     : Set a global toolset option
-
 
1034
#                   The global options are intended to allow platform-specific
-
 
1035
#                   operation of various tools and utilities. The scope is wider than 
-
 
1036
#                   just the underlying tooolset 
-
 
1037
#
-
 
1038
# Inputs          : $name           - Name of the option
-
 
1039
#                   $value          - Value to save            
-
 
1040
#
-
 
1041
# Returns         : Nothing
-
 
1042
#
-
 
1043
 
-
 
1044
sub SetGlobalOption
-
 
1045
{
-
 
1046
    my ($name, $value) = @_;
-
 
1047
    Debug0( "SetGlobalOption.", $name, $value );
-
 
1048
    $ScmGlobalOptions{$name} = $value;
-
 
1049
}
-
 
1050
 
-
 
1051
#-------------------------------------------------------------------------------
-
 
1052
# Function        : GetGlobalOption   
-
 
1053
#
-
 
1054
# Description     : Get a global toolset option
-
 
1055
#
-
 
1056
# Inputs          : $name           - Name of the option to fetch
-
 
1057
#                   $default        - Default value to return, if the option
-
 
1058
#                                     is not present.
-
 
1059
#
-
 
1060
# Returns         : The value of the option, or the default value
-
 
1061
#
-
 
1062
 
-
 
1063
sub GetGlobalOption 
-
 
1064
{
-
 
1065
    my ($name, $default) = @_;
-
 
1066
    if (exists $ScmGlobalOptions{$name})
-
 
1067
    {
-
 
1068
        $default = $ScmGlobalOptions{$name};
-
 
1069
    }
-
 
1070
    Debug0( "GetGlobalOption .", $name, $default  );
-
 
1071
    return $default;
-
 
1072
}
-
 
1073
 
-
 
1074
 
-
 
1075
#-------------------------------------------------------------------------------
1030
# Function        : ToolsetAddUnitTestPreProcess
1076
# Function        : ToolsetAddUnitTestPreProcess
1031
#                   ToolsetAddUnitTestPostProcess
1077
#                   ToolsetAddUnitTestPostProcess
1032
#                   ToolsetAddUnitTestCollateProcess
1078
#                   ToolsetAddUnitTestCollateProcess
1033
#
1079
#
1034
# Description     : Functions to allow toolsets to add recipes to be run before
1080
# Description     : Functions to allow toolsets to add recipes to be run before