Stack sampling profiler: add fire-and-forget interface
[chromium-blink-merge.git] / components / dom_distiller / content / BUILD.gn
blob9ba3899d8fc524ed08fff4e6f1bb322a23a82e52
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_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     ]
22     public_deps = [
23       "//components/dom_distiller/core",
24     ]
25     deps = [
26       "//base",
27       "//components/resources",
28       "//components/strings",
29       "//content/public/browser",
30       "//net",
31       "//skia",
32       "//sync",
33       "//ui/gfx",
34       "//url",
35     ]
37     if (is_android) {
38       sources += [
39         "browser/distillable_page_utils_android.cc",
40         "browser/distillable_page_utils_android.h",
41       ]
42       deps += [ ":jni_headers" ]
43     }
44   }
46   if (is_android) {
47     import("//build/config/android/rules.gni")
49     generate_jni("jni_headers") {
50       sources = [
51         "../android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java",
52       ]
53       jni_package = "dom_distiller_content"
54     }
55   }