Search in sources :

Example 1 with SwiftPlatform

use of org.gradle.language.swift.SwiftPlatform in project gradle by gradle.

the class XCTestConventionPlugin method apply.

@Override
public void apply(ProjectInternal project) {
    project.getPluginManager().apply(SwiftBasePlugin.class);
    project.getPluginManager().apply(NativeTestingBasePlugin.class);
    // Create test suite component
    final DefaultSwiftXCTestSuite testComponent = createTestSuite(project);
    project.afterEvaluate(new Action<Project>() {

        @Override
        public void execute(final Project project) {
            String operatingSystemSuffix = "";
            OperatingSystemFamily operatingSystem = objectFactory.named(OperatingSystemFamily.class, DefaultNativePlatform.getCurrentOperatingSystem().toFamilyName());
            Usage runtimeUsage = objectFactory.named(Usage.class, Usage.NATIVE_RUNTIME);
            Provider<String> group = project.provider(new Callable<String>() {

                @Override
                public String call() throws Exception {
                    return project.getGroup().toString();
                }
            });
            Provider<String> version = project.provider(new Callable<String>() {

                @Override
                public String call() throws Exception {
                    return project.getVersion().toString();
                }
            });
            AttributeContainer attributesDebug = attributesFactory.mutable();
            attributesDebug.attribute(Usage.USAGE_ATTRIBUTE, runtimeUsage);
            attributesDebug.attribute(DEBUGGABLE_ATTRIBUTE, true);
            attributesDebug.attribute(OPTIMIZED_ATTRIBUTE, false);
            NativeVariantIdentity debugVariant = new NativeVariantIdentity("debug" + operatingSystemSuffix, testComponent.getModule(), group, version, true, false, operatingSystem, null, new DefaultUsageContext("debug" + operatingSystemSuffix + "-runtime", runtimeUsage, attributesDebug));
            ToolChainSelector.Result<SwiftPlatform> result = toolChainSelector.select(SwiftPlatform.class);
            // Create test suite executable
            DefaultSwiftXCTestBinary binary;
            if (result.getTargetPlatform().getOperatingSystem().isMacOsX()) {
                binary = (DefaultSwiftXCTestBinary) testComponent.addBundle("executable", debugVariant, result.getTargetPlatform(), result.getToolChain(), result.getPlatformToolProvider());
            } else {
                binary = (DefaultSwiftXCTestBinary) testComponent.addExecutable("executable", debugVariant, result.getTargetPlatform(), result.getToolChain(), result.getPlatformToolProvider());
            }
            testComponent.getTestBinary().set(binary);
            // TODO: Publishing for test executable?
            final ProductionSwiftComponent mainComponent = project.getComponents().withType(ProductionSwiftComponent.class).findByName("main");
            if (mainComponent != null) {
                testComponent.getTestedComponent().set(mainComponent);
                // Test configuration extends main configuration
                testComponent.getImplementationDependencies().extendsFrom(mainComponent.getImplementationDependencies());
                project.getDependencies().add(binary.getImportPathConfiguration().getName(), project);
            }
            testComponent.getBinaries().whenElementKnown(DefaultSwiftXCTestBinary.class, new Action<DefaultSwiftXCTestBinary>() {

                @Override
                public void execute(DefaultSwiftXCTestBinary binary) {
                    // Create test suite test task
                    XCTest testingTask = createTestingTask(project);
                    binary.getRunTask().set(testingTask);
                    // Configure tasks
                    configureTestingTask(binary, testingTask);
                    configureTestSuiteBuildingTasks((ProjectInternal) project, binary);
                    configureTestSuiteWithTestedComponentWhenAvailable(project, testComponent, binary);
                }
            });
            testComponent.getBinaries().realizeNow();
        }
    });
}
Also used : OperatingSystemFamily(org.gradle.nativeplatform.OperatingSystemFamily) Usage(org.gradle.api.attributes.Usage) Action(org.gradle.api.Action) ProductionSwiftComponent(org.gradle.language.swift.ProductionSwiftComponent) AttributeContainer(org.gradle.api.attributes.AttributeContainer) NativeVariantIdentity(org.gradle.language.cpp.internal.NativeVariantIdentity) Callable(java.util.concurrent.Callable) Provider(org.gradle.api.provider.Provider) PlatformToolProvider(org.gradle.nativeplatform.toolchain.internal.PlatformToolProvider) Project(org.gradle.api.Project) DefaultSwiftXCTestBinary(org.gradle.nativeplatform.test.xctest.internal.DefaultSwiftXCTestBinary) DefaultUsageContext(org.gradle.language.cpp.internal.DefaultUsageContext) DefaultSwiftXCTestSuite(org.gradle.nativeplatform.test.xctest.internal.DefaultSwiftXCTestSuite) SwiftPlatform(org.gradle.language.swift.SwiftPlatform) XCTest(org.gradle.nativeplatform.test.xctest.tasks.XCTest)

