gradle
8.4

# NativeLibrarySpec

@Incubating
interface NativeLibrarySpec : LibrarySpec, NativeComponentSpec, TargetedNativeComponent(source)

Definition of a native library component that is to be built by Gradle.

## Functions

getApi
Link copied to clipboard
abstract fun getApi(): NativeLibraryRequirement
Converts this library to a native library requirement that uses the api library linkage.
getBaseName
Link copied to clipboard
abstract fun getBaseName(): String
getBinaries
Link copied to clipboard
abstract fun getBinaries(): ModelMap<BinarySpec>
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
getName
Link copied to clipboard
abstract fun getName(): String
getProjectPath
Link copied to clipboard
abstract fun getProjectPath(): String
getShared
Link copied to clipboard
abstract fun getShared(): NativeLibraryRequirement
Converts this library to a native library requirement that uses the shared library variant.
getSources
Link copied to clipboard
abstract fun getSources(): ModelMap<LanguageSourceSet>
getStatic
Link copied to clipboard
abstract fun getStatic(): NativeLibraryRequirement
Converts this library to a native library requirement that uses the static library variant.
getVariants
Link copied to clipboard
abstract fun getVariants(): Iterable<out Binary>
setBaseName
Link copied to clipboard
abstract fun setBaseName(baseName: String)
targetBuildTypes
Link copied to clipboard
abstract fun targetBuildTypes(buildTypeSelectors: Array<String>)
targetFlavors
Link copied to clipboard
abstract fun targetFlavors(flavorSelectors: Array<String>)
targetPlatform
Link copied to clipboard
abstract fun targetPlatform(targetPlatform: String)