| 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 # GYP version: components/dom_distiller.gypi:dom_distiller_content | 7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 8 source_set("content_browser") { | 8 |
| 9 # GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings |
| 10 mojom("mojo_bindings") { |
| 11 sources = [ |
| 12 "common/distiller_javascript_service.mojom", |
| 13 "common/distiller_page_notifier_service.mojom", |
| 14 ] |
| 15 } |
| 16 |
| 17 # GYP version: components/dom_distiller.gypi:dom_distiller_content_browser |
| 18 static_library("content_browser") { |
| 9 sources = [ | 19 sources = [ |
| 10 "browser/distillable_page_utils.cc", | 20 "browser/distillable_page_utils.cc", |
| 11 "browser/distillable_page_utils.h", | 21 "browser/distillable_page_utils.h", |
| 22 "browser/distiller_javascript_service_impl.cc", |
| 23 "browser/distiller_javascript_service_impl.h", |
| 12 "browser/distiller_javascript_utils.cc", | 24 "browser/distiller_javascript_utils.cc", |
| 13 "browser/distiller_javascript_utils.h", | 25 "browser/distiller_javascript_utils.h", |
| 14 "browser/distiller_page_web_contents.cc", | 26 "browser/distiller_page_web_contents.cc", |
| 15 "browser/distiller_page_web_contents.h", | 27 "browser/distiller_page_web_contents.h", |
| 16 "browser/dom_distiller_viewer_source.cc", | 28 "browser/dom_distiller_viewer_source.cc", |
| 17 "browser/dom_distiller_viewer_source.h", | 29 "browser/dom_distiller_viewer_source.h", |
| 18 "browser/external_feedback_reporter.h", | 30 "browser/external_feedback_reporter.h", |
| 19 "browser/web_contents_main_frame_observer.cc", | 31 "browser/web_contents_main_frame_observer.cc", |
| 20 "browser/web_contents_main_frame_observer.h", | 32 "browser/web_contents_main_frame_observer.h", |
| 21 ] | 33 ] |
| 22 | 34 |
| 23 public_deps = [ | 35 public_deps = [ |
| 24 "//components/dom_distiller/core", | 36 "//components/dom_distiller/core", |
| 25 "//content/public/browser", | 37 "//content/public/browser", |
| 26 ] | 38 ] |
| 27 deps = [ | 39 deps = [ |
| 40 ":mojo_bindings", |
| 28 "//base", | 41 "//base", |
| 29 "//components/resources", | 42 "//components/resources", |
| 30 "//components/strings", | 43 "//components/strings", |
| 44 "//content/public/browser", |
| 45 "//mojo/environment:chromium", |
| 31 "//net", | 46 "//net", |
| 32 "//skia", | 47 "//skia", |
| 33 "//sync", | 48 "//sync", |
| 49 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 50 "//third_party/WebKit/public:blink_headers", |
| 34 "//ui/gfx", | 51 "//ui/gfx", |
| 35 "//url", | 52 "//url", |
| 36 ] | 53 ] |
| 37 | 54 |
| 38 if (is_android) { | 55 if (is_android) { |
| 39 sources += [ | 56 sources += [ |
| 40 "browser/distillable_page_utils_android.cc", | 57 "browser/distillable_page_utils_android.cc", |
| 41 "browser/distillable_page_utils_android.h", | 58 "browser/distillable_page_utils_android.h", |
| 42 ] | 59 ] |
| 43 deps += [ ":jni_headers" ] | 60 deps += [ ":jni_headers" ] |
| 44 } | 61 } |
| 45 } | 62 } |
| 46 | 63 |
| 64 # GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer |
| 65 static_library("content_renderer") { |
| 66 sources = [ |
| 67 "renderer/distiller_js_render_frame_observer.cc", |
| 68 "renderer/distiller_js_render_frame_observer.h", |
| 69 "renderer/distiller_native_javascript.cc", |
| 70 "renderer/distiller_native_javascript.h", |
| 71 "renderer/distiller_page_notifier_service_impl.cc", |
| 72 "renderer/distiller_page_notifier_service_impl.h", |
| 73 ] |
| 74 |
| 75 deps = [ |
| 76 ":mojo_bindings", |
| 77 "//base", |
| 78 "//gin", |
| 79 "//mojo/environment:chromium", |
| 80 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 81 "//third_party/WebKit/public:blink_headers", |
| 82 "//v8", |
| 83 ] |
| 84 } |
| 85 |
| 47 if (is_android) { | 86 if (is_android) { |
| 48 import("//build/config/android/rules.gni") | 87 import("//build/config/android/rules.gni") |
| 49 | 88 |
| 50 generate_jni("jni_headers") { | 89 generate_jni("jni_headers") { |
| 51 sources = [ | 90 sources = [ |
| 52 "../android/java/src/org/chromium/components/dom_distiller/content/Distill
ablePageUtils.java", | 91 "../android/java/src/org/chromium/components/dom_distiller/content/Distill
ablePageUtils.java", |
| 53 ] | 92 ] |
| 54 jni_package = "dom_distiller_content" | 93 jni_package = "dom_distiller_content" |
| 55 } | 94 } |
| 56 } | 95 } |
| 57 | 96 |
| 58 source_set("unit_tests") { | 97 source_set("unit_tests") { |
| 59 testonly = true | 98 testonly = true |
| 60 sources = [ | 99 sources = [ |
| 61 "browser/dom_distiller_viewer_source_unittest.cc", | 100 "browser/dom_distiller_viewer_source_unittest.cc", |
| 62 "browser/web_contents_main_frame_observer_unittest.cc", | 101 "browser/web_contents_main_frame_observer_unittest.cc", |
| 63 ] | 102 ] |
| 64 deps = [ | 103 deps = [ |
| 65 ":content_browser", | 104 ":content_browser", |
| 66 "//testing/gtest", | 105 "//testing/gtest", |
| 67 ] | 106 ] |
| 68 } | 107 } |
| OLD | NEW |