use of org.gradle.nativeplatform.toolchain.internal.msvcpp.VisualStudioInstall in project gradle by gradle.
the class AvailableToolChains method findVisualCpps.
private static List<ToolChainCandidate> findVisualCpps() {
// Search in the standard installation locations
final List<? extends VisualStudioInstall> searchResults = VisualStudioLocatorTestFixture.getVisualStudioLocator().locateAllComponents();
List<ToolChainCandidate> toolChains = Lists.newArrayList();
for (VisualStudioInstall install : searchResults) {
if (isTestableVisualStudioVersion(install.getVersion())) {
toolChains.add(new InstalledVisualCpp(getVisualStudioVersion(install.getVersion())).withInstall(install));
}
}
if (toolChains.isEmpty()) {
toolChains.add(new UnavailableToolChain(ToolFamily.VISUAL_CPP));
}
toolChains.sort(LATEST_RELEASED_FIRST);
return toolChains;
}
Aggregations