Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
317 dpurdie 1
###############################################################################
6177 dpurdie 2
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
317 dpurdie 3
#
4
# File:         PLATFORM/SOLARIS8_SPARC32.cfg
5
#
6
# Contents:     SOLARIS 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 SOLARIS8_SPARC32_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
#                   This particular function, in the SOLARIS.CFG file, is called
31
#                   when the target platform 'SOLARIS'. The SOLARIS target is
32
#                   a complex as it serves two purposes.
33
#
34
#                   1 )SOLARIS is a dynamic platform. It will be chnaged
35
#                      into a machine specific platform.
36
#
37
#                   2) One of the 'dynamic' platforms is itself SOLARIS
38
#                      This name exists for compatability purposes as it is
6276 dpurdie 39
#                      really a SOLARIS8_SPARC32, but the name and a stack
317 dpurdie 40
#                      of kludges must be retained.
41
#
42
# Inputs          : $pInfo          - Reference to the platform build info hash
43
#
44
# Returns         : Nothing yet
45
#
46
sub add_platform
47
{
48
    my $class = shift;              # Not really a class, but its called like a class
49
    my $pInfo  = shift;
50
 
51
    #
52
    #   Insert data into the class
53
    #
54
 
55
    #
6276 dpurdie 56
    #   Provide alternate alias names for this platform.
317 dpurdie 57
    #
6276 dpurdie 58
    $pInfo->{ALIAS} = ['SOLARIS_SPARC', 'SOLARIS'];
317 dpurdie 59
 
60
    #
61
    #   ALSO_USES
62
    #   An array of other platforms that may be 'used' by this platform.
63
    #   The process is not recursive
64
    #   Similar to the --Uses option in BuildPlatforms()
65
    #   Will be subject to product expansion.
66
    #
67
    #   Intended use: VS2003 can use stuff from WIN32, but only if the
68
    #                 VS2003 stuff is not available.
69
#    $pInfo->{ALSO_USES} = [];
70
 
71
    #
72
    #   EXTRA_USES
73
    #   An array of other platforms to be 'used' by this platform.
74
    #   This list is not expanded in a PRODUCT as the USERS list is.
75
    #
76
    #   Intended use: Extend the SOLARIS on a sparc platform to allow for bad usage.
77
    #                 ie: Stuff is in SOLARIS, SOLARIS_sparc and sparc
78
    #
79
    $pInfo->{EXTRA_USES} = ['SOLARIS', 'SOLARIS_sparc', 'sparc'];
80
 
81
    #
82
    #   SCMMACHTYPE
83
    #   Override for ScmMachType which appears in makefiles as GBE_MACHTYPE
84
    #   Default value is $ScmPlatform
85
    #
86
    #   Intended use: Legacy Support only
87
    #   Many legacy package.pl files use GBE_MACHTYPE to specify bin and lib
88
    #   subdirectores.
89
    #       The legacy SOLARIS on sparc sets this to 'sparc'
90
    #       For some reason WIN32 sets this to 'win32'
91
    #
92
    $pInfo->{SCMMACHTYPE} = 'sparc';
93
 
94
    #
95
    #   EXT_SHARED
96
    #   Set to the value of the shared library extension
97
    #
98
    #   Intended Use
99
    #   Used to locate shared libraries in packgages for use in the
100
    #   generation set_<PLATFORM>.sh/.bat
101
    #
102
    #   If not set then the set_.sh files will no be created
103
    #
104
    $pInfo->{EXT_SHARED} = '.so';
105
 
106
    #
107
    #   OS_COMMON
108
    #   Set the name of a directory to be used to package header files to be
109
    #   used on targets that share a common OS
110
    #
111
    #   Note: Should also be a part of EXTRA_USES
112
    #
113
    #   Intended Use
114
    #   Extend the operation of the PackageHdr directive to allow files
115
    #   common files to be packaged
116
    #
117
    $pInfo->{OS_COMMON} = 'SOLARIS';
118
}
119
 
120
1;
121