Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: ios/web/test/BUILD.gn

Issue 2006273005: [ios Mojo] Integration test for Mojo WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed "data" from ios_web_inttest GN target. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/web/test/BUILD.gn
diff --git a/ios/web/test/BUILD.gn b/ios/web/test/BUILD.gn
index e87674672101ffec29e22b0571147761d97e384e..eb83605f478aad3ea5d682dc6cefb2f6e0e39cd8 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_and_bundle("packed_resources") {
+ sources = [
+ "$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"
+ bundle_output = "{{bundle_resources_dir}}/{{source_file_part}}"
+}
+
+grit("resources") {
+ source = "test_resources.grd"
+ use_qualified_include = true
+ outputs = [
+ "grit/test_resources.h",
+ "test_resources.pak",
+ ]
sdefresne 2016/05/28 13:04:02 Ditto, this needs to list "${root_gen_dir}/ios/web
Eugene But (OOO till 7-30) 2016/05/31 17:26:57 Done.
+ grit_flags = [
+ "-E",
+ "root_gen_dir=" + rebase_path(root_out_dir, root_build_dir),
sdefresne 2016/05/28 13:04:02 Ditto, if you want the grit variable "root_gen_dir
Eugene But (OOO till 7-30) 2016/05/31 17:26:57 Done.
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698