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