LinuxConfig class final
Linux configuration for DcbCMakeBuilder.
Linux uses single-config generators (Ninja or Unix Makefiles), so
CMAKE_BUILD_TYPE is set at configure time from DcbBuildOptions.debug.
By default, libstdc++ is statically linked into the output .so to
produce a self-contained binary with no external C++ runtime dependency.
This mirrors Flutter's own Linux engine build strategy (clang compiler +
static libstdc++).
- Inheritance
-
- Object
- DcbPlatformConfig
- LinuxConfig
Constructors
-
LinuxConfig({String cmake = 'cmake', CmakeGenerator? generator, String? generatorPath, String? compiler, String? toolchainFile, bool staticLibStdCpp = true, List<
String> extraDefines = const []}) -
const
Properties
- cmake → String
-
The CMake executable to invoke (resolved via
PATHby default).final - compiler → String?
-
Path to the C++ compiler executable.
final
-
extraDefines
→ List<
String> -
Extra definitions passed verbatim to the CMake configure step, e.g.
['-DCMAKE_PREFIX_PATH=/opt/vcpkg'].final - generator → CmakeGenerator?
-
CMake generator selection.
final
- generatorPath → String?
-
Explicit path to the generator executable.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staticLibStdCpp → bool
-
Whether to statically link libstdc++ into the output shared library.
final
- toolchainFile → String?
-
Path to a CMake toolchain file for advanced cross-compilation or
custom sysroot scenarios.
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