Search in sources :

Example 1 with ConfigurableComponentWithLinkUsage

use of org.gradle.language.nativeplatform.internal.ConfigurableComponentWithLinkUsage in project gradle by gradle.

the class CppUnitTestPlugin method hasDevelopmentBinaryLinkage.

private boolean hasDevelopmentBinaryLinkage(ProductionCppComponent mainComponent, CppBinary testedBinary) {
    if (!(testedBinary instanceof ConfigurableComponentWithLinkUsage)) {
        return true;
    }
    ConfigurableComponentWithLinkUsage developmentBinaryWithUsage = (ConfigurableComponentWithLinkUsage) mainComponent.getDevelopmentBinary().get();
    ConfigurableComponentWithLinkUsage testedBinaryWithUsage = (ConfigurableComponentWithLinkUsage) testedBinary;
    return testedBinaryWithUsage.getLinkage() == developmentBinaryWithUsage.getLinkage();
}
Also used : ConfigurableComponentWithLinkUsage(org.gradle.language.nativeplatform.internal.ConfigurableComponentWithLinkUsage)

Aggregations

ConfigurableComponentWithLinkUsage (org.gradle.language.nativeplatform.internal.ConfigurableComponentWithLinkUsage)1