Subversion Repositories DevTools

Rev

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

Rev 5848 Rev 5867
Line 2464... Line 2464...
2464
 
2464
 
2465
        $SRC_TYPE{ $basename } = $type
2465
        $SRC_TYPE{ $basename } = $type
2466
            if ($type);
2466
            if ($type);
2467
 
2467
 
2468
        #
2468
        #
2469
        #   Add the file to any source file lists that it may like to know
2469
        #   Add the file to any source file lists that may like to know
2470
        #   about this file.
2470
        #   about this file.
2471
        #
2471
        #
2472
        #   If the file was a known source file, then it may need to be generated
2472
        #   If the file was a known source file, then it may need to be generated
2473
        #   very early in the build process.
2473
        #   very early in the build process.
2474
        #
2474
        #
Line 3101... Line 3101...
3101
                #   Flag the file as a generated file
3101
                #   Flag the file as a generated file
3102
                #
3102
                #
3103
                push @genreq_seen, $cmd;
3103
                push @genreq_seen, $cmd;
3104
                if ( UniquePush (\@gen_files, $fn) )
3104
                if ( UniquePush (\@gen_files, $fn) )
3105
                {
3105
                {
3106
                    if ( GenerateSrcFile ( $gtype, $fn  ) && $gtype == 2 )
3106
                    if ($gtype == 2)
3107
                    {
3107
                    {
-
 
3108
                        if ($SRCS{ StripDir( $fn ) })
-
 
3109
                        {
-
 
3110
                            abtWarning(1,"GenerateFiles. Generated File also a Src file: $fn");
-
 
3111
                        }
-
 
3112
                        elsif ( GenerateSrcFile ( $gtype, $fn  ) )
-
 
3113
                        {
3108
                        push @has_source, $fn;
3114
                            push @has_source, $fn;
-
 
3115
                        }
3109
                    }
3116
                    }
3110
                }
3117
                }
3111
 
3118
 
3112
                #
3119
                #
3113
                #   Use the directory or the full name
3120
                #   Use the directory or the full name
Line 3196... Line 3203...
3196
        push @tool_args, $arg;
3203
        push @tool_args, $arg;
3197
    }
3204
    }
3198
 
3205
 
3199
 
3206
 
3200
    #
3207
    #
3201
    #   Sanity test. Ensure that some file have been marged as generated
3208
    #   Sanity test. Ensure that some file have been marked as generated
3202
    #                Warn if no prerequisites found
3209
    #                Warn if no prerequisites found
3203
    #
3210
    #
3204
    Warning( "GenerateFiles. --AutoGenerate option has no effect",
3211
    Warning( "GenerateFiles. --AutoGenerate option has no effect",
3205
             "The following files are 'source' files",  @has_source ) if ( @has_source );
3212
             "The following files are 'source' files",  @has_source ) if ( @has_source );
3206
    Warning( "No Prerequisite files found in $tool",@tool_args) unless ( $no_warn || $#preq_files >= 0 );
3213
    Warning( "No Prerequisite files found in $tool",@tool_args) unless ( $no_warn || $#preq_files >= 0 );