| 4324 |
dpurdie |
1 |
########################################################################
|
| 7300 |
dpurdie |
2 |
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
|
| 4324 |
dpurdie |
3 |
#
|
|
|
4 |
# File: PLATFORM/ANDROID.cfg
|
|
|
5 |
#
|
| 7310 |
dpurdie |
6 |
# Contents: ANDROID Build support
|
| 4324 |
dpurdie |
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 ANDROID_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 |
|
|
|
42 |
#
|
|
|
43 |
# EXTRA_USES
|
|
|
44 |
# An array of other platforms to be 'used' by this platform.
|
|
|
45 |
# This list is not expanded in a PRODUCT as the USERS list is.
|
|
|
46 |
#
|
| 7322 |
dpurdie |
47 |
# Intended use: Extend the ANDROID platform so that it can locate
|
|
|
48 |
# Android NDK components ie: 'ANDROIDARM', 'ANDROIDMIPS', 'ANDROIDX86' and others
|
| 4324 |
dpurdie |
49 |
#
|
| 7322 |
dpurdie |
50 |
# Calculate these based on the ANDROIDNDK tag
|
|
|
51 |
#
|
|
|
52 |
my @NdkPlatforms = PlatformConfig::getTargetsByTag('ANDROIDNDK');
|
|
|
53 |
::Error("Internal: Cannot locate ANDROID NDK targets") unless @NdkPlatforms;
|
|
|
54 |
$pInfo->{EXTRA_USES} = \@NdkPlatforms;
|
| 4324 |
dpurdie |
55 |
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
1;
|
|
|
59 |
|