Interface CppCompile.Options

All Superinterfaces:
NativeCompileOptions
Enclosing class:
CppCompile

public static interface CppCompile.Options extends NativeCompileOptions
Compile options for C++ compilation.
  • Method Details

    • getOptimized

      @Input org.gradle.api.provider.Property<Boolean> getOptimized()
      Returns the property to configure the optimization for all compilation units.
      Returns:
      the property to configure the optimization for all compilation units
    • getDebuggable

      @Input org.gradle.api.provider.Property<Boolean> getDebuggable()
      Returns the property to configure the debuggability for all compilation units.
      Returns:
      the property to configure the debuggability for all compilation units
    • getPositionIndependentCode

      @Input org.gradle.api.provider.Property<Boolean> getPositionIndependentCode()
      Returns the property to configure the position independence for all compilation units.
      Returns:
      the property to configure the position independence for all compilation units
    • getPreprocessorOptions

      PreprocessorOptions getPreprocessorOptions()
      Returns the preprocessor options for all compilation units.
      Returns:
      the preprocessor options for all compilation units
    • getIncrementalAfterFailure

      @Input @Optional org.gradle.api.provider.Property<Boolean> getIncrementalAfterFailure()
      Returns the property to configure incremental compilation after a failure.
      Returns:
      the property to configure incremental compilation after a failure
    • forSource

      org.gradle.api.provider.Provider<NativeCompileOptions> forSource(File sourceFile)
      Returns the compile options for the specified C++ compilation unit.
      Parameters:
      sourceFile - the C++ compilation unit
      Returns:
      a provider to the compile options of a source file