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 static_library("core") { | 6 static_library("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_distillation_update.cc", | 10 "article_distillation_update.cc", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 "//ui/base", | 59 "//ui/base", |
60 "//url", | 60 "//url", |
61 ] | 61 ] |
62 | 62 |
63 forward_dependent_configs_from = [ | 63 forward_dependent_configs_from = [ |
64 "//components/dom_distiller/core/proto", | 64 "//components/dom_distiller/core/proto", |
65 "//third_party/dom_distiller_js:proto", | 65 "//third_party/dom_distiller_js:proto", |
66 ] | 66 ] |
67 | 67 |
68 if (is_android) { | 68 if (is_android) { |
69 #deps += [ ":dom_distiller_core_jni_headers" ] TODO(GYP) | 69 deps += [ ":jni_headers" ] |
70 } | 70 } |
71 } | 71 } |
72 | 72 |
73 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support | 73 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support |
74 static_library("test_support") { | 74 static_library("test_support") { |
75 testonly = true | 75 testonly = true |
76 sources = [ | 76 sources = [ |
77 "dom_distiller_test_util.cc", | 77 "dom_distiller_test_util.cc", |
78 "dom_distiller_test_util.h", | 78 "dom_distiller_test_util.h", |
79 "fake_distiller.cc", | 79 "fake_distiller.cc", |
(...skipping 27 matching lines...) Expand all Loading... |
107 "viewer_unittest.cc", | 107 "viewer_unittest.cc", |
108 ] | 108 ] |
109 | 109 |
110 deps = [ | 110 deps = [ |
111 ":core", | 111 ":core", |
112 ":test_support", | 112 ":test_support", |
113 "//testing/gmock", | 113 "//testing/gmock", |
114 "//testing/gtest", | 114 "//testing/gtest", |
115 ] | 115 ] |
116 } | 116 } |
| 117 |
| 118 if (is_android) { |
| 119 import("//build/config/android/rules.gni") |
| 120 |
| 121 generate_jni("jni_headers") { |
| 122 sources = [ |
| 123 "../android/java/src/org/chromium/components/dom_distiller/core/DistilledP
agePrefs.java", |
| 124 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erService.java", |
| 125 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erUrlUtils.java", |
| 126 ] |
| 127 jni_package = "dom_distiller_core" |
| 128 } |
| 129 } |
OLD | NEW |