Subversion Repositories DevTools

Rev

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

Rev 341 Rev 343
Line 66... Line 66...
66
our @BUILDSUBDIRS           = ();               # BuildSubDir()
66
our @BUILDSUBDIRS           = ();               # BuildSubDir()
67
our @BUILDSETENV            = ();               # BuildSetenv()
67
our @BUILDSETENV            = ();               # BuildSetenv()
68
our $BUILDINTERFACE         = "";               # BuildInterface()
68
our $BUILDINTERFACE         = "";               # BuildInterface()
69
our $BUILDLOCAL             = "";               # BuildInterface()
69
our $BUILDLOCAL             = "";               # BuildInterface()
70
our $BUILDDIRTREE           = "";               # BuildDirTree()
70
our $BUILDDIRTREE           = "";               # BuildDirTree()
71
our $BUILDLPA_CLEAN_DONE    = 0;                # LinkPkgArchive initialisation done
-
 
72
our @BUILD_BADNAME          = ();               # Unknown platforms
71
our @BUILD_BADNAME          = ();               # Unknown platforms
73
 
72
 
74
our $BUILDNAME              = "";               # BuildName()
73
our $BUILDNAME              = "";               # BuildName()
75
our $BUILDVERSION           = "";               # BuildName()
74
our $BUILDVERSION           = "";               # BuildName()
76
our $BUILDNAME_PACKAGE;                         # Name
75
our $BUILDNAME_PACKAGE;                         # Name
Line 1447... Line 1446...
1447
 
1446
 
1448
 
1447
 
1449
sub LinkSandbox
1448
sub LinkSandbox
1450
{
1449
{
1451
    my( $name, $path, $platform ) = @_;
1450
    my( $name, $path, $platform ) = @_;
1452
 
-
 
1453
    LinkClean();                                # clean previous images
-
 
1454
 
-
 
1455
    return if ( $Clobber );                     # clobber mode ?
1451
    return if ( $Clobber );                     # clobber mode ?
1456
 
1452
 
1457
    Error ("LinkSandbox() expects three arguments:  @_")
1453
    Error ("LinkSandbox() expects three arguments:  @_")
1458
        unless ( $#_ == 2 );
1454
        unless ( $#_ == 2 );
1459
 
1455
 
Line 1515... Line 1511...
1515
{
1511
{
1516
    my( $name, $version ) = @_;
1512
    my( $name, $version ) = @_;
1517
 
1513
 
1518
    return BuildPkgArchive( @_ )
1514
    return BuildPkgArchive( @_ )
1519
        if ( $ForceBuildPkg );                  # Forcing interface directory
1515
        if ( $ForceBuildPkg );                  # Forcing interface directory
1520
 
-
 
1521
    LinkClean();                                # clean previous images
-
 
1522
 
-
 
1523
    return if ( $Clobber );                     # clobber mode ?
1516
    return if ( $Clobber );                     # clobber mode ?
1524
 
1517
 
1525
    Debug( "LinkPkgArchive:" );
1518
    Debug( "LinkPkgArchive:" );
1526
    Debug( "Name:      $name" );
1519
    Debug( "Name:      $name" );
1527
    Debug( "Version:   $version" );
1520
    Debug( "Version:   $version" );
Line 1561... Line 1554...
1561
    }
1554
    }
1562
}
1555
}
1563
 
1556
 
1564
sub LinkClean
1557
sub LinkClean
1565
{
1558
{
1566
    if ( $BUILDINTERFACE && ! $BUILDLPA_CLEAN_DONE )
1559
    if ( $BUILDINTERFACE )
1567
    {                                           # only once
1560
    {                                           # only once
1568
        Debug( "LinkClean" );
1561
        Debug( "LinkClean" );
1569
 
1562
 
1570
        foreach my $platform ( @BUILDPLATFORMS )
1563
        foreach my $platform ( @BUILDPLATFORMS )
1571
        {                                       # remove generated images
1564
        {                                       # remove generated images
1572
            rmtree( "$BUILDINTERFACE/$platform.rul" );
1565
            rmtree( "$BUILDINTERFACE/$platform.rul" );
1573
        }
1566
        }
1574
 
-
 
1575
        $BUILDLPA_CLEAN_DONE = 1;
-
 
1576
    }
1567
    }
1577
}
1568
}
1578
 
1569
 
1579
 
1570
 
1580
#-------------------------------------------------------------------------------
1571
#-------------------------------------------------------------------------------
Line 3000... Line 2991...
3000
            JatsTool ( 'jmake.pl', 'unmakefiles');
2991
            JatsTool ( 'jmake.pl', 'unmakefiles');
3001
            unlink "Makefile.gbe";
2992
            unlink "Makefile.gbe";
3002
        }
2993
        }
3003
 
2994
 
3004
        DeleteCfg();
2995
        DeleteCfg();
-
 
2996
        LinkClean();
3005
 
2997
 
3006
        #
2998
        #
3007
        #   JATS creates a 'pkg' directory for the target package
2999
        #   JATS creates a 'pkg' directory for the target package
3008
        #
3000
        #
3009
        push @CLOBBERDIRS, "pkg";
3001
        push @CLOBBERDIRS, "pkg";
Line 3047... Line 3039...
3047
 
3039
 
3048
    #.. Build support files
3040
    #.. Build support files
3049
    #
3041
    #
3050
    DeleteCfg();
3042
    DeleteCfg();
3051
    BuildConfig();
3043
    BuildConfig();
-
 
3044
    LinkClean();                                # clean previous images
3052
    BuildRuleFiles();
3045
    BuildRuleFiles();
3053
    BuildSharedLibFiles();
3046
    BuildSharedLibFiles();
3054
    LinkClean();                                # clean previous images
-
 
3055
    WriteParsedBuildConfig();
3047
    WriteParsedBuildConfig();
3056
    BuildPackageLink();
3048
    BuildPackageLink();
3057
    BuildSandboxData();
3049
    BuildSandboxData();
3058
 
3050
 
3059
    #
3051
    #