aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2015-10-30 21:33:31 +0000
committerGravatar Florian Weikert <fwe@google.com>2015-11-02 16:55:01 +0000
commite45a363cf7c2abfdf1dd67cfb7ed0a54d1ed52c2 (patch)
treef90b47a4605608ef007a7b5569745dea272a0005 /src/main/java
parent43bc404c4983a902964573ab13b44a6bde7920b3 (diff)
Pass StdRedirect.dylib to ios_runner.sh.mac_template. So that we could use "xcrun simctl" instead of iossim to launch the app when we invoke "blaze run".
The next CL is to use it in ios_runner.sh.mac_template after new bazle is released. -- MOS_MIGRATED_REVID=106725049
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/objc/ReleaseBundlingSupport.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/ReleaseBundlingSupport.java b/src/main/java/com/google/devtools/build/lib/rules/objc/ReleaseBundlingSupport.java
index 09dd16ea81..f11ec3f30b 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/objc/ReleaseBundlingSupport.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/objc/ReleaseBundlingSupport.java
@@ -430,7 +430,9 @@ public final class ReleaseBundlingSupport {
Substitution.of("%ipa_file%", ipaInput.getRootRelativePath().getPathString()),
Substitution.of("%sim_device%", escapedSimDevice),
Substitution.of("%sdk_version%", escapedSdkVersion),
- Substitution.of("%iossim%", attributes.iossim().getRootRelativePath().getPathString()));
+ Substitution.of("%iossim%", attributes.iossim().getRootRelativePath().getPathString()),
+ Substitution.of("%std_redirect_dylib_path%",
+ attributes.stdRedirectDylib().getRootRelativePath().getPathString()));
ruleContext.registerAction(
new TemplateExpansionAction(ruleContext.getActionOwner(), attributes.runnerScriptTemplate(),
@@ -866,6 +868,10 @@ public final class ReleaseBundlingSupport {
return checkNotNull(ruleContext.getPrerequisiteArtifact("$iossim", Mode.HOST));
}
+ Artifact stdRedirectDylib() {
+ return checkNotNull(ruleContext.getPrerequisiteArtifact("$std_redirect_dylib", Mode.HOST));
+ }
+
Artifact runnerScriptTemplate() {
return checkNotNull(
ruleContext.getPrerequisiteArtifact("$runner_script_template", Mode.HOST));