| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 assert(!is_ios) | 5 assert(!is_ios) |
| 6 | 6 |
| 7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 8 | 8 |
| 9 # GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings | 9 # GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings |
| 10 mojom("mojo_bindings") { | 10 mojom("mojo_bindings") { |
| 11 sources = [ | 11 sources = [ |
| 12 "common/distiller_javascript_service.mojom", | 12 "common/distiller_javascript_service.mojom", |
| 13 "common/distiller_page_notifier_service.mojom", | 13 "common/distiller_page_notifier_service.mojom", |
| 14 ] | 14 ] |
| 15 } | 15 } |
| 16 | 16 |
| 17 # GYP version: components/dom_distiller.gypi:dom_distiller_content_common |
| 18 static_library("content_common") { |
| 19 sources = [ |
| 20 "common/distiller_messages.cc", |
| 21 "common/distiller_messages.h", |
| 22 ] |
| 23 |
| 24 deps = [ |
| 25 "//base", |
| 26 "//content/public/common", |
| 27 "//ipc", |
| 28 "//url", |
| 29 ] |
| 30 } |
| 31 |
| 17 # GYP version: components/dom_distiller.gypi:dom_distiller_content_browser | 32 # GYP version: components/dom_distiller.gypi:dom_distiller_content_browser |
| 18 static_library("content_browser") { | 33 static_library("content_browser") { |
| 19 sources = [ | 34 sources = [ |
| 35 "browser/distillability_driver.cc", |
| 36 "browser/distillability_driver.h", |
| 20 "browser/distillable_page_utils.cc", | 37 "browser/distillable_page_utils.cc", |
| 21 "browser/distillable_page_utils.h", | 38 "browser/distillable_page_utils.h", |
| 22 "browser/distiller_javascript_service_impl.cc", | 39 "browser/distiller_javascript_service_impl.cc", |
| 23 "browser/distiller_javascript_service_impl.h", | 40 "browser/distiller_javascript_service_impl.h", |
| 24 "browser/distiller_javascript_utils.cc", | 41 "browser/distiller_javascript_utils.cc", |
| 25 "browser/distiller_javascript_utils.h", | 42 "browser/distiller_javascript_utils.h", |
| 26 "browser/distiller_page_web_contents.cc", | 43 "browser/distiller_page_web_contents.cc", |
| 27 "browser/distiller_page_web_contents.h", | 44 "browser/distiller_page_web_contents.h", |
| 28 "browser/dom_distiller_viewer_source.cc", | 45 "browser/dom_distiller_viewer_source.cc", |
| 29 "browser/dom_distiller_viewer_source.h", | 46 "browser/dom_distiller_viewer_source.h", |
| 30 "browser/external_feedback_reporter.h", | 47 "browser/external_feedback_reporter.h", |
| 31 "browser/web_contents_main_frame_observer.cc", | 48 "browser/web_contents_main_frame_observer.cc", |
| 32 "browser/web_contents_main_frame_observer.h", | 49 "browser/web_contents_main_frame_observer.h", |
| 33 ] | 50 ] |
| 34 | 51 |
| 35 public_deps = [ | 52 public_deps = [ |
| 36 "//components/dom_distiller/core", | 53 "//components/dom_distiller/core", |
| 37 "//content/public/browser", | 54 "//content/public/browser", |
| 38 ] | 55 ] |
| 39 deps = [ | 56 deps = [ |
| 57 ":content_common", |
| 40 ":mojo_bindings", | 58 ":mojo_bindings", |
| 41 "//base", | 59 "//base", |
| 42 "//components/resources", | 60 "//components/resources", |
| 43 "//components/strings", | 61 "//components/strings", |
| 44 "//content/public/browser", | 62 "//content/public/browser", |
| 45 "//mojo/environment:chromium", | 63 "//mojo/environment:chromium", |
| 46 "//net", | 64 "//net", |
| 47 "//skia", | 65 "//skia", |
| 48 "//sync", | 66 "//sync", |
| 49 "//third_party/mojo/src/mojo/public/cpp/bindings", | 67 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 50 "//third_party/WebKit/public:blink_headers", | 68 "//third_party/WebKit/public:blink_headers", |
| 51 "//ui/gfx", | 69 "//ui/gfx", |
| 52 "//url", | 70 "//url", |
| 53 ] | 71 ] |
| 54 | 72 |
| 55 if (is_android) { | 73 if (is_android) { |
| 56 sources += [ | 74 sources += [ |
| 57 "browser/distillable_page_utils_android.cc", | 75 "browser/distillable_page_utils_android.cc", |
| 58 "browser/distillable_page_utils_android.h", | 76 "browser/distillable_page_utils_android.h", |
| 59 ] | 77 ] |
| 60 deps += [ ":jni_headers" ] | 78 deps += [ ":jni_headers" ] |
| 61 } | 79 } |
| 62 } | 80 } |
| 63 | 81 |
| 64 # GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer | 82 # GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer |
| 65 static_library("content_renderer") { | 83 static_library("content_renderer") { |
| 66 sources = [ | 84 sources = [ |
| 85 "renderer/distillability_agent.cc", |
| 86 "renderer/distillability_agent.h", |
| 67 "renderer/distiller_js_render_frame_observer.cc", | 87 "renderer/distiller_js_render_frame_observer.cc", |
| 68 "renderer/distiller_js_render_frame_observer.h", | 88 "renderer/distiller_js_render_frame_observer.h", |
| 69 "renderer/distiller_native_javascript.cc", | 89 "renderer/distiller_native_javascript.cc", |
| 70 "renderer/distiller_native_javascript.h", | 90 "renderer/distiller_native_javascript.h", |
| 71 "renderer/distiller_page_notifier_service_impl.cc", | 91 "renderer/distiller_page_notifier_service_impl.cc", |
| 72 "renderer/distiller_page_notifier_service_impl.h", | 92 "renderer/distiller_page_notifier_service_impl.h", |
| 73 ] | 93 ] |
| 74 | 94 |
| 95 public_deps = [ |
| 96 "//components/dom_distiller/core/proto", |
| 97 ] |
| 75 deps = [ | 98 deps = [ |
| 99 ":content_common", |
| 76 ":mojo_bindings", | 100 ":mojo_bindings", |
| 77 "//base", | 101 "//base", |
| 78 "//gin", | 102 "//gin", |
| 79 "//mojo/environment:chromium", | 103 "//mojo/environment:chromium", |
| 104 "//skia", |
| 80 "//third_party/mojo/src/mojo/public/cpp/bindings", | 105 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 81 "//third_party/WebKit/public:blink_headers", | 106 "//third_party/WebKit/public:blink_headers", |
| 82 "//v8", | 107 "//v8", |
| 83 ] | 108 ] |
| 84 } | 109 } |
| 85 | 110 |
| 86 if (is_android) { | 111 if (is_android) { |
| 87 import("//build/config/android/rules.gni") | 112 import("//build/config/android/rules.gni") |
| 88 | 113 |
| 89 generate_jni("jni_headers") { | 114 generate_jni("jni_headers") { |
| 90 sources = [ | 115 sources = [ |
| 91 "../android/java/src/org/chromium/components/dom_distiller/content/Distill
ablePageUtils.java", | 116 "../android/java/src/org/chromium/components/dom_distiller/content/Distill
ablePageUtils.java", |
| 92 ] | 117 ] |
| 93 jni_package = "dom_distiller_content" | 118 jni_package = "dom_distiller_content" |
| 94 } | 119 } |
| 95 } | 120 } |
| 96 | 121 |
| 97 source_set("unit_tests") { | 122 source_set("unit_tests") { |
| 98 testonly = true | 123 testonly = true |
| 99 sources = [ | 124 sources = [ |
| 100 "browser/dom_distiller_viewer_source_unittest.cc", | 125 "browser/dom_distiller_viewer_source_unittest.cc", |
| 101 "browser/web_contents_main_frame_observer_unittest.cc", | 126 "browser/web_contents_main_frame_observer_unittest.cc", |
| 102 ] | 127 ] |
| 103 deps = [ | 128 deps = [ |
| 104 ":content_browser", | 129 ":content_browser", |
| 105 "//testing/gtest", | 130 "//testing/gtest", |
| 106 ] | 131 ] |
| 107 } | 132 } |
| OLD | NEW |