| Index: components/dom_distiller/content/BUILD.gn
|
| diff --git a/components/dom_distiller/content/BUILD.gn b/components/dom_distiller/content/BUILD.gn
|
| index 9ba3899d8fc524ed08fff4e6f1bb322a23a82e52..155f08fc84dc7791572092e73056b801a6cbb140 100644
|
| --- a/components/dom_distiller/content/BUILD.gn
|
| +++ b/components/dom_distiller/content/BUILD.gn
|
| @@ -2,12 +2,24 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
|
| +
|
| if (!is_ios) {
|
| - # GYP version: components/dom_distiller.gypi:dom_distiller_content
|
| + # GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings
|
| + mojom("mojo_bindings") {
|
| + sources = [
|
| + "common/distiller_javascript_service.mojom",
|
| + "common/distiller_page_notifier_service.mojom",
|
| + ]
|
| + }
|
| +
|
| + # GYP version: components/dom_distiller.gypi:dom_distiller_content_browser
|
| static_library("content_browser") {
|
| sources = [
|
| "browser/distillable_page_utils.cc",
|
| "browser/distillable_page_utils.h",
|
| + "browser/distiller_javascript_service_impl.cc",
|
| + "browser/distiller_javascript_service_impl.h",
|
| "browser/distiller_javascript_utils.cc",
|
| "browser/distiller_javascript_utils.h",
|
| "browser/distiller_page_web_contents.cc",
|
| @@ -23,13 +35,17 @@ if (!is_ios) {
|
| "//components/dom_distiller/core",
|
| ]
|
| deps = [
|
| + ":mojo_bindings",
|
| "//base",
|
| "//components/resources",
|
| "//components/strings",
|
| "//content/public/browser",
|
| + "//mojo/environment:chromium",
|
| "//net",
|
| "//skia",
|
| "//sync",
|
| + "//third_party/mojo/src/mojo/public/cpp/bindings",
|
| + "//third_party/WebKit/public:blink_headers",
|
| "//ui/gfx",
|
| "//url",
|
| ]
|
| @@ -43,6 +59,27 @@ if (!is_ios) {
|
| }
|
| }
|
|
|
| + # GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer
|
| + static_library("content_renderer") {
|
| + sources = [
|
| + "renderer/distiller_js_render_frame_observer.cc",
|
| + "renderer/distiller_js_render_frame_observer.h",
|
| + "renderer/distiller_native_javascript.cc",
|
| + "renderer/distiller_native_javascript.h",
|
| + "renderer/distiller_page_notifier_service_impl.cc",
|
| + "renderer/distiller_page_notifier_service_impl.h",
|
| + ]
|
| +
|
| + deps = [
|
| + ":mojo_bindings",
|
| + "//base",
|
| + "//content/public/browser",
|
| + "//mojo/environment:chromium",
|
| + "//third_party/mojo/src/mojo/public/cpp/bindings",
|
| + "//third_party/WebKit/public:blink_headers",
|
| + ]
|
| + }
|
| +
|
| if (is_android) {
|
| import("//build/config/android/rules.gni")
|
|
|
|
|