Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
# -*- mode: perl; indent-width: 4; -*-
2
##############################################################################
3
# Copyright (c) ERG Transit Systems. 1996-2004
4
#
5
# File:         PLATFORM/wce
6
#
7
# Contents:     Generic WCE (Windows CE) platform definition
8
#
9
# Version   Who      Date       Description
10
#           APY      26/04/04   Created
11
#
12
##############################################################################
13
#
14
 
15
WCEInit();
16
 
17
sub WCEInit
18
{
19
    my( @args ) = @ScmPlatformArgs;             # Platform arguments
20
    my( $CEVersion, $CEPlatform, $CETargetCPU, $CEHostCPU );
21
 
22
#.. Parse arguments
23
#
24
    Debug( "wce(@args)\n" );
25
 
26
    foreach $_ ( @args ) {
27
        if (/^--Version=(.*)/) {                # OS Version
28
            $CEVersion   = "$1";
29
 
30
        } elsif (/^--SDK=(.*)/) {               # SDK
31
            $CEPlatform  = "$1";
32
 
33
        } elsif (/^--Target=(.*)/) {            # CPU
34
            $CETargetCPU = "$1";
35
 
36
        } elsif (/^--Host=(.*)/) {              # HOST CPU
37
            $CEHostCPU   = "$1";
38
        }
39
    }
40
 
41
    Error ("WCE platform must specify --Target")
42
        unless ( $CETargetCPU ne "" );
43
 
44
    Error ("WCE platform must specify emulator --Host")
45
        unless ( $CETargetCPU ne "emulator" || $CEHostCPU ne "" );
46
 
47
    if ($CEVersion eq "")
48
    {
49
        Error ("WCE platform must specify --Version or WCEDefaultVersion")
50
            unless ( defined($WCEDefaultVersion) );
51
 
52
        push( @ScmPlatformArgs, "--Version=$WCEDefaultVersion" );
53
    }
54
 
55
    if ($CEPlatform eq "")
56
    {
57
        Error ("WCE platform must specify --SDK or WCEDefaultPlatform")
58
            unless ( defined($WCEDefaultPlatform) );
59
 
60
        push( @ScmPlatformArgs, "--SDK=$WCEDefaultPlatform" );
61
    }
62
 
63
#.. Toolset
64
#
65
 
66
    Toolset( '*', vcwce );                      # Embedded Visual C
67
}
68
 
69
1;