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 declare_args() { | 10 declare_args() { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 deps = [ | 105 deps = [ |
106 ":core", | 106 ":core", |
107 "//base", | 107 "//base", |
108 "//blimp/client/public:public_headers", | 108 "//blimp/client/public:public_headers", |
109 "//blimp/client/test", | 109 "//blimp/client/test", |
110 "//testing/gtest", | 110 "//testing/gtest", |
111 "//url", | 111 "//url", |
112 ] | 112 ] |
113 } | 113 } |
114 | 114 |
| 115 source_set("switches") { |
| 116 visibility = [ |
| 117 "//blimp/client/*", |
| 118 "//blimp/engine:browser_tests", |
| 119 ] |
| 120 |
| 121 sources = [ |
| 122 "blimp_client_switches.cc", |
| 123 "blimp_client_switches.h", |
| 124 ] |
| 125 } |
| 126 |
115 if (is_android) { | 127 if (is_android) { |
116 # This target is here to let //chrome depend on | 128 # This target is here to let //chrome depend on |
117 # //blimp/client/public:public_java and automatically get the correct | 129 # //blimp/client/public:public_java and automatically get the correct |
118 # implementation of //blimp/client/core depending on whether enable_blimp is | 130 # implementation of //blimp/client/core depending on whether enable_blimp is |
119 # set or not. | 131 # set or not. |
120 java_group("core_shim_java") { | 132 java_group("core_shim_java") { |
121 visibility = [ "//blimp/client/public/*" ] | 133 visibility = [ "//blimp/client/public/*" ] |
122 | 134 |
123 if (enable_blimp) { | 135 if (enable_blimp) { |
124 deps = [ | 136 deps = [ |
125 ":core_java", | 137 ":core_java", |
126 ] | 138 ] |
127 } else { | 139 } else { |
128 deps = [ | 140 deps = [ |
129 ":dummy_core_java", | 141 ":dummy_core_java", |
130 ] | 142 ] |
131 } | 143 } |
132 } | 144 } |
133 | 145 |
134 android_library("core_java") { | 146 android_library("core_java") { |
135 visibility = [ "//blimp/client/*" ] | 147 visibility = [ "//blimp/client/*" ] |
136 | 148 |
137 java_files = [ | 149 java_files = [ |
138 "android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java", | 150 "android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java", |
| 151 "android/java/src/org/chromium/blimp/core/BlimpClientSwitches.java", |
139 "android/java/src/org/chromium/blimp/core/BlimpContentsFactory.java", | 152 "android/java/src/org/chromium/blimp/core/BlimpContentsFactory.java", |
140 "android/java/src/org/chromium/blimp/core/BlimpContentsImpl.java", | 153 "android/java/src/org/chromium/blimp/core/BlimpContentsImpl.java", |
141 "android/java/src/org/chromium/blimp/core/BlimpContentsObserverProxy.java"
, | 154 "android/java/src/org/chromium/blimp/core/BlimpContentsObserverProxy.java"
, |
142 "android/java/src/org/chromium/blimp/core/BlimpNavigationControllerImpl.ja
va", | 155 "android/java/src/org/chromium/blimp/core/BlimpNavigationControllerImpl.ja
va", |
143 ] | 156 ] |
144 | 157 |
145 deps = [ | 158 deps = [ |
146 "//base:base_java", | 159 "//base:base_java", |
147 "//blimp/client/public:public_headers_java", | 160 "//blimp/client/public:public_headers_java", |
148 ] | 161 ] |
(...skipping 27 matching lines...) Expand all Loading... |
176 generate_jni("dummy_core_jni_headers") { | 189 generate_jni("dummy_core_jni_headers") { |
177 visibility = [ ":*" ] | 190 visibility = [ ":*" ] |
178 | 191 |
179 sources = [ | 192 sources = [ |
180 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", | 193 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", |
181 ] | 194 ] |
182 | 195 |
183 jni_package = "blimp/client/core" | 196 jni_package = "blimp/client/core" |
184 } | 197 } |
185 } | 198 } |
OLD | NEW |