SYNTAX

    variant [options] [<variantname>] ...


OPTIONS

-h (--help) bool

Display help.

-u (--uid) uint

Test whether the device matches any of the specified machine UIDs. Can be specified more than once.

-v (--verbose) bool

Display verbose output.

-l (--list) bool

Has no effect, kept for compatibility.


ARGUMENTS

[<variantname>]

A symbolic name for the hardware variant may be specified instead of having to know the machine uid. This maximises compatibility with platforms that provide a custom variant.exe and/or that need more than just the machine UID to determine the variant. Check the platform-specific documentation for what variant string is used to identify that platform's hardware. If multiple variant names are specified KErrNone is returned if any one of them matches. Can be specified more than once. [string(s)]


DESCRIPTION

Determines the hardware variant and whether or not that matches the variant specified via the command line.

If the device matches the given command line options, KErrNone is returned. If not, KErrNotSupported is returned. Note that the command will not print any error message in the case of the variant not being supported, so that it doesn't make script output untidy. If an error message is required, use the --verbose option.

In addition there are some other special variant names supported, which are derived at compile time from the platform.mmh macros and similar; run the tool with no arguments to see the full list.

Example usage:

    variant h4 && do-something-h4-specific
    variant wins && do-something-emulator-specific
    variant h4 h6 && do-something-for-h4-and-h6

If no arguments are specified, all the supported and understood variants are listed.


COPYRIGHT

Copyright (c) 2008-2011 Accenture. All rights reserved.