anchor.diff:  Some of the most common configuration options are shown below.
   
   [horizontal]
  -Property<Boolean> debuggable:: `true`
  -
  -ConfigurableFileCollection libs:: `configurations.nativeLinkVariant`
  -
  -RegularFileProperty linkedFile:: `$buildDir/lib/main/variant/libBaseName[.so|dylib]` (*nix) or `$buildDir\lib\main\variant\baseName.dll` (Windows)
  -
  -ListProperty<String> linkerArgs:: []
  -
  -ConfigurableFileCollection source:: `compileVariantCpp.objects`
  -
  -Property<NativePlatform> targetPlatform:: derived from the `TargetMachine` of the binary
  -
  -Property<NativeToolChain> toolChain:: <<building_cpp_projects.adoc#cpp_supported_tool_chain,automatically selected based on target machine>>
  +link:{groovyDslPath}/org.gradle.nativeplatform.tasks.LinkSharedLibrary.html#org.gradle.nativeplatform.tasks.LinkSharedLibrary:debuggable[debuggable]:: `true`
  +
  +link:{groovyDslPath}/org.gradle.nativeplatform.tasks.LinkSharedLibrary.html#org.gradle.nativeplatform.tasks.LinkSharedLibrary:libs[libs]:: `configurations.nativeLinkVariant`
  +
  +link:{groovyDslPath}/org.gradle.nativeplatform.tasks.LinkSharedLibrary.html#org.gradle.nativeplatform.tasks.LinkSharedLibrary:linkedFile[linkedFile]:: `$buildDir/lib/main/variant/libBaseName[.so|dylib]` (*nix) or `$buildDir\lib\main\variant\baseName.dll` (Windows)
  +
  +link:{groovyDslPath}/org.gradle.nativeplatform.tasks.LinkSharedLibrary.html#org.gradle.nativeplatform.tasks.LinkSharedLibrary:linkerArgs[linkerArgs]:: []
  +
  +link:{groovyDslPath}/org.gradle.nativeplatform.tasks.LinkSharedLibrary.html#org.gradle.nativeplatform.tasks.LinkSharedLibrary:source[source]:: `compileVariantCpp.objects`
  +
  +link:{groovyDslPath}/org.gradle.nativeplatform.tasks.LinkSharedLibrary.html#org.gradle.nativeplatform.tasks.LinkSharedLibrary:targetPlatform[targetPlatform]:: derived from the `TargetMachine` of the binary
  +
  +link:{groovyDslPath}/org.gradle.nativeplatform.tasks.LinkSharedLibrary.html#org.gradle.nativeplatform.tasks.LinkSharedLibrary:toolChain[toolChain]:: <<building_cpp_projects.adoc#cpp_supported_tool_chain,automatically selected based on target machine>>
   
   === `create__Variant__` Task
   
  
positive.code: Some of the most common configuration options are shown below.
  
  [horizontal]
  ListProperty<String> compilerArgs:: []
  
  boolean debuggable:: `true`
  
  ConfigurableFileCollection includes:: `configurations.cppCompileVariant` + `library.publicHeaders` + `library.privateHeaders`
  
  Map<String, String> macros:: [:]
  
  DirectoryProperty objectFileDir:: `$buildDir/obj/main/variant`
  
  boolean optimized:: `false` for debug build type or `true` otherwise
  
  boolean positionIndependentCode:: `true` for shared linkage or `false` otherwise
  
  ConfigurableFileCollection source:: `library.cppSource`
  
  ConfigurableFileCollection systemIncludes:: []
  
  Property<NativePlatform> targetPlatform:: derived from the `TargetMachine` of the binary
  
  Property<NativeToolChain> toolChain:: <<building_cpp_projects.adoc#cpp_supported_tool_chain,automatically selected based on target machine>>
  
  === `link__Variant__` Task
  
  
negative.code: Some of the most common configuration options are shown below.
  
  [horizontal]
  link:{groovyDslPath}/org.gradle.nativeplatform.tasks.CreateStaticLibrary.html#org.gradle.nativeplatform.tasks.CreateStaticLibrary:outputFile[outputFile]:: `$buildDir/lib/main/variant/libBaseName.a` (*nix) or `$buildDir\lib\main\variant\baseName.lib` (Windows)
  
  link:{groovyDslPath/org.gradle.nativeplatform.tasks.CreateStaticLibrary.html#org.gradle.nativeplatform.tasks.CreateStaticLibrary:source[source]:: `compileVariantCpp.objects`
  
  link:{groovyDslPath}/org.gradle.nativeplatform.tasks.CreateStaticLibrary.html#org.gradle.nativeplatform.tasks.CreateStaticLibrary:staticLibArgs[staticLibArgs]:: []
  
  link:{groovyDslPath}/org.gradle.nativeplatform.tasks.CreateStaticLibrary.html#org.gradle.nativeplatform.tasks.CreateStaticLibrary:targetPlatform[targetPlatform]:: derived from the `TargetMachine` of the binary
  
  link:{groovyDslPath}/org.gradle.nativeplatform.tasks.CreateStaticLibrary.html#org.gradle.nativeplatform.tasks.CreateStaticLibrary:toolChain[toolChain]:: <<building_cpp_projects.adoc#cpp_supported_tool_chain,automatically selected based on target machine>>
  