Subversion Repositories DevTools

Rev

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

Rev 4902 Rev 4928
Line 1042... Line 1042...
1042
#
1042
#
1043
 
1043
 
1044
sub SetGlobalOption
1044
sub SetGlobalOption
1045
{
1045
{
1046
    my ($name, $value) = @_;
1046
    my ($name, $value) = @_;
1047
    Debug0( "SetGlobalOption.", $name, $value );
1047
    Debug( "SetGlobalOption.", $name, $value );
1048
    $ScmGlobalOptions{$name} = $value;
1048
    $ScmGlobalOptions{$name} = $value;
1049
}
1049
}
1050
 
1050
 
1051
#-------------------------------------------------------------------------------
1051
#-------------------------------------------------------------------------------
1052
# Function        : GetGlobalOption   
1052
# Function        : GetGlobalOption   
Line 1065... Line 1065...
1065
    my ($name, $default) = @_;
1065
    my ($name, $default) = @_;
1066
    if (exists $ScmGlobalOptions{$name})
1066
    if (exists $ScmGlobalOptions{$name})
1067
    {
1067
    {
1068
        $default = $ScmGlobalOptions{$name};
1068
        $default = $ScmGlobalOptions{$name};
1069
    }
1069
    }
1070
    Debug0( "GetGlobalOption .", $name, $default  );
1070
    Debug( "GetGlobalOption .", $name, $default  );
1071
    return $default;
1071
    return $default;
1072
}
1072
}
1073
 
1073
 
1074
 
1074
 
1075
#-------------------------------------------------------------------------------
1075
#-------------------------------------------------------------------------------
Line 1340... Line 1340...
1340
                                     'FORCE_C_COMPILE'     => undef },
1340
                                     'FORCE_C_COMPILE'     => undef },
1341
        'compile_as_c'          => { 'FORCE_C_COMPILE'     => '1',
1341
        'compile_as_c'          => { 'FORCE_C_COMPILE'     => '1',
1342
                                     'FORCE_CC_COMPILE'    => undef },
1342
                                     'FORCE_CC_COMPILE'    => undef },
1343
 
1343
 
1344
        'no_define_source_file' => { 'DISABLE__SOURCE__' => '1' },
1344
        'no_define_source_file' => { 'DISABLE__SOURCE__' => '1' },
1345
        'define_source_file'    => { 'DISABLE__SOURCE__' => undef },    # Default
1345
        'define_source_file'    => { 'DISABLE__SOURCE__' => undef },        # Default
-
 
1346
 
-
 
1347
        'warnings_as_errors'    => { 'WARNINGS_AS_ERRORS'        => '1' },
-
 
1348
        'no_warnings_as_errors' => { 'WARNINGS_AS_ERRORS'        => undef },       # Default
1346
 
1349
 
1347
    );
1350
    );
1348
 
1351
 
1349
#
1352
#
1350
#   The toolset can extend the options by setting the following hash
1353
#   The toolset can extend the options by setting the following hash