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, ExtensionAware, Task, org.gradle.util.Configurable<Task>
Direct Known Subclasses:
CCompile, CppCompile, ObjectiveCCompile, ObjectiveCppCompile

@Incubating 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

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

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

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