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();
}
Aggregations