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

Unified Diff: mojo/services/html_viewer/BUILD.gn

Issue 827223002: [mojo] Make HTML viewer load the blink resources from the generated pak file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding new blink_resource_constants.h file Created 5 years, 11 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
« no previous file with comments | « no previous file | mojo/services/html_viewer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/BUILD.gn
diff --git a/mojo/services/html_viewer/BUILD.gn b/mojo/services/html_viewer/BUILD.gn
index 444ee076f2b81e2fc2268129e25fbfa47bede0de..7537cafc310feac9b9c8b00438ac8b536d3f080f 100644
--- a/mojo/services/html_viewer/BUILD.gn
+++ b/mojo/services/html_viewer/BUILD.gn
@@ -5,8 +5,29 @@
import("//mojo/public/mojo.gni")
import("//mojo/public/mojo_application.gni")
+action("generate_blink_resource_map") {
+ script = "//mojo/services/html_viewer/generate_blink_resource_map.py"
+ args = [
+ "--pak-file",
+ rebase_path("$root_out_dir/gen/blink/public/resources/blink_resources.pak"),
+ "--header",
+ rebase_path("$target_gen_dir/blink_resource_map.h"),
+ "--cpp",
+ rebase_path("$target_gen_dir/blink_resource_map.cc"),
+ ]
+ outputs = [
+ "$target_gen_dir/blink_resource_map.cc",
+ "$target_gen_dir/blink_resource_map.h",
+ ]
+ public_deps = [
+ "//third_party/WebKit/public:resources",
+ ]
+}
+
source_set("lib") {
sources = [
+ "$target_gen_dir/blink_resource_map.cc",
+ "$target_gen_dir/blink_resource_map.h",
"ax_provider_impl.cc",
"ax_provider_impl.h",
"blink_basic_type_converters.cc",
@@ -15,6 +36,7 @@ source_set("lib") {
"blink_input_events_type_converters.h",
"blink_platform_impl.cc",
"blink_platform_impl.h",
+ "blink_resource_constants.h",
"blink_url_request_type_converters.cc",
"blink_url_request_type_converters.h",
"html_document.cc",
@@ -81,6 +103,7 @@ source_set("lib") {
public_deps = [
"//mojo/public/cpp/bindings",
"//third_party/WebKit/public:blink",
+ ":generate_blink_resource_map",
]
}
« no previous file with comments | « no previous file | mojo/services/html_viewer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698