Rev 6276 | Blame | Compare with Previous | Last modification | View Log | RSS feed
######################################################################### COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.## File: PLATFORM/ANDROID.cfg## Contents: ANDROID Build support## This package is used during the processing of the build.pl file# Values provided by this package are used to extend the Platform# information as platforms are being created. This provides a# powerful set of mechanism to extend the entire JATS toolset#################################################################################use strict;use warnings;package ANDROID_Build;#-------------------------------------------------------------------------------# Function : add_platform## Description : This function is invoked just before a 'platform' is about# to be added to the build system.## This call is allowed to alter or extend the platform build# information.## Inputs : $pInfo - Reference to the platform build info hash## Returns : Nothing yet#sub add_platform{my $class = shift; # Not really a class, but its called like a classmy $pInfo = shift;## Insert data into the class### EXTRA_USES# An array of other platforms to be 'used' by this platform.# This list is not expanded in a PRODUCT as the USERS list is.## Intended use: Extend the ANDROID platform so that it can locate# Android NDK components ie: 'ANDROIDARM', 'ANDROIDMIPS', 'ANDROIDX86' and others## Calculate these based on the ANDROIDNDK tag#my @NdkPlatforms = PlatformConfig::getTargetsByTag('ANDROIDNDK');::Error("Internal: Cannot locate ANDROID NDK targets") unless @NdkPlatforms;$pInfo->{EXTRA_USES} = \@NdkPlatforms;}1;