OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 if (is_android) { | |
6 import("//build/config/android/config.gni") | |
7 import("//build/config/android/rules.gni") | |
8 } | |
9 | |
10 source_set("context") { | |
11 visibility = [ | |
12 ":unit_tests", | |
13 "//blimp/client/core", | |
14 "//blimp/client/core/integration_tests", | |
15 ] | |
16 | |
17 sources = [ | |
18 "assignment_fetcher.cc", | |
19 "assignment_fetcher.h", | |
20 "blimp_client_context_impl.cc", | |
21 "blimp_client_context_impl.h", | |
22 ] | |
23 | |
24 public_deps = [ | |
25 "//base", | |
26 "//blimp/client/core/compositor:compositor", | |
27 "//blimp/client/core/contents", | |
28 "//blimp/client/core/session", | |
29 "//blimp/client/public:public_headers", | |
30 "//device/geolocation", | |
31 "//url", | |
32 ] | |
33 | |
34 deps = [ | |
35 "//blimp/client/core/feedback", | |
36 "//blimp/client/core/geolocation", | |
37 "//blimp/client/core/settings", | |
38 "//blimp/client/core/switches", | |
39 "//components/prefs:prefs", | |
40 ] | |
41 | |
42 if (is_android) { | |
43 sources += [ | |
44 "android/blimp_client_context_impl_android.cc", | |
45 "android/blimp_client_context_impl_android.h", | |
46 "android/blimp_jni_registrar.cc", | |
47 ] | |
48 | |
49 deps += [ | |
50 ":context_jni_headers", | |
51 "//blimp/client/core/settings", | |
52 "//ui/android", | |
53 ] | |
54 } | |
55 } | |
56 | |
57 source_set("dummy") { | |
58 visibility = [ "//blimp/client/core:dummy_core" ] | |
59 | |
60 sources = [ | |
61 "dummy_blimp_client_context.cc", | |
62 "dummy_blimp_client_context.h", | |
63 ] | |
64 | |
65 deps = [ | |
66 "//base", | |
67 "//blimp/client/public:public_headers", | |
68 "//url", | |
69 ] | |
70 | |
71 if (is_android) { | |
72 sources += [ | |
73 "android/dummy_blimp_client_context_android.cc", | |
74 "android/dummy_blimp_client_context_android.h", | |
75 "android/dummy_blimp_jni_registrar.cc", | |
76 ] | |
77 | |
78 deps += [ ":dummy_context_jni_headers" ] | |
79 } | |
80 } | |
81 | |
82 source_set("unit_tests") { | |
83 visibility = [ "//blimp/client/core:unit_tests" ] | |
84 | |
85 testonly = true | |
86 | |
87 sources = [ | |
88 "blimp_client_context_impl_unittest.cc", | |
89 ] | |
90 | |
91 deps = [ | |
92 ":context", | |
93 "//blimp/client/core/settings", | |
94 "//blimp/client/public:public_headers", | |
95 "//blimp/client/test", | |
96 "//components/prefs:test_support", | |
97 "//testing/gtest", | |
98 ] | |
99 } | |
100 | |
101 if (is_android) { | |
102 android_library("context_java") { | |
103 visibility = [ "//blimp/client/core/*" ] | |
104 | |
105 java_files = [ "android/java/src/org/chromium/blimp/core/BlimpClientContextI
mpl.java" ] | |
106 | |
107 deps = [ | |
108 "//base:base_java", | |
109 "//blimp/client/core/common:common_java", | |
110 "//blimp/client/core/contents:contents_java", | |
111 "//blimp/client/core/feedback:feedback_java", | |
112 "//blimp/client/core/settings:settings_java", | |
113 "//blimp/client/core/switches:switches_java", | |
114 "//blimp/client/public:public_headers_java", | |
115 "//ui/android:ui_java", | |
116 ] | |
117 } | |
118 | |
119 android_library("dummy_context_java") { | |
120 visibility = [ "//blimp/client/core/*" ] | |
121 | |
122 java_files = [ "android/java/src/org/chromium/blimp/core/DummyBlimpClientCon
text.java" ] | |
123 | |
124 deps = [ | |
125 "//base:base_java", | |
126 "//blimp/client/public:public_headers_java", | |
127 "//ui/android:ui_java", | |
128 ] | |
129 } | |
130 | |
131 generate_jni("context_jni_headers") { | |
132 visibility = [ ":*" ] | |
133 | |
134 sources = [ | |
135 "android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java", | |
136 ] | |
137 | |
138 jni_package = "blimp/client/core" | |
139 } | |
140 | |
141 generate_jni("dummy_context_jni_headers") { | |
142 visibility = [ ":*" ] | |
143 | |
144 sources = [ | |
145 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", | |
146 ] | |
147 | |
148 jni_package = "blimp/client/core" | |
149 } | |
150 } | |
OLD | NEW |