Class AbstractNativeSourceCompileTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.language.nativeplatform.tasks.AbstractNativeCompileTask
org.gradle.language.nativeplatform.tasks.AbstractNativeSourceCompileTask
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, Configurable<Task>
Direct Known Subclasses:
CCompile, CppCompile, ObjectiveCCompile, ObjectiveCppCompile

@DisableCachingByDefault(because="Abstract super-class, not to be instantiated directly") public abstract class AbstractNativeSourceCompileTask extends AbstractNativeCompileTask
Compiles native source files into object files.
  • Constructor Details

    • AbstractNativeSourceCompileTask

      public AbstractNativeSourceCompileTask()
  • Method Details

    • configureSpec

      protected void configureSpec(org.gradle.nativeplatform.toolchain.internal.NativeCompileSpec spec)
      Overrides:
      configureSpec in class AbstractNativeCompileTask
    • getPreCompiledHeader

      @Nullable @Optional @Incubating public org.gradle.nativeplatform.toolchain.internal.PreCompiledHeader getPreCompiledHeader()
      Returns the pre-compiled header to be used during compilation
    • setPreCompiledHeader

      @Incubating public void setPreCompiledHeader(@Nullable org.gradle.nativeplatform.toolchain.internal.PreCompiledHeader preCompiledHeader)
    • getCompilerVersion

      @Nullable @Optional protected CompilerVersion getCompilerVersion()
      The compiler used, including the type and the version.
      Since:
      4.4