Package org.gradle.nativeplatform
Interface NativeBinarySpec
- All Superinterfaces:
- Binary,- BinarySpec,- Buildable,- BuildableComponentSpec,- CheckableComponentSpec,- ComponentSpec,- ModelElement,- Named
- All Known Subinterfaces:
- CUnitTestSuiteBinarySpec,- GoogleTestTestSuiteBinarySpec,- NativeExecutableBinarySpec,- NativeLibraryBinarySpec,- NativeTestSuiteBinarySpec,- SharedLibraryBinarySpec,- StaticLibraryBinarySpec
Represents a binary artifact that is the result of building a native component.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.NamedNamed.Namer
- 
Method SummaryModifier and TypeMethodDescriptionThe 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.Methods inherited from interface org.gradle.platform.base.BinarygetDisplayNameMethods inherited from interface org.gradle.platform.base.BinarySpecgetInputs, getSources, getTasks, isBuildableMethods inherited from interface org.gradle.api.BuildablegetBuildDependenciesMethods inherited from interface org.gradle.api.BuildableComponentSpecbuiltBy, getBuildTask, hasBuildDependencies, setBuildTaskMethods inherited from interface org.gradle.api.CheckableComponentSpeccheckedBy, getCheckTask, setCheckTaskMethods inherited from interface org.gradle.platform.base.ComponentSpecgetProjectPathMethods inherited from interface org.gradle.model.ModelElementgetDisplayName, getName
- 
Method Details- 
getComponentNativeComponentSpec getComponent()The component that this binary was built from.
- 
getFlavorFlavor getFlavor()TheFlavorthat this binary was built with.
- 
getTargetPlatformNativePlatform getTargetPlatform()Returns theNativePlatformthat this binary is targeted to run on.
- 
getBuildTypeBuildType getBuildType()Returns theBuildTypeused to construct this binary.
- 
getLibsCollection<NativeDependencySet> getLibs()The libraries that should be linked into this binary.
- 
libAdds 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 
- 
getToolChainNativeToolChain getToolChain()Returns theNativeToolChainthat will be used to build this binary.
- 
getLinkerTool getLinker()The configuration of the linker used when linking this binary. Valid forSharedLibraryBinarySpecandNativeExecutableBinarySpec.
- 
getStaticLibArchiverTool getStaticLibArchiver()The configuration of the static library archiver used when creating this binary. Valid forStaticLibraryBinarySpec.
- 
getAssemblerTool getAssembler()The configuration of the assembler used when compiling assembly sources this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'assembler' plugin is applied.
- 
getcCompilerPreprocessingTool getcCompiler()The configuration of the C compiler used when compiling C sources for this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'c' plugin is applied.
- 
getCppCompilerPreprocessingTool getCppCompiler()The configuration of the C++ compiler used when compiling C++ sources for this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'cpp' plugin is applied.
- 
getObjcCompilerPreprocessingTool 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.
- 
getObjcppCompilerPreprocessingTool 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.
- 
getRcCompilerPreprocessingTool getRcCompiler()The configuration of the Resource compiler used when compiling resources for this binary. Valid forSharedLibraryBinarySpec,StaticLibraryBinarySpecandNativeExecutableBinarySpecwhen the 'windows-resources' plugin is applied.
 
-