| 227 |
dpurdie |
1 |
###############################################################################
|
| 5709 |
dpurdie |
2 |
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
|
| 227 |
dpurdie |
3 |
#
|
|
|
4 |
# File: PLATFORM/SOLARIS.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 |
use strict;
|
|
|
19 |
use warnings;
|
|
|
20 |
|
|
|
21 |
package WIN32_Build;
|
|
|
22 |
|
|
|
23 |
#-------------------------------------------------------------------------------
|
|
|
24 |
# Function : add_platform
|
|
|
25 |
#
|
|
|
26 |
# Description : This function is invoked just before a 'platform' is about
|
|
|
27 |
# to be added to the build system.
|
|
|
28 |
#
|
|
|
29 |
# This call is allowed to alter or extend the platform build
|
|
|
30 |
# information.
|
|
|
31 |
#
|
|
|
32 |
# Inputs : $pInfo - Reference to the platform build info hash
|
|
|
33 |
#
|
|
|
34 |
# Returns : Nothing yet
|
|
|
35 |
#
|
|
|
36 |
sub add_platform
|
|
|
37 |
{
|
|
|
38 |
my $class = shift; # Not really a class, but its called like a class
|
|
|
39 |
my $pInfo = shift;
|
|
|
40 |
|
|
|
41 |
#
|
|
|
42 |
# SCMMACHTYPE
|
|
|
43 |
# Override for ScmMachType which appears in makefiles as GBE_MACHTYPE
|
|
|
44 |
# Default value is $ScmPlatform
|
|
|
45 |
#
|
|
|
46 |
# Intended use: Legacy Support only
|
|
|
47 |
# Many legacy package.pl files use GBE_MACHTYPE to specify bin and lib
|
|
|
48 |
# subdirectores.
|
|
|
49 |
# The legacy SOLARIS on sparc sets this to 'sparc'
|
|
|
50 |
# For some reason WIN32 sets this to 'win32'
|
|
|
51 |
#
|
|
|
52 |
$pInfo->{SCMMACHTYPE} = 'win32';
|
|
|
53 |
|
|
|
54 |
#
|
|
|
55 |
# EXT_SHARED
|
|
|
56 |
# Set to the value of the shared library extension
|
|
|
57 |
#
|
|
|
58 |
# Intended Use
|
|
|
59 |
# Used to locate shared libraries in packgages for use in the
|
|
|
60 |
# generation set_<PLATFORM>.sh/.bat
|
|
|
61 |
#
|
|
|
62 |
# If not set then the set_.sh files will no be created
|
|
|
63 |
#
|
|
|
64 |
$pInfo->{EXT_SHARED} = '.dll';
|
|
|
65 |
|
|
|
66 |
#
|
|
|
67 |
# OS_COMMON
|
|
|
68 |
# Set the name of a directory to be used to package header files to be
|
|
|
69 |
# used on targets that share a common OS
|
|
|
70 |
#
|
|
|
71 |
# Note: Should also be a part of EXTRA_USES
|
|
|
72 |
#
|
|
|
73 |
# Intended Use
|
|
|
74 |
# Extend the operation of the PackageHdr directive to allow files
|
|
|
75 |
# common files to be packaged
|
|
|
76 |
#
|
|
|
77 |
$pInfo->{OS_COMMON} = 'WIN32';
|
|
|
78 |
|
| 379 |
dpurdie |
79 |
# USES_FIRST
|
|
|
80 |
# An array of other platforms that may be 'used' by this platform.
|
|
|
81 |
# The process is not recursive
|
|
|
82 |
# Will be NOT be subject to product expansion.
|
|
|
83 |
# Will be placed in search list before the standard platform and product
|
|
|
84 |
#
|
|
|
85 |
# Intended use: WIN32 will use stuff from VC6 if available
|
|
|
86 |
# Ie: Dinkumware
|
|
|
87 |
#
|
|
|
88 |
$pInfo->{USES_FIRST} = [ 'VC6' ];
|
| 227 |
dpurdie |
89 |
}
|
|
|
90 |
|
|
|
91 |
1;
|
|
|
92 |
|