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