Example 2 with SwiftPlatform

use of org.gradle.language.swift.SwiftPlatform in project gradle by gradle.

the class SwiftApplicationPlugin method apply.

@Override
public void apply(final ProjectInternal project) {
    project.getPluginManager().apply(SwiftBasePlugin.class);
    final ConfigurationContainer configurations = project.getConfigurations();
    // Add the application and extension
    final DefaultSwiftApplication application = componentFactory.newInstance(SwiftApplication.class, DefaultSwiftApplication.class, "main");
    project.getExtensions().add(SwiftApplication.class, "application", application);
    project.getComponents().add(application);
    // Setup component
    application.getModule().set(GUtil.toCamelCase(project.getName()));
    project.afterEvaluate(new Action<Project>() {

        @Override
        public void execute(final Project project) {
            final ObjectFactory objectFactory = project.getObjects();
            // Add outgoing APIs
            // TODO - remove this
            final Configuration implementation = application.getImplementationDependencies();
            final Usage apiUsage = objectFactory.named(Usage.class, Usage.SWIFT_API);
            application.getBinaries().whenElementKnown(SwiftExecutable.class, new Action<SwiftExecutable>() {

                @Override
                public void execute(SwiftExecutable executable) {
                    Names names = ((ComponentWithNames) executable).getNames();
                    Configuration apiElements = configurations.create(names.withSuffix("SwiftApiElements"));
                    apiElements.extendsFrom(implementation);
                    apiElements.setCanBeResolved(false);
                    apiElements.getAttributes().attribute(Usage.USAGE_ATTRIBUTE, apiUsage);
                    apiElements.getAttributes().attribute(DEBUGGABLE_ATTRIBUTE, executable.isDebuggable());
                    apiElements.getAttributes().attribute(OPTIMIZED_ATTRIBUTE, executable.isOptimized());
                    apiElements.getAttributes().attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, objectFactory.named(OperatingSystemFamily.class, ((OperatingSystemInternal) executable.getTargetPlatform().getOperatingSystem()).toFamilyName()));
                    apiElements.getOutgoing().artifact(executable.getModuleFile());
                }
            });
            Set<OperatingSystemFamily> operatingSystemFamilies = Collections.singleton(objectFactory.named(OperatingSystemFamily.class, DefaultNativePlatform.getCurrentOperatingSystem().toFamilyName()));
            Usage runtimeUsage = objectFactory.named(Usage.class, Usage.NATIVE_RUNTIME);
            for (BuildType buildType : BuildType.DEFAULT_BUILD_TYPES) {
                for (OperatingSystemFamily operatingSystem : operatingSystemFamilies) {
                    String operatingSystemSuffix = createDimensionSuffix(operatingSystem, operatingSystemFamilies);
                    String variantName = buildType.getName() + operatingSystemSuffix;
                    Provider<String> group = project.provider(new Callable<String>() {

                        @Override
                        public String call() throws Exception {
                            return project.getGroup().toString();
                        }
                    });
                    Provider<String> version = project.provider(new Callable<String>() {

                        @Override
                        public String call() throws Exception {
                            return project.getVersion().toString();
                        }
                    });
                    AttributeContainer runtimeAttributes = attributesFactory.mutable();
                    runtimeAttributes.attribute(Usage.USAGE_ATTRIBUTE, runtimeUsage);
                    runtimeAttributes.attribute(DEBUGGABLE_ATTRIBUTE, buildType.isDebuggable());
                    runtimeAttributes.attribute(OPTIMIZED_ATTRIBUTE, buildType.isOptimized());
                    runtimeAttributes.attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, operatingSystem);
                    NativeVariantIdentity variantIdentity = new NativeVariantIdentity(variantName, application.getModule(), group, version, buildType.isDebuggable(), buildType.isOptimized(), operatingSystem, null, new DefaultUsageContext(variantName + "-runtime", runtimeUsage, runtimeAttributes));
                    if (DefaultNativePlatform.getCurrentOperatingSystem().toFamilyName().equals(operatingSystem.getName())) {
                        ToolChainSelector.Result<SwiftPlatform> result = toolChainSelector.select(SwiftPlatform.class);
                        SwiftExecutable executable = application.addExecutable(variantIdentity, buildType == BuildType.DEBUG, result.getTargetPlatform(), result.getToolChain(), result.getPlatformToolProvider());
                        // Use the debug variant as the development binary
                        if (buildType == BuildType.DEBUG) {
                            application.getDevelopmentBinary().set(executable);
                        }
                    }
                }
            }
            // Configure the binaries
            application.getBinaries().realizeNow();
        }
    });
}
Also used : OperatingSystemFamily(org.gradle.nativeplatform.OperatingSystemFamily) Usage(org.gradle.api.attributes.Usage) Action(org.gradle.api.Action) Set(java.util.Set) Configuration(org.gradle.api.artifacts.Configuration) SwiftExecutable(org.gradle.language.swift.SwiftExecutable) DefaultSwiftApplication(org.gradle.language.swift.internal.DefaultSwiftApplication) AttributeContainer(org.gradle.api.attributes.AttributeContainer) ComponentWithNames(org.gradle.language.nativeplatform.internal.ComponentWithNames) NativeVariantIdentity(org.gradle.language.cpp.internal.NativeVariantIdentity) OperatingSystemInternal(org.gradle.nativeplatform.platform.internal.OperatingSystemInternal) Callable(java.util.concurrent.Callable) Provider(org.gradle.api.provider.Provider) ComponentWithNames(org.gradle.language.nativeplatform.internal.ComponentWithNames) Names(org.gradle.language.nativeplatform.internal.Names) Project(org.gradle.api.Project) ObjectFactory(org.gradle.api.model.ObjectFactory) ConfigurationContainer(org.gradle.api.artifacts.ConfigurationContainer) BuildType(org.gradle.language.nativeplatform.internal.BuildType) DefaultUsageContext(org.gradle.language.cpp.internal.DefaultUsageContext) SwiftPlatform(org.gradle.language.swift.SwiftPlatform)

