Package org.gradle.nativeplatform
Schnittstelle NativeBinarySpec
- Alle Superschnittstellen:
Binary,BinarySpec,Buildable,BuildableComponentSpec,CheckableComponentSpec,ComponentSpec,ModelElement,Named
- Alle bekannten Unterschnittstellen:
CUnitTestSuiteBinarySpec,GoogleTestTestSuiteBinarySpec,NativeExecutableBinarySpec,NativeLibraryBinarySpec,NativeTestSuiteBinarySpec,SharedLibraryBinarySpec,StaticLibraryBinarySpec
Represents a binary artifact that is the result of building a native component.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Named
Named.Namer -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungThe configuration of the assembler used when compiling assembly sources this binary.Returns theBuildTypeused to construct this binary.The configuration of the C compiler used when compiling C sources for this binary.The component that this binary was built from.The configuration of the C++ compiler used when compiling C++ sources for this binary.TheFlavorthat this binary was built with.getLibs()The libraries that should be linked into this binary.The configuration of the linker used when linking this binary.The configuration of the Objective-C compiler used when compiling Objective-C sources for this binary.The configuration of the Objective-C++ compiler used when compiling Objective-C++ sources for this binary.The configuration of the Resource compiler used when compiling resources for this binary.The configuration of the static library archiver used when creating this binary.Returns theNativePlatformthat this binary is targeted to run on.Returns theNativeToolChainthat will be used to build this binary.voidAdds a library as input to this binary.Von Schnittstelle geerbte Methoden org.gradle.platform.base.Binary
getDisplayNameVon Schnittstelle geerbte Methoden org.gradle.platform.base.BinarySpec
getInputs, getSources, getTasks, isBuildableVon Schnittstelle geerbte Methoden org.gradle.api.Buildable
getBuildDependenciesVon Schnittstelle geerbte Methoden org.gradle.api.BuildableComponentSpec
builtBy, getBuildTask, hasBuildDependencies, setBuildTaskVon Schnittstelle geerbte Methoden org.gradle.api.CheckableComponentSpec
checkedBy, getCheckTask, setCheckTaskVon Schnittstelle geerbte Methoden org.gradle.platform.base.ComponentSpec
getProjectPathVon Schnittstelle geerbte Methoden org.gradle.model.ModelElement
getDisplayName, getName
-
Methodendetails
-
getComponent
NativeComponentSpec getComponent()The component that this binary was built from. -
getFlavor
Flavor getFlavor()TheFlavorthat this binary was built with. -
getTargetPlatform
NativePlatform getTargetPlatform()Returns theNativePlatformthat this binary is targeted to run on. -
getBuildType
BuildType getBuildType()Returns theBuildTypeused to construct this binary. -
getLibs
Collection<NativeDependencySet> getLibs()The libraries that should be linked into this binary. -
lib
Adds a library as input to this binary.This method accepts the following types:
- A
NativeLibrarySpec - A
NativeDependencySet - A
Mapcontaining the library selector.
- project: the path to the project containing the library (optional, defaults to current project)
- library: the name of the library (required)
- linkage: the library linkage required ['shared'/'static'] (optional, defaults to 'shared')
- A
-
getToolChain
NativeToolChain getToolChain()Returns theNativeToolChainthat will be used to build this binary. -
getLinker
Tool getLinker()The configuration of the linker used when linking this binary. Valid forSharedLibraryBinarySpecandNativeExecutableBinarySpec. -
getStaticLibArchiver
Tool getStaticLibArchiver()The configuration of the static library archiver used when creating this binary. Valid forStaticLibraryBinarySpec. -
getAssembler
Tool getAssembler()The configuration of the assembler used when compiling assembly sources this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'assembler' plugin is applied. -
getcCompiler
PreprocessingTool getcCompiler()The configuration of the C compiler used when compiling C sources for this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'c' plugin is applied. -
getCppCompiler
PreprocessingTool getCppCompiler()The configuration of the C++ compiler used when compiling C++ sources for this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'cpp' plugin is applied. -
getObjcCompiler
PreprocessingTool getObjcCompiler()The configuration of the Objective-C compiler used when compiling Objective-C sources for this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'objective-c' plugin is applied. -
getObjcppCompiler
PreprocessingTool getObjcppCompiler()The configuration of the Objective-C++ compiler used when compiling Objective-C++ sources for this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'objective-cpp' plugin is applied. -
getRcCompiler
PreprocessingTool getRcCompiler()The configuration of the Resource compiler used when compiling resources for this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'windows-resources' plugin is applied.
-