MacosConfig class final

macOS configuration for DcbCMakeBuilder.

macOS uses single-config generators (Ninja or Unix Makefiles), so CMAKE_BUILD_TYPE is set at configure time from DcbBuildOptions.debug.

The default generator is Unix Makefiles (CMake's default on macOS). AppleClang is the standard compiler; custom compiler selection is rarely needed but supported via compiler.

Inheritance

Constructors

MacosConfig({String cmake = 'cmake', CmakeGenerator? generator, String? generatorPath, String? compiler, String? deploymentTarget, bool universal = false, List<String> extraDefines = const []})
const

Properties

cmake → String
The CMake executable to invoke (resolved via PATH by default).
final
compiler → String?
Path to the C++ compiler executable.
final
deploymentTarget → String?
Minimum macOS deployment target (e.g. '13.0').
final
extraDefines → List<String>
Extra definitions passed verbatim to the CMake configure step, e.g. ['-DCMAKE_PREFIX_PATH=/opt/homebrew'].
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
universal → bool
Whether to build a universal (arm64 + x86_64) binary.
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