Example 3 with SwiftPlatform

use of org.gradle.language.swift.SwiftPlatform in project gradle by gradle.

the class DefaultToolChainSelector method select.

public Result<SwiftPlatform> select(SwiftPlatform requestPlatform) {
    DefaultNativePlatform targetNativePlatform = newNativePlatform(requestPlatform.getTargetMachine());
    // TODO - push all this stuff down to the tool chain and let it create the specific platform and provider
    NativeLanguage sourceLanguage = NativeLanguage.SWIFT;
    NativeToolChainInternal toolChain = getToolChain(sourceLanguage, targetNativePlatform);
    // TODO - don't select again here, as the selection is already performed to select the toolchain
    PlatformToolProvider toolProvider = toolChain.select(sourceLanguage, targetNativePlatform);
    SwiftVersion sourceCompatibility = requestPlatform.getSourceCompatibility();
    if (sourceCompatibility == null && toolProvider.isAvailable()) {
        sourceCompatibility = toSwiftVersion(toolProvider.getCompilerMetadata(ToolType.SWIFT_COMPILER).getVersion());
    }
    SwiftPlatform targetPlatform = new DefaultSwiftPlatform(requestPlatform.getTargetMachine(), sourceCompatibility, targetNativePlatform);
    return new DefaultResult<SwiftPlatform>(toolChain, toolProvider, targetPlatform);
}
Also used : NativeToolChainInternal(org.gradle.nativeplatform.toolchain.internal.NativeToolChainInternal) NativeLanguage(org.gradle.nativeplatform.toolchain.internal.NativeLanguage) DefaultSwiftPlatform(org.gradle.language.swift.internal.DefaultSwiftPlatform) SwiftVersion(org.gradle.language.swift.SwiftVersion) PlatformToolProvider(org.gradle.nativeplatform.toolchain.internal.PlatformToolProvider) DefaultNativePlatform(org.gradle.nativeplatform.platform.internal.DefaultNativePlatform) SwiftPlatform(org.gradle.language.swift.SwiftPlatform) DefaultSwiftPlatform(org.gradle.language.swift.internal.DefaultSwiftPlatform)

