| 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 # GYP version: components/dom_distiller.gypi:dom_distiller_core | 5 # GYP version: components/dom_distiller.gypi:dom_distiller_core |
| 6 source_set("core") { | 6 source_set("core") { |
| 7 sources = [ | 7 sources = [ |
| 8 "../android/component_jni_registrar.cc", | 8 "../android/component_jni_registrar.cc", |
| 9 "../android/component_jni_registrar.h", | 9 "../android/component_jni_registrar.h", |
| 10 "article_attachments_data.cc", | 10 "article_attachments_data.cc", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 "viewer.cc", | 47 "viewer.cc", |
| 48 "viewer.h", | 48 "viewer.h", |
| 49 ] | 49 ] |
| 50 | 50 |
| 51 public_deps = [ | 51 public_deps = [ |
| 52 "//components/dom_distiller/core/proto", | 52 "//components/dom_distiller/core/proto", |
| 53 "//third_party/dom_distiller_js:proto", | 53 "//third_party/dom_distiller_js:proto", |
| 54 ] | 54 ] |
| 55 deps = [ | 55 deps = [ |
| 56 "//base", | 56 "//base", |
| 57 "//base:prefs", |
| 57 "//components/leveldb_proto", | 58 "//components/leveldb_proto", |
| 59 "//components/pref_registry", |
| 58 "//components/resources", | 60 "//components/resources", |
| 59 "//components/strings", | 61 "//components/strings", |
| 60 "//net", | 62 "//net", |
| 61 "//skia", | 63 "//skia", |
| 62 "//sync", | 64 "//sync", |
| 63 "//ui/base", | 65 "//ui/base", |
| 64 "//url", | 66 "//url", |
| 65 ] | 67 ] |
| 66 | 68 |
| 67 if (is_android) { | 69 if (is_android) { |
| 68 sources += [ | 70 sources += [ |
| 69 "dom_distiller_service_android.cc", | 71 "dom_distiller_service_android.cc", |
| 70 "dom_distiller_service_android.h", | 72 "dom_distiller_service_android.h", |
| 71 ] | 73 ] |
| 72 deps += [ ":jni_headers" ] | 74 deps += [ ":jni_headers" ] |
| 73 } | 75 } |
| 74 } | 76 } |
| 75 | 77 |
| 76 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support | 78 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support |
| 77 static_library("test_support") { | 79 source_set("test_support") { |
| 78 testonly = true | 80 testonly = true |
| 79 sources = [ | 81 sources = [ |
| 80 "dom_distiller_test_util.cc", | 82 "dom_distiller_test_util.cc", |
| 81 "dom_distiller_test_util.h", | 83 "dom_distiller_test_util.h", |
| 82 "fake_distiller.cc", | 84 "fake_distiller.cc", |
| 83 "fake_distiller.h", | 85 "fake_distiller.h", |
| 84 "fake_distiller_page.cc", | 86 "fake_distiller_page.cc", |
| 85 "fake_distiller_page.h", | 87 "fake_distiller_page.h", |
| 86 ] | 88 ] |
| 87 | 89 |
| 88 deps = [ | 90 deps = [ |
| 89 ":core", | 91 ":core", |
| 92 "//base", |
| 90 "//components/leveldb_proto:test_support", | 93 "//components/leveldb_proto:test_support", |
| 91 "//sync", | 94 "//sync", |
| 92 "//testing/gmock", | 95 "//testing/gmock", |
| 93 "//testing/gtest", | 96 "//testing/gtest", |
| 97 "//url", |
| 94 ] | 98 ] |
| 95 } | 99 } |
| 96 | 100 |
| 97 source_set("unit_tests") { | 101 source_set("unit_tests") { |
| 98 testonly = true | 102 testonly = true |
| 99 sources = [ | 103 sources = [ |
| 100 "article_entry_unittest.cc", | 104 "article_entry_unittest.cc", |
| 101 "distilled_content_store_unittest.cc", | 105 "distilled_content_store_unittest.cc", |
| 102 "distilled_page_prefs_unittests.cc", | 106 "distilled_page_prefs_unittests.cc", |
| 103 "distiller_unittest.cc", | 107 "distiller_unittest.cc", |
| 104 "distiller_url_fetcher_unittest.cc", | 108 "distiller_url_fetcher_unittest.cc", |
| 105 "dom_distiller_model_unittest.cc", | 109 "dom_distiller_model_unittest.cc", |
| 106 "dom_distiller_service_unittest.cc", | 110 "dom_distiller_service_unittest.cc", |
| 107 "dom_distiller_store_unittest.cc", | 111 "dom_distiller_store_unittest.cc", |
| 108 "task_tracker_unittest.cc", | 112 "task_tracker_unittest.cc", |
| 109 "url_utils_unittest.cc", | 113 "url_utils_unittest.cc", |
| 110 "viewer_unittest.cc", | 114 "viewer_unittest.cc", |
| 111 ] | 115 ] |
| 112 | 116 |
| 113 deps = [ | 117 deps = [ |
| 114 ":core", | 118 ":core", |
| 115 ":test_support", | 119 ":test_support", |
| 120 "//base", |
| 121 "//components/leveldb_proto:test_support", |
| 122 "//components/pref_registry:test_support", |
| 123 "//net:test_support", |
| 124 "//sync", |
| 116 "//testing/gmock", | 125 "//testing/gmock", |
| 117 "//testing/gtest", | 126 "//testing/gtest", |
| 127 "//url", |
| 118 ] | 128 ] |
| 119 } | 129 } |
| 120 | 130 |
| 121 if (is_android) { | 131 if (is_android) { |
| 122 import("//build/config/android/rules.gni") | 132 import("//build/config/android/rules.gni") |
| 123 | 133 |
| 124 generate_jni("jni_headers") { | 134 generate_jni("jni_headers") { |
| 125 sources = [ | 135 sources = [ |
| 126 "../android/java/src/org/chromium/components/dom_distiller/core/DistilledP
agePrefs.java", | 136 "../android/java/src/org/chromium/components/dom_distiller/core/DistilledP
agePrefs.java", |
| 127 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erService.java", | 137 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erService.java", |
| 128 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erUrlUtils.java", | 138 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erUrlUtils.java", |
| 129 ] | 139 ] |
| 130 jni_package = "dom_distiller_core" | 140 jni_package = "dom_distiller_core" |
| 131 } | 141 } |
| 132 } | 142 } |
| OLD | NEW |