Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / dom_distiller / content / BUILD.gn
blob7f018a9f41ef24d045ff441642d1e9cbd4963504
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
3 # found in the LICENSE file.
5 assert(!is_ios)
7 # GYP version: components/dom_distiller.gypi:dom_distiller_content
8 source_set("content_browser") {
9   sources = [
10     "browser/distillable_page_utils.cc",
11     "browser/distillable_page_utils.h",
12     "browser/distiller_javascript_utils.cc",
13     "browser/distiller_javascript_utils.h",
14     "browser/distiller_page_web_contents.cc",
15     "browser/distiller_page_web_contents.h",
16     "browser/dom_distiller_viewer_source.cc",
17     "browser/dom_distiller_viewer_source.h",
18     "browser/external_feedback_reporter.h",
19     "browser/web_contents_main_frame_observer.cc",
20     "browser/web_contents_main_frame_observer.h",
21   ]
23   public_deps = [
24     "//components/dom_distiller/core",
25     "//content/public/browser",
26   ]
27   deps = [
28     "//base",
29     "//components/resources",
30     "//components/strings",
31     "//net",
32     "//skia",
33     "//sync",
34     "//ui/gfx",
35     "//url",
36   ]
38   if (is_android) {
39     sources += [
40       "browser/distillable_page_utils_android.cc",
41       "browser/distillable_page_utils_android.h",
42     ]
43     deps += [ ":jni_headers" ]
44   }
47 if (is_android) {
48   import("//build/config/android/rules.gni")
50   generate_jni("jni_headers") {
51     sources = [
52       "../android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java",
53     ]
54     jni_package = "dom_distiller_content"
55   }
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   ]