Class AbstractLinkTask

    • Constructor Detail

      • AbstractLinkTask

        public AbstractLinkTask()
    • Method Detail

      • getTargetPlatform

        public NativePlatform getTargetPlatform()
        The platform that the linked binary will run on.
      • setTargetPlatform

        public void setTargetPlatform​(NativePlatform targetPlatform)
      • getDestinationDir

        @OutputDirectory
        public File getDestinationDir()
        Include the destination directory as an output, to pick up auxiliary files produced alongside the main output file
      • setOutputFile

        public void setOutputFile​(File outputFile)
      • setOutputFile

        public void setOutputFile​(Provider<? extends RegularFile> outputFile)
        Sets the output file generated by the linking process via a Provider.
        Parameters:
        outputFile - the output file provider to use
        Since:
        4.1
        See Also:
        setOutputFile(File)
      • getLinkerArgs

        @Input
        public ListProperty<String> getLinkerArgs()
        Additional arguments passed to the linker.
        Since:
        4.3
      • isDebuggable

        @Input
        public boolean isDebuggable()
        Create a debuggable binary?
        Since:
        4.3
      • setDebuggable

        public void setDebuggable​(boolean debuggable)
        Create a debuggable binary?
        Since:
        4.3
      • lib

        public void lib​(Object libs)
        Adds a set of library files to be linked. The provided libs object is evaluated as per Project.files(Object...).
      • getOperationLoggerFactory

        @Inject
        public org.gradle.internal.operations.logging.BuildOperationLoggerFactory getOperationLoggerFactory()
      • link

        public void link()
      • createLinkerSpec

        protected abstract org.gradle.nativeplatform.internal.LinkerSpec createLinkerSpec()