Subversion Repositories DevTools

Rev

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

Rev 4814 Rev 6133
Line 17... Line 17...
17
 
17
 
18
package MSWIN64_Build;
18
package MSWIN64_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 MSWIN64 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'     => [ 
-
 
32
                        'VS2012_X64',
-
 
33
                   ],
-
 
34
);
-
 
35
 
-
 
36
#-------------------------------------------------------------------------------
22
#-------------------------------------------------------------------------------
37
# Function        : new_platform
23
# Function        : new_platform
38
#
24
#
39
# Description     : Called when a new platform is being created
25
# Description     : Called when a new platform is being created
40
#                   The function can extend the build information
26
#                   The function can extend the build information
Line 51... Line 37...
51
{
37
{
52
    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
53
    my $pInfo  = shift;
39
    my $pInfo  = shift;
54
 
40
 
55
    #
41
    #
-
 
42
    #   Get the list of targets that have been tagged as MSWIN64
-
 
43
    #   
-
 
44
    my @targets = PlatformConfig::getTargetsByTag('MSWIN64');
-
 
45
    #
56
    #   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
57
    #   current machine.
47
    #   current machine.
58
    #
48
    #
59
    my $entry = $valid_machines{$::GBE_MACHTYPE};
-
 
60
    unless ( $entry )
49
    unless ( @targets )
61
    {
50
    {
62
        Verbose ("MSWIN64 will not build on this machine type: $::GBE_MACHTYPE");
51
        Verbose ("MSWIN64 will not build on this machine type: $::GBE_MACHTYPE");
63
        $pInfo->{NOT_AVAILABLE} = 1;
52
        $pInfo->{NOT_AVAILABLE} = 1;
64
        return;
53
        return;
65
    }
54
    }
66
 
55
 
67
    #
56
    #
68
    #   Instantiate all targets
57
    #   Instantiate all targets
69
    #
58
    #
70
    foreach my $target ( @$entry )
59
    foreach my $target ( @targets )
71
    {
60
    {
72
        MSWIN64_generic(  dclone($pInfo), $target );
61
        MSWIN64_generic(  dclone($pInfo), $target );
73
    }
62
    }
74
 
63
 
75
    #
64
    #