Example 4 with SwiftPlatform

use of org.gradle.language.swift.SwiftPlatform in project gradle by gradle.

the class SwiftApplicationPlugin method apply.

@Override
public void apply(final Project project) {
    project.getPluginManager().apply(SwiftBasePlugin.class);
    final ObjectFactory objectFactory = project.getObjects();
    final ProviderFactory providers = project.getProviders();
    // Add the application and extension
    final DefaultSwiftApplication application = componentFactory.newInstance(SwiftApplication.class, DefaultSwiftApplication.class, "main");
    project.getExtensions().add(SwiftApplication.class, "application", application);
    project.getComponents().add(application);
    // Setup component
    application.getModule().convention(GUtil.toCamelCase(project.getName()));
    application.getTargetMachines().convention(Dimensions.useHostAsDefaultTargetMachine(targetMachineFactory));
    application.getDevelopmentBinary().convention(project.provider(() -> {
        return application.getBinaries().get().stream().filter(SwiftExecutable.class::isInstance).map(SwiftExecutable.class::cast).filter(binary -> !binary.isOptimized() && Architectures.forInput(binary.getTargetMachine().getArchitecture().getName()).equals(DefaultNativePlatform.host().getArchitecture())).findFirst().orElse(application.getBinaries().get().stream().filter(SwiftExecutable.class::isInstance).map(SwiftExecutable.class::cast).filter(binary -> !binary.isOptimized()).findFirst().orElse(null));
    }));
    project.afterEvaluate(p -> {
        // TODO: make build type configurable for components
        Dimensions.applicationVariants(application.getModule(), application.getTargetMachines(), objectFactory, attributesFactory, providers.provider(() -> project.getGroup().toString()), providers.provider(() -> project.getVersion().toString()), variantIdentity -> {
            if (tryToBuildOnHost(variantIdentity)) {
                application.getSourceCompatibility().finalizeValue();
                ToolChainSelector.Result<SwiftPlatform> result = toolChainSelector.select(SwiftPlatform.class, new DefaultSwiftPlatform(variantIdentity.getTargetMachine(), application.getSourceCompatibility().getOrNull()));
                application.addExecutable(variantIdentity, variantIdentity.isDebuggable() && !variantIdentity.isOptimized(), result.getTargetPlatform(), result.getToolChain(), result.getPlatformToolProvider());
            }
        });
        // Configure the binaries
        application.getBinaries().realizeNow();
    });
}
Also used : ImmutableAttributesFactory(org.gradle.api.internal.attributes.ImmutableAttributesFactory) NativeComponentFactory(org.gradle.language.internal.NativeComponentFactory) SwiftApplication(org.gradle.language.swift.SwiftApplication) SwiftPlatform(org.gradle.language.swift.SwiftPlatform) Project(org.gradle.api.Project) Dimensions(org.gradle.language.nativeplatform.internal.Dimensions) ToolChainSelector(org.gradle.language.nativeplatform.internal.toolchains.ToolChainSelector) Dimensions.tryToBuildOnHost(org.gradle.language.nativeplatform.internal.Dimensions.tryToBuildOnHost) GUtil(org.gradle.util.internal.GUtil) Inject(javax.inject.Inject) ProviderFactory(org.gradle.api.provider.ProviderFactory) SwiftExecutable(org.gradle.language.swift.SwiftExecutable) DefaultNativePlatform(org.gradle.nativeplatform.platform.internal.DefaultNativePlatform) ObjectFactory(org.gradle.api.model.ObjectFactory) Architectures(org.gradle.nativeplatform.platform.internal.Architectures) TargetMachineFactory(org.gradle.nativeplatform.TargetMachineFactory) DefaultSwiftPlatform(org.gradle.language.swift.internal.DefaultSwiftPlatform) DefaultSwiftApplication(org.gradle.language.swift.internal.DefaultSwiftApplication) Plugin(org.gradle.api.Plugin) DefaultSwiftPlatform(org.gradle.language.swift.internal.DefaultSwiftPlatform) ObjectFactory(org.gradle.api.model.ObjectFactory) SwiftExecutable(org.gradle.language.swift.SwiftExecutable) DefaultSwiftApplication(org.gradle.language.swift.internal.DefaultSwiftApplication) ProviderFactory(org.gradle.api.provider.ProviderFactory) ToolChainSelector(org.gradle.language.nativeplatform.internal.toolchains.ToolChainSelector) SwiftPlatform(org.gradle.language.swift.SwiftPlatform) DefaultSwiftPlatform(org.gradle.language.swift.internal.DefaultSwiftPlatform)

