aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar cparsons <cparsons@google.com>2017-06-23 23:03:59 +0200
committerGravatar Marcel Hlopko <hlopko@google.com>2017-06-26 18:34:44 +0200
commit43a8a9d8085a61662e4201b6b59b0b14b3bf07a3 (patch)
tree6b68641e4a137e718e2259662f38d4c35385cdc0 /src/main/java/com
parent280a671dba6cdcf3ca8c7a01b21e81d719471de0 (diff)
Remove last traces of experimental_obj_library
RELNOTES: None. PiperOrigin-RevId: 159990790
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java1
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryRule.java2
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java14
3 files changed, 4 insertions, 13 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
index 153840be6e..d1d335aa9f 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
@@ -147,7 +147,6 @@ public class BazelCppRuleClasses {
"cc_inc_library",
"cc_library",
"objc_library",
- "experimental_objc_library",
"cc_proto_library",
};
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryRule.java b/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryRule.java
index c837f1964c..cff1acd722 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryRule.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStaticLibraryRule.java
@@ -82,7 +82,7 @@ public class AppleStaticLibraryRule implements RuleDefinition {
.add(
attr(AVOID_DEPS_ATTR_NAME, LABEL_LIST)
.direct_compile_time_input()
- .allowedRuleClasses(ObjcRuleClasses.CompilingRule.ALLOWED_DEPS_RULE_CLASSES)
+ .allowedRuleClasses(ObjcRuleClasses.CompilingRule.ALLOWED_CC_DEPS_RULE_CLASSES)
.mandatoryNativeProviders(
ImmutableList.<Class<? extends TransitiveInfoProvider>>of(ObjcProvider.class))
.cfg(splitTransitionProvider)
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java
index 4fcf2d01ad..eef0a42b8c 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java
@@ -26,7 +26,6 @@ import static com.google.devtools.build.lib.syntax.Type.STRING_LIST;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
import com.google.devtools.build.lib.actions.Artifact;
import com.google.devtools.build.lib.actions.ExecutionRequirements;
import com.google.devtools.build.lib.analysis.BaseRuleClasses;
@@ -623,20 +622,13 @@ public class ObjcRuleClasses {
* Common attributes for {@code objc_*} rules that contain compilable content.
*/
public static class CompilingRule implements RuleDefinition {
-
+
/**
* Rule class names for cc rules which are allowed as targets of the 'deps' attribute of this
* rule.
*/
static final ImmutableSet<String> ALLOWED_CC_DEPS_RULE_CLASSES =
ImmutableSet.of("cc_library", "cc_inc_library");
- /**
- * Rule class names which are allowed as targets of the 'deps' attribute of this rule.
- */
- static final Iterable<String> ALLOWED_DEPS_RULE_CLASSES =
- Iterables.<String>concat(
- ALLOWED_CC_DEPS_RULE_CLASSES,
- ImmutableList.of("experimental_objc_library"));
@Override
public RuleClass build(Builder builder, RuleDefinitionEnvironment env) {
@@ -680,7 +672,7 @@ public class ObjcRuleClasses {
.override(
attr("deps", LABEL_LIST)
.direct_compile_time_input()
- .allowedRuleClasses(ALLOWED_DEPS_RULE_CLASSES)
+ .allowedRuleClasses(ALLOWED_CC_DEPS_RULE_CLASSES)
.mandatoryNativeProviders(
ImmutableList.<Class<? extends TransitiveInfoProvider>>of(ObjcProvider.class))
.allowedFileTypes())
@@ -704,7 +696,7 @@ public class ObjcRuleClasses {
.add(
attr("non_propagated_deps", LABEL_LIST)
.direct_compile_time_input()
- .allowedRuleClasses(ALLOWED_DEPS_RULE_CLASSES)
+ .allowedRuleClasses(ALLOWED_CC_DEPS_RULE_CLASSES)
.mandatoryNativeProviders(
ImmutableList.<Class<? extends TransitiveInfoProvider>>of(ObjcProvider.class))
.allowedFileTypes())