Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / dom_distiller / core / BUILD.gn
blobf460d8cc6889fce6092d43eee8f107199c7ea65f
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 # GYP version: components/dom_distiller.gypi:dom_distiller_core
6 static_library("core") {
7   sources = [
8     "../android/component_jni_registrar.cc",
9     "../android/component_jni_registrar.h",
10     "article_distillation_update.cc",
11     "article_distillation_update.h",
12     "article_entry.cc",
13     "article_entry.h",
14     "distilled_content_store.cc",
15     "distilled_content_store.h",
16     "distiller.cc",
17     "distiller.h",
18     "distiller_page.cc",
19     "distiller_page.h",
20     "distilled_page_prefs.cc",
21     "distilled_page_prefs.h",
22     "distilled_page_prefs_android.cc",
23     "distilled_page_prefs_android.h",
24     "distiller_url_fetcher.cc",
25     "distiller_url_fetcher.h",
26     "dom_distiller_constants.cc",
27     "dom_distiller_constants.h",
28     "dom_distiller_model.cc",
29     "dom_distiller_model.h",
30     "dom_distiller_observer.h",
31     "dom_distiller_service.cc",
32     "dom_distiller_service.h",
33     "dom_distiller_store.cc",
34     "dom_distiller_store.h",
35     "feedback_reporter.cc",
36     "feedback_reporter.h",
37     "task_tracker.cc",
38     "task_tracker.h",
39     "url_constants.cc",
40     "url_constants.h",
41     "url_utils_android.cc",
42     "url_utils_android.h",
43     "url_utils.cc",
44     "url_utils.h",
45     "viewer.cc",
46     "viewer.h",
47   ]
49   deps = [
50     "//base",
51     "//components/dom_distiller/core/proto",
52     "//components/leveldb_proto",
53     "//components/resources",
54     "//components/strings",
55     "//net",
56     "//skia",
57     "//sync",
58     "//third_party/dom_distiller_js/package/proto",
59     "//ui/base",
60     "//url",
61   ]
63   forward_dependent_configs_from = [
64     "//components/dom_distiller/core/proto",
65     "//third_party/dom_distiller_js/package/proto",
66   ]
68   if (is_android) {
69     #deps += [ ":dom_distiller_core_jni_headers" ]  TODO(GYP)
70   }
73 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support
74 static_library("test_support") {
75   sources = [
76     "dom_distiller_test_util.cc",
77     "dom_distiller_test_util.h",
78     "fake_distiller.cc",
79     "fake_distiller.h",
80     "fake_distiller_page.cc",
81     "fake_distiller_page.h",
82   ]
84   deps = [
85     ":core",
86     "//components/leveldb_proto:test_support",
87     "//sync",
88     "//testing/gmock",
89     "//testing/gtest",
90   ]
93 source_set("unit_tests") {
94   sources = [
95     "article_entry_unittest.cc",
96     "distilled_content_store_unittest.cc",
97     "distilled_page_prefs_unittests.cc",
98     "distiller_unittest.cc",
99     "distiller_url_fetcher_unittest.cc",
100     "dom_distiller_model_unittest.cc",
101     "dom_distiller_service_unittest.cc",
102     "dom_distiller_store_unittest.cc",
103     "task_tracker_unittest.cc",
104     "url_utils_unittest.cc",
105     "viewer_unittest.cc",
106   ]
108   deps = [
109     ":core",
110     ":test_support",
111     "//testing/gmock",
112     "//testing/gtest",
113   ]