Subversion Repositories DevTools

Rev

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

Rev 4324 Rev 4382
Line 6829... Line 6829...
6829
    #       RemoveOnly files are not always generated
6829
    #       RemoveOnly files are not always generated
6830
    #
6830
    #
6831
    my $no_add;
6831
    my $no_add;
6832
    foreach ( @args )
6832
    foreach ( @args )
6833
    {
6833
    {
6834
        if ( m/^defined=/ or m/^RemoveOnly=/ )
6834
        if ( m/^defined=/ or m/^RemoveOnly=/ or /NoTarget=/ )
6835
        {
6835
        {
6836
            $no_add = 1;
6836
            $no_add = 1;
6837
            last;
6837
            last;
6838
        }
6838
        }
6839
    }
6839
    }
Line 10233... Line 10233...
10233
#                   Valid keys are:
10233
#                   Valid keys are:
10234
#                       src                 - Path of the source file [Mandatory]
10234
#                       src                 - Path of the source file [Mandatory]
10235
#                       dir                 - Target directory [Mandatory]
10235
#                       dir                 - Target directory [Mandatory]
10236
#
10236
#
10237
#                       defined             - Copy the file only if value is defined
10237
#                       defined             - Copy the file only if value is defined
-
 
10238
#                       Exists              - Copy the file only if it exists
10238
#                       exe                 - Mark the file as executable
10239
#                       exe                 - Mark the file as executable
10239
#                       Mode                - File modes. Default is -w
10240
#                       Mode                - File modes. Default is -w
10240
#                       placekeeper         - Marks SHARED library placekeepers
10241
#                       placekeeper         - Marks SHARED library placekeepers
10241
#                       set                 - Distribution sets
10242
#                       set                 - Distribution sets
10242
#                       type                - Copy the file in DEBUG or PROD mode
10243
#                       type                - Copy the file in DEBUG or PROD mode
10243
#                                             Valid values are "D" or "P"         
10244
#                                             Valid values are "D" or "P"         
10244
#                       version             - Shared library version information
10245
#                       version             - Shared library version information
10245
#                       RemoveOnly          - Do not install the file. Entries are
10246
#                       RemoveOnly          - Do not install the file. Entries are
10246
#                                             created to allow the removal of the file
10247
#                                             created to allow the removal of the file
-
 
10248
#                       NoTarget            - Reserved - Implemented elsewhere
10247
#
10249
#
10248
# Returns         :
10250
# Returns         :
10249
#
10251
#
10250
sub PackageRule
10252
sub PackageRule
10251
{
10253
{
Line 10290... Line 10292...
10290
            MakePrint "$dest:\n";
10292
            MakePrint "$dest:\n";
10291
            MakePrint "else\n"
10293
            MakePrint "else\n"
10292
        }
10294
        }
10293
 
10295
 
10294
        #
10296
        #
-
 
10297
        #   File exists
-
 
10298
        #   Only package the file if it has been generated. ie: .exe.manifest
-
 
10299
        #
-
 
10300
        my $fexist = $entry->{'Exists'};
-
 
10301
        if ($fexist)
-
 
10302
        {
-
 
10303
            MakePrint "ifeq (\"\$(wildcard $fname)\",\"\")\n";
-
 
10304
            MakePrint ".PHONY:\t\t$dest\n";
-
 
10305
            MakePrint "$dest:\n";
-
 
10306
            MakePrint "else\n"
-
 
10307
        }
-
 
10308
 
-
 
10309
        #
10295
        #   Conditional installation for DEBUG/PRODUCTION
10310
        #   Conditional installation for DEBUG/PRODUCTION
10296
        #
10311
        #
10297
        my $type = $entry->{'type'};
10312
        my $type = $entry->{'type'};
10298
        if ( $type )
10313
        if ( $type )
10299
        {
10314
        {
Line 10320... Line 10335...
10320
 
10335
 
10321
        #
10336
        #
10322
        #   Unwind conditionals
10337
        #   Unwind conditionals
10323
        #
10338
        #
10324
        MakePrint "endif\n" if ( $type );
10339
        MakePrint "endif\n" if ( $type );
-
 
10340
        MakePrint "endif\n" if ( $fexist );
10325
        MakePrint "endif\n" if ( $udef );
10341
        MakePrint "endif\n" if ( $udef );
10326
 
10342
 
10327
        #
10343
        #
10328
        #   Distribution sets
10344
        #   Distribution sets
10329
        #
10345
        #