Subversion Repositories DevTools

Rev

Rev 5709 | Rev 7300 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
317 dpurdie 1
###############################################################################
5709 dpurdie 2
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
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 SOLARIS8_SPARC32.CFG file,
31
#                   is called when the target platform 'SOLARIS8_SPARC32'.
32
#
33
# Inputs          : $pInfo          - Reference to the platform build info hash
34
#
35
# Returns         : Nothing yet
36
#
37
sub new_platform
38
{
39
    my $class = shift;              # Not really a class, but its called like a class
40
    my $pInfo  = shift;
41
    #
42
    #   Insert data into the class
43
    #
44
 
45
    #
46
    #   Legacy target. Really solaris8_sparc32, but it has been configured
47
    #   as SOLARIS. This, unfortunately, must continue.
48
    #
49
    $pInfo->{TARGET} = 'SOLARIS';
50
 
51
    #
52
    #   Specify the Platform config file that should be used for the
53
    #   remainder of the configuration information.
54
    #
55
    $pInfo->{TARGET_CFG} = 'SOLARIS8_SPARC32';
56
}
57
 
58
#-------------------------------------------------------------------------------
59
# Function        : add_platform
60
#
61
# Description     : This function is invoked just before a 'platform' is about
62
#                   to be added to the build system.
63
#
64
#                   This call is allowed to alter or extend the platform build
65
#                   information.
66
#
67
#                   This particular function, in the SOLARIS.CFG file, is called
68
#                   when the target platform 'SOLARIS'. The SOLARIS target is
69
#                   a complex as it serves two purposes.
70
#
71
#                   1 )SOLARIS is a dynamic platform. It will be chnaged
72
#                      into a machine specific platform.
73
#
74
#                   2) One of the 'dynamic' platforms is itself SOLARIS
75
#                      This name exists for compatability purposes as it is
76
#                      really a SOLARIS8_sparc32, but the name and a stack
77
#                      of kludges must be retained.
78
#
79
# Inputs          : $pInfo          - Reference to the platform build info hash
80
#
81
# Returns         : Nothing yet
82
#
83
sub add_platform
84
{
85
    my $class = shift;              # Not really a class, but its called like a class
86
    my $pInfo  = shift;
87
 
88
    #
89
    #   Insert data into the class
90
    #
91
 
92
    #
93
    #   Provide an alais for the name that we would really like to call
94
    #   this platform.
95
    #
96
    $pInfo->{ALIAS} = ['SOLARIS8_SPARC32', 'SOLARIS_SPARC'];
97
 
98
    #
99
    #   ALSO_USES
100
    #   An array of other platforms that may be 'used' by this platform.
101
    #   The process is not recursive
102
    #   Similar to the --Uses option in BuildPlatforms()
103
    #   Will be subject to product expansion.
104
    #
105
    #   Intended use: VS2003 can use stuff from WIN32, but only if the
106
    #                 VS2003 stuff is not available.
107
#    $pInfo->{ALSO_USES} = [];
108
 
109
    #
110
    #   EXTRA_USES
111
    #   An array of other platforms to be 'used' by this platform.
112
    #   This list is not expanded in a PRODUCT as the USERS list is.
113
    #
114
    #   Intended use: Extend the SOLARIS on a sparc platform to allow for bad usage.
115
    #                 ie: Stuff is in SOLARIS, SOLARIS_sparc and sparc
116
    #
117
    $pInfo->{EXTRA_USES} = ['SOLARIS', 'SOLARIS_sparc', 'sparc'];
118
 
119
    #
120
    #   SCMMACHTYPE
121
    #   Override for ScmMachType which appears in makefiles as GBE_MACHTYPE
122
    #   Default value is $ScmPlatform
123
    #
124
    #   Intended use: Legacy Support only
125
    #   Many legacy package.pl files use GBE_MACHTYPE to specify bin and lib
126
    #   subdirectores.
127
    #       The legacy SOLARIS on sparc sets this to 'sparc'
128
    #       For some reason WIN32 sets this to 'win32'
129
    #
130
    $pInfo->{SCMMACHTYPE} = 'sparc';
131
 
132
    #
133
    #   EXT_SHARED
134
    #   Set to the value of the shared library extension
135
    #
136
    #   Intended Use
137
    #   Used to locate shared libraries in packgages for use in the
138
    #   generation set_<PLATFORM>.sh/.bat
139
    #
140
    #   If not set then the set_.sh files will no be created
141
    #
142
    $pInfo->{EXT_SHARED} = '.so';
143
 
144
    #
145
    #   OS_COMMON
146
    #   Set the name of a directory to be used to package header files to be
147
    #   used on targets that share a common OS
148
    #
149
    #   Note: Should also be a part of EXTRA_USES
150
    #
151
    #   Intended Use
152
    #   Extend the operation of the PackageHdr directive to allow files
153
    #   common files to be packaged
154
    #
155
    $pInfo->{OS_COMMON} = 'SOLARIS';
156
}
157
 
158
1;
159