Example 5 with SwiftPlatform

use of org.gradle.language.swift.SwiftPlatform in project gradle by gradle.

the class SwiftLibraryPlugin method apply.

@Override
public void apply(final Project project) {
    project.getPluginManager().apply(SwiftBasePlugin.class);
    final ConfigurationContainer configurations = project.getConfigurations();
    final ObjectFactory objectFactory = project.getObjects();
    final ProviderFactory providers = project.getProviders();
    final DefaultSwiftLibrary library = componentFactory.newInstance(SwiftLibrary.class, DefaultSwiftLibrary.class, "main");
    project.getExtensions().add(SwiftLibrary.class, "library", library);
    project.getComponents().add(library);
    // Setup component
    final Property<String> module = library.getModule();
    module.set(GUtil.toCamelCase(project.getName()));
    library.getTargetMachines().convention(useHostAsDefaultTargetMachine(targetMachineFactory));
    library.getDevelopmentBinary().convention(project.provider(new Callable<SwiftBinary>() {

        @Override
        public SwiftBinary call() throws Exception {
            return getDebugSharedHostStream().findFirst().orElse(getDebugStaticHostStream().findFirst().orElse(getDebugSharedStream().findFirst().orElse(getDebugStaticStream().findFirst().orElse(null))));
        }

        private Stream<SwiftBinary> getDebugStream() {
            return library.getBinaries().get().stream().filter(binary -> !binary.isOptimized());
        }

        private Stream<SwiftBinary> getDebugSharedStream() {
            return getDebugStream().filter(SwiftSharedLibrary.class::isInstance);
        }

        private Stream<SwiftBinary> getDebugSharedHostStream() {
            return getDebugSharedStream().filter(binary -> Architectures.forInput(binary.getTargetMachine().getArchitecture().getName()).equals(DefaultNativePlatform.host().getArchitecture()));
        }

        private Stream<SwiftBinary> getDebugStaticStream() {
            return getDebugStream().filter(SwiftStaticLibrary.class::isInstance);
        }

        private Stream<SwiftBinary> getDebugStaticHostStream() {
            return getDebugStaticStream().filter(binary -> Architectures.forInput(binary.getTargetMachine().getArchitecture().getName()).equals(DefaultNativePlatform.host().getArchitecture()));
        }
    }));
    project.afterEvaluate(p -> {
        // TODO: make build type configurable for components
        Dimensions.libraryVariants(library.getModule(), library.getLinkage(), library.getTargetMachines(), objectFactory, attributesFactory, providers.provider(() -> project.getGroup().toString()), providers.provider(() -> project.getVersion().toString()), variantIdentity -> {
            if (tryToBuildOnHost(variantIdentity)) {
                library.getSourceCompatibility().finalizeValue();
                ToolChainSelector.Result<SwiftPlatform> result = toolChainSelector.select(SwiftPlatform.class, new DefaultSwiftPlatform(variantIdentity.getTargetMachine(), library.getSourceCompatibility().getOrNull()));
                if (variantIdentity.getLinkage().equals(Linkage.SHARED)) {
                    library.addSharedLibrary(variantIdentity, variantIdentity.isDebuggable() && !variantIdentity.isOptimized(), result.getTargetPlatform(), result.getToolChain(), result.getPlatformToolProvider());
                } else {
                    library.addStaticLibrary(variantIdentity, variantIdentity.isDebuggable() && !variantIdentity.isOptimized(), result.getTargetPlatform(), result.getToolChain(), result.getPlatformToolProvider());
                }
            }
        });
        library.getBinaries().whenElementKnown(SwiftSharedLibrary.class, sharedLibrary -> {
            Names names = ((ComponentWithNames) sharedLibrary).getNames();
            Configuration apiElements = configurations.create(names.withSuffix("SwiftApiElements"));
            // TODO This should actually extend from the api dependencies, but since Swift currently
            // requires all dependencies to be treated like api dependencies (with transitivity) we just
            // use the implementation dependencies here.  See https://bugs.swift.org/browse/SR-1393.
            apiElements.extendsFrom(((DefaultSwiftSharedLibrary) sharedLibrary).getImplementationDependencies());
            apiElements.setCanBeResolved(false);
            apiElements.getAttributes().attribute(Usage.USAGE_ATTRIBUTE, objectFactory.named(Usage.class, Usage.SWIFT_API));
            apiElements.getAttributes().attribute(LINKAGE_ATTRIBUTE, Linkage.SHARED);
            apiElements.getAttributes().attribute(DEBUGGABLE_ATTRIBUTE, sharedLibrary.isDebuggable());
            apiElements.getAttributes().attribute(OPTIMIZED_ATTRIBUTE, sharedLibrary.isOptimized());
            apiElements.getAttributes().attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, sharedLibrary.getTargetMachine().getOperatingSystemFamily());
            apiElements.getOutgoing().artifact(sharedLibrary.getModuleFile());
        });
        library.getBinaries().whenElementKnown(SwiftStaticLibrary.class, staticLibrary -> {
            Names names = ((ComponentWithNames) staticLibrary).getNames();
            Configuration apiElements = configurations.create(names.withSuffix("SwiftApiElements"));
            // TODO This should actually extend from the api dependencies, but since Swift currently
            // requires all dependencies to be treated like api dependencies (with transitivity) we just
            // use the implementation dependencies here.  See https://bugs.swift.org/browse/SR-1393.
            apiElements.extendsFrom(((DefaultSwiftStaticLibrary) staticLibrary).getImplementationDependencies());
            apiElements.setCanBeResolved(false);
            apiElements.getAttributes().attribute(Usage.USAGE_ATTRIBUTE, objectFactory.named(Usage.class, Usage.SWIFT_API));
            apiElements.getAttributes().attribute(LINKAGE_ATTRIBUTE, Linkage.STATIC);
            apiElements.getAttributes().attribute(DEBUGGABLE_ATTRIBUTE, staticLibrary.isDebuggable());
            apiElements.getAttributes().attribute(OPTIMIZED_ATTRIBUTE, staticLibrary.isOptimized());
            apiElements.getAttributes().attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, staticLibrary.getTargetMachine().getOperatingSystemFamily());
            apiElements.getOutgoing().artifact(staticLibrary.getModuleFile());
        });
        library.getBinaries().realizeNow();
    });
}
Also used : Usage(org.gradle.api.attributes.Usage) DefaultSwiftPlatform(org.gradle.language.swift.internal.DefaultSwiftPlatform) Configuration(org.gradle.api.artifacts.Configuration) DefaultSwiftLibrary(org.gradle.language.swift.internal.DefaultSwiftLibrary) SwiftStaticLibrary(org.gradle.language.swift.SwiftStaticLibrary) DefaultSwiftStaticLibrary(org.gradle.language.swift.internal.DefaultSwiftStaticLibrary) ComponentWithNames(org.gradle.language.nativeplatform.internal.ComponentWithNames) Callable(java.util.concurrent.Callable) ComponentWithNames(org.gradle.language.nativeplatform.internal.ComponentWithNames) Names(org.gradle.language.nativeplatform.internal.Names) ObjectFactory(org.gradle.api.model.ObjectFactory) SwiftBinary(org.gradle.language.swift.SwiftBinary) ConfigurationContainer(org.gradle.api.artifacts.ConfigurationContainer) ProviderFactory(org.gradle.api.provider.ProviderFactory) SwiftSharedLibrary(org.gradle.language.swift.SwiftSharedLibrary) DefaultSwiftSharedLibrary(org.gradle.language.swift.internal.DefaultSwiftSharedLibrary) ToolChainSelector(org.gradle.language.nativeplatform.internal.toolchains.ToolChainSelector) SwiftPlatform(org.gradle.language.swift.SwiftPlatform) DefaultSwiftPlatform(org.gradle.language.swift.internal.DefaultSwiftPlatform)

