Search in sources :

Example 6 with LanguageSourceSet

use of org.gradle.language.base.LanguageSourceSet in project gradle by gradle.

the class SourceSetNativeDependencyResolver method resolve.

@Override
public void resolve(NativeBinaryResolveResult nativeBinaryResolveResult) {
    for (NativeBinaryRequirementResolveResult resolution : nativeBinaryResolveResult.getPendingResolutions()) {
        if (resolution.getInput() instanceof LanguageSourceSet) {
            LanguageSourceSet input = (LanguageSourceSet) resolution.getInput();
            resolution.setNativeDependencySet(createNativeDependencySet(input));
        }
    }
    delegate.resolve(nativeBinaryResolveResult);
}
Also used : LanguageSourceSet(org.gradle.language.base.LanguageSourceSet)

Aggregations

LanguageSourceSet (org.gradle.language.base.LanguageSourceSet)6 File (java.io.File)3 ArrayList (java.util.ArrayList)2 LinkedHashSet (java.util.LinkedHashSet)2 XmlConfigFile (org.gradle.ide.visualstudio.XmlConfigFile)2 HeaderExportingSourceSet (org.gradle.language.nativeplatform.HeaderExportingSourceSet)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 Map (java.util.Map)1 Set (java.util.Set)1 Action (org.gradle.api.Action)1 JavaVersion (org.gradle.api.JavaVersion)1 Transformer (org.gradle.api.Transformer)1 FileCollection (org.gradle.api.file.FileCollection)1 ConventionMapping (org.gradle.api.internal.ConventionMapping)1 CompositeFileCollection (org.gradle.api.internal.file.CompositeFileCollection)1 Spec (org.gradle.api.specs.Spec)1 DependentSourceSet (org.gradle.language.base.DependentSourceSet)1 WindowsResourceSet (org.gradle.language.rc.WindowsResourceSet)1 Mutate (org.gradle.model.Mutate)1 NativeBinarySpec (org.gradle.nativeplatform.NativeBinarySpec)1