Skip to content

Commit

Permalink
Add cpp-style source processing to experimental_objc_library.
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=119980586
  • Loading branch information
calpeyser authored and damienmg committed Apr 18, 2016
1 parent 84c26bf commit f29f3ea
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.google.devtools.build.lib.rules.cpp.CcLibraryHelper;
import com.google.devtools.build.lib.rules.cpp.CcToolchainFeatures.FeatureConfiguration;
import com.google.devtools.build.lib.rules.cpp.CcToolchainProvider;
import com.google.devtools.build.lib.rules.cpp.PrecompiledFiles;
import com.google.devtools.build.lib.rules.objc.ObjcCommon.CompilationAttributes;

import java.util.Collection;
Expand All @@ -39,6 +40,7 @@ public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedExcept
CompilationArtifacts compilationArtifacts =
CompilationSupport.compilationArtifacts(ruleContext);
CompilationAttributes compilationAttributes = new CompilationAttributes(ruleContext);
PrecompiledFiles precompiledFiles = new PrecompiledFiles(ruleContext);

ObjcCommon common = common(ruleContext, compilationAttributes, compilationArtifacts);

Expand All @@ -62,6 +64,7 @@ public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedExcept
.addSources(privateHdrs)
.enableCompileProviders()
.addPublicHeaders(publicHdrs)
.addPrecompiledFiles(precompiledFiles)
.addDeps(ruleContext.getPrerequisites("deps", Mode.TARGET));

CcLibraryHelper.Info info = helper.build();
Expand Down

0 comments on commit f29f3ea

Please sign in to comment.