OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/android/rules.gni") | 7 import("//build/config/android/rules.gni") |
8 } | 8 } |
9 | 9 |
10 import("//blimp/client/core/config.gni") | 10 import("//blimp/client/core/config.gni") |
11 | 11 |
12 # This target is here to let //chrome depend on //blimp/client/public | 12 # This target is here to let //chrome depend on //blimp/client/public |
13 # and automatically get the correct implementation of //blimp/client/core | 13 # and automatically get the correct implementation of //blimp/client/core |
14 # depending on whether enable_blimp_client is set or not. | 14 # depending on whether enable_blimp_client is set or not. |
15 group("core_shim") { | 15 group("core_shim") { |
16 visibility = [ "//blimp/client/public" ] | 16 visibility = [ "//blimp/client/public" ] |
17 | 17 |
18 if (enable_blimp_client) { | 18 if (enable_blimp_client) { |
19 deps = [ | 19 deps = [ |
20 ":core", | 20 ":core", |
21 ] | 21 ] |
22 } else { | 22 } else { |
23 deps = [ | 23 deps = [ |
24 ":dummy_core", | 24 ":dummy_core", |
25 ] | 25 ] |
26 } | 26 } |
27 } | 27 } |
28 | 28 |
29 group("core") { | 29 group("core") { |
30 visibility = [ "//blimp/client/*" ] | 30 visibility = [ |
| 31 "//blimp/client/*", |
| 32 "//blimp/test/*", |
| 33 ] |
31 | 34 |
32 deps = [ | 35 deps = [ |
33 ":context", | 36 ":context", |
34 ":switches", | 37 ":switches", |
35 "//blimp/client/core/compositor", | 38 "//blimp/client/core/compositor", |
36 "//blimp/client/core/contents", | 39 "//blimp/client/core/contents", |
| 40 "//blimp/client/core/input", |
| 41 "//blimp/client/core/render_widget", |
37 "//blimp/client/core/session", | 42 "//blimp/client/core/session", |
38 ] | 43 ] |
39 } | 44 } |
40 | 45 |
41 source_set("dummy_core") { | 46 source_set("dummy_core") { |
42 visibility = [ ":*" ] | 47 visibility = [ ":*" ] |
43 | 48 |
44 sources = [ | 49 sources = [ |
45 "dummy_blimp_client_context.cc", | 50 "dummy_blimp_client_context.cc", |
46 "dummy_blimp_client_context.h", | 51 "dummy_blimp_client_context.h", |
(...skipping 20 matching lines...) Expand all Loading... |
67 testonly = true | 72 testonly = true |
68 | 73 |
69 sources = [ | 74 sources = [ |
70 "blimp_client_context_impl_unittest.cc", | 75 "blimp_client_context_impl_unittest.cc", |
71 ] | 76 ] |
72 | 77 |
73 deps = [ | 78 deps = [ |
74 ":context", | 79 ":context", |
75 "//blimp/client/core/compositor:unit_tests", | 80 "//blimp/client/core/compositor:unit_tests", |
76 "//blimp/client/core/contents:unit_tests", | 81 "//blimp/client/core/contents:unit_tests", |
| 82 "//blimp/client/core/render_widget:unit_tests", |
77 "//blimp/client/core/session:unit_tests", | 83 "//blimp/client/core/session:unit_tests", |
78 "//blimp/client/public:public_headers", | 84 "//blimp/client/public:public_headers", |
79 "//blimp/client/test", | 85 "//blimp/client/test", |
80 "//testing/gmock", | 86 "//testing/gmock", |
81 "//testing/gtest", | 87 "//testing/gtest", |
82 ] | 88 ] |
83 } | 89 } |
84 | 90 |
85 source_set("context") { | 91 source_set("context") { |
86 sources = [ | 92 sources = [ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 ":core_java", | 140 ":core_java", |
135 ] | 141 ] |
136 } else { | 142 } else { |
137 deps = [ | 143 deps = [ |
138 ":dummy_core_java", | 144 ":dummy_core_java", |
139 ] | 145 ] |
140 } | 146 } |
141 } | 147 } |
142 | 148 |
143 java_group("core_java") { | 149 java_group("core_java") { |
144 visibility = [ "//blimp/client/*" ] | 150 visibility = [ |
| 151 "//blimp/client/*", |
| 152 "//blimp/test/*", |
| 153 ] |
145 | 154 |
146 deps = [ | 155 deps = [ |
147 ":context_java", | 156 ":context_java", |
148 ":settings_java", | 157 ":settings_java", |
149 ":switches_java", | 158 ":switches_java", |
150 "//blimp/client/core/contents:contents_java", | 159 "//blimp/client/core/contents:contents_java", |
151 ] | 160 ] |
152 } | 161 } |
153 | 162 |
154 android_library("dummy_core_java") { | 163 android_library("dummy_core_java") { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 generate_jni("dummy_core_jni_headers") { | 222 generate_jni("dummy_core_jni_headers") { |
214 visibility = [ ":*" ] | 223 visibility = [ ":*" ] |
215 | 224 |
216 sources = [ | 225 sources = [ |
217 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", | 226 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", |
218 ] | 227 ] |
219 | 228 |
220 jni_package = "blimp/client/core" | 229 jni_package = "blimp/client/core" |
221 } | 230 } |
222 } | 231 } |
OLD | NEW |