Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
227 dpurdie 1
###############################################################################
2
# Copyright (c) ERG Transit Systems. 1996-2006
3
#
4
# File:         PLATFORM/VS2003.cfg
5
#
6
# Contents:     WIN32 Build support
7
#
8
#               This package is used during the processing of the build.pl file
9
#               Values provided by this package are used to extend the Platform
10
#               information as platforms are being created. This provides a
11
#               powerful set of mechanism to extend the entire JATS toolset
12
#
13
#
14
# Version   Who      Date       Description
15
#           DDP      01-Aug-06  Created
16
###############################################################################
17
 
18
require 5.6.1;
19
use strict;
20
use warnings;
21
 
22
package VS2003_Build;
23
 
24
#-------------------------------------------------------------------------------
25
# Function        : add_platform
26
#
27
# Description     : This function is invoked just before a 'platform' is about
28
#                   to be added to the build system.
29
#
30
#                   This call is allowed to alter or extend the platform build
31
#                   information.
32
#
33
# Inputs          : $pInfo          - Reference to the platform build info hash
34
#
35
# Returns         : Nothing yet
36
#
37
sub add_platform
38
{
39
    my $class = shift;              # Not really a class, but its called like a class
40
    my $pInfo  = shift;
41
 
42
    #   ALSO_USES
43
    #   An array of other platforms that may be 'used' by this platform.
44
    #   The process is not recursive
45
    #   Similar to the --Uses option in BuildPlatforms()
46
    #   Will be subject to product expansion.
47
    #
48
    #   Intended use: VS2003 can use stuff from WIN32, but only if the
49
    #                 VS2003 stuff is not available.
50
    $pInfo->{ALSO_USES} = ['WIN32'];
51
 
52
    #
53
    #   EXT_SHARED
54
    #   Set to the value of the shared library extension
55
    #
56
    #   Intended Use
57
    #   Used to locate shared libraries in packgages for use in the
58
    #   generation set_<PLATFORM>.sh/.bat
59
    #
60
    #   If not set then the set_.sh files will no be created
61
    #
62
    $pInfo->{EXT_SHARED} = '.dll';
63
 
64
    #
65
    #   OS_COMMON
66
    #   Set the name of a directory to be used to package header files to be
67
    #   used on targets that share a common OS
68
    #
69
    #   Note: Should also be a part of EXTRA_USES
70
    #
71
    #   Intended Use
72
    #   Extend the operation of the PackageHdr directive to allow files
73
    #   common files to be packaged
74
    #
75
    $pInfo->{OS_COMMON} = 'WIN32';
76
}
77
 
78
1;
79