Don't preload rarely seen large images
[chromium-blink-merge.git] / components / dom_distiller / content / BUILD.gn
blob4db3257dffc6f2d115e2fd7f4523bf4070aac763
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 if (!is_ios) {
6   # GYP version: components/dom_distiller.gypi:dom_distiller_content
7   static_library("content") {
8     sources = [
9       "distillable_page_utils.cc",
10       "distillable_page_utils.h",
11       "distiller_javascript_utils.cc",
12       "distiller_javascript_utils.h",
13       "distiller_page_web_contents.cc",
14       "distiller_page_web_contents.h",
15       "dom_distiller_viewer_source.cc",
16       "dom_distiller_viewer_source.h",
17       "web_contents_main_frame_observer.cc",
18       "web_contents_main_frame_observer.h",
19     ]
21     public_deps = [
22       "//components/dom_distiller/core",
23     ]
24     deps = [
25       "//base",
26       "//components/resources",
27       "//components/strings",
28       "//content/public/browser",
29       "//net",
30       "//skia",
31       "//sync",
32       "//ui/gfx",
33       "//url",
34     ]
36     if (is_android) {
37       sources += [
38         "distillable_page_utils_android.cc",
39         "distillable_page_utils_android.h",
40       ]
41       deps += [ ":jni_headers" ]
42     }
43   }
45   if (is_android) {
46     import("//build/config/android/rules.gni")
48     generate_jni("jni_headers") {
49       sources = [
50         "../android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java",
51       ]
52       jni_package = "dom_distiller_content"
53     }
54   }