Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
263 dpurdie 1
###############################################################################
7300 dpurdie 2
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
263 dpurdie 3
#
4
# File:         PLATFORM/PHARLAP.cfg
5
#
6
# Contents:     PHARLAP 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
 
15
use strict;
16
use warnings;
17
 
18
package PHARLAP_Build;
19
 
20
#-------------------------------------------------------------------------------
21
# Function        : add_platform
22
#
23
# Description     : This function is invoked just before a 'platform' is about
24
#                   to be added to the build system.
25
#
26
#                   This call is allowed to alter or extend the platform build
27
#                   information.
28
#
29
# Inputs          : $pInfo          - Reference to the platform build info hash
30
#
31
# Returns         : Nothing yet
32
#
33
sub add_platform
34
{
35
    my $class = shift;              # Not really a class, but its called like a class
36
    my $pInfo  = shift;
37
 
38
    #   ALSO_USES
39
    #   An array of other platforms that may be 'used' by this platform.
40
    #   The process is not recursive
41
    #   Similar to the --Uses option in BuildPlatforms()
42
    #   Will be subject to product expansion.
43
    #
44
    #   Intended use: PHARLAP can use stuff from WIN32, but only if the
45
    #                 PHARLAP stuff is not available.
46
    $pInfo->{ALSO_USES} = ['WIN32'];
47
 
48
    #
49
    #   OS_COMMON
50
    #   Set the name of a directory to be used to package header files to be
51
    #   used on targets that share a common OS
52
    #
53
    #   Note: Should also be a part of EXTRA_USES
54
    #
55
    #   Intended Use
56
    #   Extend the operation of the PackageHdr directive to allow files
57
    #   common files to be packaged
58
    #
59
    $pInfo->{OS_COMMON} = 'WIN32';
60
 
61
}
62
 
63
1;
64