AndroidConfig class final
Android configuration for DcbCMakeBuilder.
Uses the NDK's CMake toolchain file for cross-compilation. The NDK ships its own clang toolchain and libc++, so no separate compiler selection is needed.
By default, libc++ is statically linked (c++_static). When multiple
native .so libraries coexist in the same APK, consider switching to
c++_shared to reduce APK size and avoid duplicated C++ runtime state.
Note: using c++_shared requires the shared library to be packaged into
the APK (AGP handles this automatically when using externalNativeBuild).
- Inheritance
-
- Object
- DcbPlatformConfig
- AndroidConfig
Constructors
-
AndroidConfig({String cmake = 'cmake', required String ndkPath, String? abi, int androidPlatform = 21, bool staticStl = true, CmakeGenerator? generator = CmakeGenerator.ninja, List<
String> extraDefines = const []}) -
const
Properties
- abi → String?
-
Target ABI (Android Binary Interface).
final
- androidPlatform → int
-
Minimum Android API level.
final
- cmake → String
-
The CMake executable to invoke (resolved via
PATHby default).final -
extraDefines
→ List<
String> -
Extra definitions passed verbatim to the CMake configure step.
final
- generator → CmakeGenerator?
-
CMake generator selection.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ndkPath → String
-
Path to the Android NDK root directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staticStl → bool
-
C++ STL linkage strategy.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited