Index: ios/web/test/BUILD.gn |
diff --git a/ios/web/test/BUILD.gn b/ios/web/test/BUILD.gn |
index e87674672101ffec29e22b0571147761d97e384e..1e71c3a357fecaf07be84251c9474693758451aa 100644 |
--- a/ios/web/test/BUILD.gn |
+++ b/ios/web/test/BUILD.gn |
@@ -3,9 +3,37 @@ |
# found in the LICENSE file. |
import("//mojo/public/tools/bindings/mojom.gni") |
+import("//tools/grit/grit_rule.gni") |
+import("//tools/grit/repack.gni") |
mojom("mojo_bindings") { |
sources = [ |
"mojo_test.mojom", |
] |
} |
+ |
+repack("repacked_resources") { |
sdefresne
2016/05/26 17:45:19
Rename the target "packed_resources" as it is the
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
Done except I could not add testonly because of th
sdefresne
2016/05/28 13:04:01
Ack, this is because the "repack" template did not
|
+ sources = [ |
sdefresne
2016/05/26 17:45:19
testonly = true
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
This gives me an error:
ERROR at //ios/web/test/B
|
+ "$root_gen_dir/ios/web/ios_web_resources.pak", |
+ "$root_gen_dir/ios/web/test/test_resources.pak", |
+ ] |
+ deps = [ |
+ ":resources", |
+ "//ios/web:resources", |
+ ] |
+ output = "$target_gen_dir/ios/web/test/resources.pak" |
sdefresne
2016/05/26 17:45:19
See my previous comment about target_gen_dir, this
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
Done.
|
+} |
+ |
+grit("resources") { |
+ source = "test_resources.grd" |
sdefresne
2016/05/26 17:45:19
testonly = true
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
Gives me same error:
ERROR at //ios/web/test/BUILD
|
+ use_qualified_include = true |
+ outputs = [ |
+ "grit/test_resources.h", |
+ "test_resources.pak", |
+ ] |
+ grit_flags = [ |
+ "-E", |
+ "root_out_dir=" + rebase_path(root_out_dir, root_build_dir), |
sdefresne
2016/05/26 17:45:19
This should be "root_gen_dir=".
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
Done.
|
+ ] |
+ output_dir = "$root_gen_dir/ios/web/test" |
+} |