Search in sources :

Example 6 with Platform

use of com.google.devtools.build.lib.rules.apple.Platform in project bazel by bazelbuild.

the class CompilationSupport method commonFrameworkNames.

/** Returns a list of frameworks for clang actions. */
static Iterable<String> commonFrameworkNames(ObjcProvider provider, AppleConfiguration appleConfiguration) {
    Platform platform = appleConfiguration.getSingleArchPlatform();
    ImmutableList.Builder<String> frameworkNames = new ImmutableList.Builder<String>().add(AppleToolchain.sdkFrameworkDir(platform, appleConfiguration));
    if (platform.getType() == PlatformType.IOS) {
        // As of sdk8.1, XCTest is in a base Framework dir
        frameworkNames.add(AppleToolchain.platformDeveloperFrameworkDir(appleConfiguration));
    }
    return frameworkNames.addAll(PathFragment.safePathStrings(uniqueParentDirectories(provider.get(STATIC_FRAMEWORK_DIR)))).addAll(PathFragment.safePathStrings(uniqueParentDirectories(provider.get(DYNAMIC_FRAMEWORK_DIR)))).addAll(PathFragment.safePathStrings(uniqueParentDirectories(provider.get(FRAMEWORK_SEARCH_PATH_ONLY)))).build();
}
Also used : Platform(com.google.devtools.build.lib.rules.apple.Platform) ImmutableList(com.google.common.collect.ImmutableList)

Aggregations

Platform (com.google.devtools.build.lib.rules.apple.Platform)6 AppleConfiguration (com.google.devtools.build.lib.rules.apple.AppleConfiguration)4 Artifact (com.google.devtools.build.lib.actions.Artifact)3 NestedSetBuilder (com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder)3 ImmutableList (com.google.common.collect.ImmutableList)2 HashMultiset (com.google.common.collect.HashMultiset)1 Multiset (com.google.common.collect.Multiset)1 TreeFileArtifact (com.google.devtools.build.lib.actions.Artifact.TreeFileArtifact)1 RuleConfiguredTargetBuilder (com.google.devtools.build.lib.analysis.RuleConfiguredTargetBuilder)1 TransitiveInfoCollection (com.google.devtools.build.lib.analysis.TransitiveInfoCollection)1 CustomCommandLine (com.google.devtools.build.lib.analysis.actions.CustomCommandLine)1 BuildConfiguration (com.google.devtools.build.lib.analysis.config.BuildConfiguration)1 DottedVersion (com.google.devtools.build.lib.rules.apple.DottedVersion)1 PlatformType (com.google.devtools.build.lib.rules.apple.Platform.PlatformType)1