Index: ios/web/test/BUILD.gn |
diff --git a/ios/web/test/BUILD.gn b/ios/web/test/BUILD.gn |
index e87674672101ffec29e22b0571147761d97e384e..20ddec9df5164a0015f3412754fd7365f23ce09a 100644 |
--- a/ios/web/test/BUILD.gn |
+++ b/ios/web/test/BUILD.gn |
@@ -3,9 +3,43 @@ |
# 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_and_bundle("packed_resources") { |
+ sources = [ |
sdefresne
2016/05/31 18:52:26
Please add testonly as it is now supported:
tes
Eugene But (OOO till 7-30)
2016/05/31 23:20:35
Done.
|
+ "$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/resources.pack" |
sdefresne
2016/05/31 18:52:26
This needs to be (.pak not .pack):
output = "$tar
Eugene But (OOO till 7-30)
2016/05/31 23:20:35
Done.
|
+ bundle_output = "{{bundle_resources_dir}}/{{source_file_part}}" |
+} |
+ |
+grit("resources") { |
+ source = "test_resources.grd" |
+ use_qualified_include = true |
+ inputs = [ |
+ "${root_gen_dir}/ios/web/test/mojo_test.mojom.js", |
+ ] |
+ deps = [ |
+ ":mojo_bindings", |
+ ] |
+ outputs = [ |
+ "grit/test_resources.h", |
+ "test_resources.pak", |
+ ] |
+ grit_flags = [ |
+ "-E", |
+ "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), |
+ ] |
+} |