pub struct AndroidNdk { /* private fields */ }
Expand description

Helper structure that contains information about the Android NDK Path and returns paths to the tools.

Implementations

Using environment variables

Build tag

NDK path

Operating system type

Path to Clang

Path to bin

Displaying various information

Sysroot and lib platform

Helper function for looking for a path based on the platform version Calls a closure for each attempt and then return the PathBuf for the first file that exists. Uses approach that NDK build tools use which is described at: https://developer.android.com/ndk/guides/application_mk “ - The platform version matching APP_PLATFORM.

  • The next available API level below APP_PLATFORM. For example, android-19 will be used when APP_PLATFORM is android-20, since there were no new native APIs in android-20.
  • The minimum API level supported by the NDK.“

Return tool root from the toolchain directory

Return path to linker

Return path to gcc library

Return path to sysroot

Return path to sysroot library

Return path to version specific libraries

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.