Aggregations

SwiftPlatform (org.gradle.language.swift.SwiftPlatform)6 Project (org.gradle.api.Project)4 ObjectFactory (org.gradle.api.model.ObjectFactory)4 DefaultSwiftPlatform (org.gradle.language.swift.internal.DefaultSwiftPlatform)4 Callable (java.util.concurrent.Callable)3 Usage (org.gradle.api.attributes.Usage)3 Provider (org.gradle.api.provider.Provider)3 ProviderFactory (org.gradle.api.provider.ProviderFactory)3 Names (org.gradle.language.nativeplatform.internal.Names)3 ToolChainSelector (org.gradle.language.nativeplatform.internal.toolchains.ToolChainSelector)3 DefaultNativePlatform (org.gradle.nativeplatform.platform.internal.DefaultNativePlatform)3 Inject (javax.inject.Inject)2 Action (org.gradle.api.Action)2 Plugin (org.gradle.api.Plugin)2 Configuration (org.gradle.api.artifacts.Configuration)2 ConfigurationContainer (org.gradle.api.artifacts.ConfigurationContainer)2 AttributeContainer (org.gradle.api.attributes.AttributeContainer)2 ImmutableAttributesFactory (org.gradle.api.internal.attributes.ImmutableAttributesFactory)2 DefaultUsageContext (org.gradle.language.cpp.internal.DefaultUsageContext)2 NativeVariantIdentity (org.gradle.language.cpp.internal.NativeVariantIdentity)2