Subversion Repositories DevTools

Rev

Rev 4309 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4309 Rev 6133
Line 17... Line 17...
17
 
17
 
18
package MSWIN32_Build;
18
package MSWIN32_Build;
19
use JatsError;
19
use JatsError;
20
use Storable qw(dclone);
20
use Storable qw(dclone);
21
 
21
 
22
#
-
 
23
#   Create a hash of GBE_MACHTYPEs for which the MSWIN32 platform is available
-
 
24
#   It won't just build on any old machine
-
 
25
#
-
 
26
#   Hash values are an array of:
-
 
27
#           Operating System
-
 
28
#           architecture
-
 
29
#
-
 
30
my %valid_machines = (
-
 
31
    'win32'     => [ 'WIN32',
-
 
32
                     'VS2005',
-
 
33
                     'VS2012',
-
 
34
                     ],
-
 
35
);
-
 
36
 
-
 
37
#-------------------------------------------------------------------------------
22
#-------------------------------------------------------------------------------
38
# Function        : new_platform
23
# Function        : new_platform
39
#
24
#
40
# Description     : Called when a new platform is being created
25
# Description     : Called when a new platform is being created
41
#                   The function can extend the build information
26
#                   The function can extend the build information
Line 52... Line 37...
52
{
37
{
53
    my $class = shift;              # Not really a class, but its called like a class
38
    my $class = shift;              # Not really a class, but its called like a class
54
    my $pInfo  = shift;
39
    my $pInfo  = shift;
55
 
40
 
56
    #
41
    #
-
 
42
    #   Get the list of targets that have been tagged as MSWIN32
-
 
43
    #   
-
 
44
    my @targets = PlatformConfig::getTargetsByTag('MSWIN32');
-
 
45
    #
57
    #   Ignore this platform if there is no way that it can be built on the
46
    #   Ignore this platform if there is no way that it can be built on the
58
    #   current machine.
47
    #   current machine.
59
    #
48
    #
60
    my $entry = $valid_machines{$::GBE_MACHTYPE};
-
 
61
    unless ( $entry )
49
    unless ( @targets )
62
    {
50
    {
63
        Verbose ("MSWIN32 will not build on this machine type: $::GBE_MACHTYPE");
51
        Verbose ("MSWIN32 will not build on this machine type: $::GBE_MACHTYPE");
64
        $pInfo->{NOT_AVAILABLE} = 1;
52
        $pInfo->{NOT_AVAILABLE} = 1;
65
        return;
53
        return;
66
    }
54
    }
67
 
55
 
68
    #
56
    #
69
    #   Instantiate all targets
57
    #   Instantiate all targets
70
    #
58
    #
71
    foreach my $target ( @$entry )
59
    foreach my $target ( @targets )
72
    {
60
    {
73
        MSWIN32_generic(  dclone($pInfo), $target );
61
        MSWIN32_generic(  dclone($pInfo), $target );
74
    }
62
    }
75
 
63
 
76
    #
64
    #