| 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 if (!is_ios) { |
| 6 # GYP version: components/dom_distiller.gypi:dom_distiller_content |
| 7 static_library("content_browser") { |
| 8 sources = [ |
| 9 "browser/distillable_page_utils.cc", |
| 10 "browser/distillable_page_utils.h", |
| 11 "browser/distiller_javascript_utils.cc", |
| 12 "browser/distiller_javascript_utils.h", |
| 13 "browser/distiller_page_web_contents.cc", |
| 14 "browser/distiller_page_web_contents.h", |
| 15 "browser/dom_distiller_viewer_source.cc", |
| 16 "browser/dom_distiller_viewer_source.h", |
| 17 "browser/external_feedback_reporter.h", |
| 18 "browser/web_contents_main_frame_observer.cc", |
| 19 "browser/web_contents_main_frame_observer.h", |
| 20 ] |
| 6 | 21 |
| 7 # GYP version: components/dom_distiller.gypi:dom_distiller_content | 22 public_deps = [ |
| 8 source_set("content_browser") { | 23 "//components/dom_distiller/core", |
| 9 sources = [ | 24 ] |
| 10 "browser/distillable_page_utils.cc", | 25 deps = [ |
| 11 "browser/distillable_page_utils.h", | 26 "//base", |
| 12 "browser/distiller_javascript_utils.cc", | 27 "//components/resources", |
| 13 "browser/distiller_javascript_utils.h", | 28 "//components/strings", |
| 14 "browser/distiller_page_web_contents.cc", | 29 "//content/public/browser", |
| 15 "browser/distiller_page_web_contents.h", | 30 "//net", |
| 16 "browser/dom_distiller_viewer_source.cc", | 31 "//skia", |
| 17 "browser/dom_distiller_viewer_source.h", | 32 "//sync", |
| 18 "browser/external_feedback_reporter.h", | 33 "//ui/gfx", |
| 19 "browser/web_contents_main_frame_observer.cc", | 34 "//url", |
| 20 "browser/web_contents_main_frame_observer.h", | 35 ] |
| 21 ] | |
| 22 | 36 |
| 23 public_deps = [ | 37 if (is_android) { |
| 24 "//components/dom_distiller/core", | 38 sources += [ |
| 25 "//content/public/browser", | 39 "browser/distillable_page_utils_android.cc", |
| 26 ] | 40 "browser/distillable_page_utils_android.h", |
| 27 deps = [ | 41 ] |
| 28 "//base", | 42 deps += [ ":jni_headers" ] |
| 29 "//components/resources", | 43 } |
| 30 "//components/strings", | 44 } |
| 31 "//net", | |
| 32 "//skia", | |
| 33 "//sync", | |
| 34 "//ui/gfx", | |
| 35 "//url", | |
| 36 ] | |
| 37 | 45 |
| 38 if (is_android) { | 46 if (is_android) { |
| 39 sources += [ | 47 import("//build/config/android/rules.gni") |
| 40 "browser/distillable_page_utils_android.cc", | 48 |
| 41 "browser/distillable_page_utils_android.h", | 49 generate_jni("jni_headers") { |
| 42 ] | 50 sources = [ |
| 43 deps += [ ":jni_headers" ] | 51 "../android/java/src/org/chromium/components/dom_distiller/content/Disti
llablePageUtils.java", |
| 52 ] |
| 53 jni_package = "dom_distiller_content" |
| 54 } |
| 44 } | 55 } |
| 45 } | 56 } |
| 46 | |
| 47 if (is_android) { | |
| 48 import("//build/config/android/rules.gni") | |
| 49 | |
| 50 generate_jni("jni_headers") { | |
| 51 sources = [ | |
| 52 "../android/java/src/org/chromium/components/dom_distiller/content/Distill
ablePageUtils.java", | |
| 53 ] | |
| 54 jni_package = "dom_distiller_content" | |
| 55 } | |
| 56 } | |
| 57 | |
| 58 source_set("unit_tests") { | |
| 59 testonly = true | |
| 60 sources = [ | |
| 61 "browser/dom_distiller_viewer_source_unittest.cc", | |
| 62 "browser/web_contents_main_frame_observer_unittest.cc", | |
| 63 ] | |
| 64 deps = [ | |
| 65 ":content_browser", | |
| 66 "//testing/gtest", | |
| 67 ] | |
| 68 } | |
| OLD | NEW |