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