Skip to content

Commit

Permalink
Naming and documentation cleanup left over from a recent CL.
Browse files Browse the repository at this point in the history
As discussed in [].

--
MOS_MIGRATED_REVID=86708361
  • Loading branch information
aragos authored and hanwen committed Feb 19, 2015
1 parent 5dcdbf9 commit 48746df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public static void setup(ConfiguredRuleClassProvider.Builder builder) {
builder.addRuleDefinition(ObjcRuleClasses.AlwaysLinkRule.class);
builder.addRuleDefinition(ObjcRuleClasses.OptionsRule.class);
builder.addRuleDefinition(ObjcRuleClasses.SdkFrameworksDependerRule.class);
builder.addRuleDefinition(ObjcRuleClasses.CompileInputRule.class);
builder.addRuleDefinition(ObjcRuleClasses.CompileDependencyRule.class);
builder.addRuleDefinition(ObjcRuleClasses.ResourceToolsRule.class);
builder.addRuleDefinition(IosApplicationRule.class);
builder.addRuleDefinition(IosExtensionBinaryRule.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import com.google.devtools.build.lib.analysis.BlazeRule;
import com.google.devtools.build.lib.analysis.RuleDefinition;
import com.google.devtools.build.lib.analysis.RuleDefinitionEnvironment;
import com.google.devtools.build.lib.packages.ImplicitOutputsFunction;
import com.google.devtools.build.lib.packages.RuleClass;
import com.google.devtools.build.lib.packages.RuleClass.Builder;

Expand All @@ -42,7 +41,7 @@ public RuleClass build(Builder builder, RuleDefinitionEnvironment env) {
can be used to develop or build on a Mac.</li>
</ul>
<!-- #END_BLAZE_RULE.IMPLICIT_OUTPUTS -->*/
.setImplicitOutputsFunction(ImplicitOutputsFunction.fromFunctions(XcodeSupport.PBXPROJ))
.setImplicitOutputsFunction(XcodeSupport.PBXPROJ)
.build();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,26 +390,27 @@ public RuleClass build(Builder builder, RuleDefinitionEnvironment env) {
}

/**
* Common attributes for {@code objc_*} rules that contain linkable content.
* Common attributes for {@code objc_*} rules that can be input to compilation (i.e. can be
* dependencies of other compiling rules).
*/
@BlazeRule(name = "$objc_compile_input_rule",
@BlazeRule(name = "$objc_compile_dependency_rule",
type = RuleClassType.ABSTRACT,
ancestors = {
ResourcesRule.class,
SdkFrameworksDependerRule.class })
public static class CompileInputRule implements RuleDefinition {
public static class CompileDependencyRule implements RuleDefinition {
@Override
public RuleClass build(Builder builder, RuleDefinitionEnvironment env) {
return builder
/* <!-- #BLAZE_RULE($objc_compile_input_rule).ATTRIBUTE(hdrs) -->
/* <!-- #BLAZE_RULE($objc_compile_dependency_rule).ATTRIBUTE(hdrs) -->
The list of Objective-C files that are included as headers by source
files in this rule or by users of this library.
${SYNOPSIS}
<!-- #END_BLAZE_RULE.ATTRIBUTE -->*/
.add(attr("hdrs", LABEL_LIST)
.direct_compile_time_input()
.allowedFileTypes(FileTypeSet.ANY_FILE))
/* <!-- #BLAZE_RULE($objc_compile_input_rule).ATTRIBUTE(includes) -->
/* <!-- #BLAZE_RULE($objc_compile_dependency_rule).ATTRIBUTE(includes) -->
List of <code>#include/#import</code> search paths to add to this target
and all depending targets.
${SYNOPSIS}
Expand All @@ -424,7 +425,7 @@ genfiles and bin roots (e.g. <code>blaze-genfiles/pkg/includedir</code>
actual client root.
<!-- #END_BLAZE_RULE.ATTRIBUTE -->*/
.add(attr("includes", Type.STRING_LIST))
/* <!-- #BLAZE_RULE($objc_compile_input_rule).ATTRIBUTE(sdk_includes) -->
/* <!-- #BLAZE_RULE($objc_compile_dependency_rule).ATTRIBUTE(sdk_includes) -->
List of <code>#include/#import</code> search paths to add to this target
and all depending targets, where each path is relative to
<code>$(SDKROOT)/usr/include</code>.
Expand All @@ -441,7 +442,7 @@ genfiles and bin roots (e.g. <code>blaze-genfiles/pkg/includedir</code>
@BlazeRule(name = "$objc_compiling_rule",
type = RuleClassType.ABSTRACT,
ancestors = {
CompileInputRule.class,
CompileDependencyRule.class,
OptionsRule.class,
CoptsRule.class })
public static class CompilingRule implements RuleDefinition {
Expand Down Expand Up @@ -531,7 +532,7 @@ passed not only the compiler for this target (as <code>copts</code>
*/
@BlazeRule(name = "$objc_alwayslink_rule",
type = RuleClassType.ABSTRACT,
ancestors = { ObjcRuleClasses.CompileInputRule.class, })
ancestors = { CompileDependencyRule.class, })
public static class AlwaysLinkRule implements RuleDefinition {
@Override
public RuleClass build(Builder builder, RuleDefinitionEnvironment env) {
Expand Down

0 comments on commit 48746df

Please sign in to comment.