Subversion Repositories DevTools

Rev

Rev 5709 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
###############################################################################
6177 dpurdie 2
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
227 dpurdie 3
#
4
# File:         PLATFORM/LINUX_ETX.CFG
5
#
6
# Contents:     LINUX_ETX 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
 
16
use strict;
17
use warnings;
18
 
19
package LINUX_ETX_Build;
20
 
21
#-------------------------------------------------------------------------------
22
# Function        : add_platform
23
#
24
# Description     : This function is invoked just before a 'platform' is about
25
#                   to be added to the build system.
26
#
27
#                   This call is allowed to alter or extend the platform build
28
#                   information.
29
#
30
# Inputs          : $pInfo          - Reference to the platform build info hash
31
#
32
# Returns         : Nothing yet
33
#
34
sub add_platform
35
{
36
    my $class = shift;              # Not really a class, but its called like a class
37
    my $pInfo  = shift;
38
    #
39
    #   Insert data into the class
40
    #
41
    #   ALSO_USES
42
    #   An array of other platforms that may be 'used' by this platform.
43
    #   The process is not recursive
44
    #   Similar to the --Uses option in BuildPlatforms()
45
    #   Will be subject to product expansion.
46
    #
47
    #   Intended use: VS2003 can use stuff from WIN32, but only if the
48
    #                 VS2003 stuff is not available.
49
    $pInfo->{ALSO_USES} = [];
50
 
51
    #
52
    #   EXTRA_USES
53
    #   An array of other platforms to be 'used' by this platform.
54
    #   This list is not expanded in a PRODUCT as the USERS list is.
55
    #
56
    #   Intended use: Extend the SOLARIS on a sparc platform to allow for bad usage.
57
    #                 ie: Stuff is in SOLARIS, SOLARIS_sparc and sparc
58
    #
59
    $pInfo->{EXTRA_USES} = ['LINUX' ];
60
 
61
    #
62
    #   EXT_SHARED
63
    #   Set to the value of the shared library extension
64
    #
65
    #   Intended Use
66
    #   Used to locate shared libraries in packgages for use in the
67
    #   generation set_<PLATFORM>.sh/.bat
68
    #
69
    #   If not set then the set_.sh files will no be created
70
    #
71
    $pInfo->{EXT_SHARED} = '.so';
72
 
73
    #
74
    #   OS_COMMON
75
    #   Set the name of a directory to be used to package header files to be
76
    #   used on targets that share a common OS
77
    #
78
    #   Note: Should also be a part of EXTRA_USES
79
    #
80
    #   Intended Use
81
    #   Extend the operation of the PackageHdr directive to allow files
82
    #   common files to be packaged
83
    #
84
    $pInfo->{OS_COMMON} = 'LINUX';
85
 
86
}
87
 
88
1;
89