Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: chromecast/browser/BUILD.gn

Issue 2483553002: Create cast_shell_lib target for cast_shell and browser tests. (Closed)
Patch Set: fixes android Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromecast/android/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//chromecast/chromecast.gni") 6 import("//chromecast/chromecast.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 testonly = true 160 testonly = true
161 161
162 sources = [ 162 sources = [
163 "test/chromecast_browser_test.cc", 163 "test/chromecast_browser_test.cc",
164 "test/chromecast_browser_test.h", 164 "test/chromecast_browser_test.h",
165 "test/chromecast_browser_test_runner.cc", 165 "test/chromecast_browser_test_runner.cc",
166 ] 166 ]
167 167
168 public_deps = [ 168 public_deps = [
169 ":browser", 169 ":browser",
170 "//chromecast:cast_shell_common", 170 "//chromecast:cast_shell_lib",
171 "//content/test:test_support", 171 "//content/test:test_support",
172 ] 172 ]
173 173
174 deps = [ 174 deps = [
175 "//base", 175 "//base",
176 "//chromecast/app", 176 "//chromecast/app",
177 "//chromecast/base", 177 "//chromecast/base",
178 "//content/public/browser", 178 "//content/public/browser",
179 "//content/public/common", 179 "//content/public/common",
180 "//testing/gtest", 180 "//testing/gtest",
(...skipping 13 matching lines...) Expand all
194 194
195 deps = [ 195 deps = [
196 ":browser", 196 ":browser",
197 "//base", 197 "//base",
198 "//chromecast/app", 198 "//chromecast/app",
199 "//chromecast/base", 199 "//chromecast/base",
200 "//content/test:test_support", 200 "//content/test:test_support",
201 "//mojo/edk/system", 201 "//mojo/edk/system",
202 "//testing/gtest", 202 "//testing/gtest",
203 ] 203 ]
204
205 if (chromecast_branding != "public") {
206 deps += [ "//chromecast/internal:cast_shell_internal" ]
207 }
208 } 204 }
209 205
210 test("cast_shell_browser_test") { 206 test("cast_shell_browser_test") {
211 sources = [ 207 sources = [
212 "test/chromecast_shell_browser_test.cc", 208 "test/chromecast_shell_browser_test.cc",
213 "test/chromecast_shell_media_blocking_browser_test.cc", 209 "test/chromecast_shell_media_blocking_browser_test.cc",
214 ] 210 ]
215 211
216 configs += [ ":browser_test_config" ] 212 configs += [ ":browser_test_config" ]
217 213
218 deps = [ 214 deps = [
219 ":test_support", 215 ":test_support",
220 "//base", 216 "//base",
221 "//chromecast:chromecast_features", 217 "//chromecast:chromecast_features",
222 "//content/test:test_support", 218 "//content/test:test_support",
223 "//media/base:test_support", 219 "//media/base:test_support",
224 "//testing/gtest", 220 "//testing/gtest",
225 "//url", 221 "//url",
226 ] 222 ]
227 223
228 # TODO(slan): Find a better way to do this.
229 if (chromecast_branding != "public") {
230 deps += [ "//chromecast/internal:cast_shell_internal" ]
231 }
232
233 if (chromecast_branding == "public") { 224 if (chromecast_branding == "public") {
234 # Link default libcast_media_1.0 statically not to link dummy one 225 # Link default libcast_media_1.0 statically not to link dummy one
235 # dynamically for public unittests. 226 # dynamically for public unittests.
236 deps += [ "//chromecast/media/base:libcast_media_1.0_default_core" ] 227 deps += [ "//chromecast/media/base:libcast_media_1.0_default_core" ]
237 } 228 }
238 } 229 }
239 230
240 if (is_android) { 231 if (is_android) {
241 generate_jni("jni_headers") { 232 generate_jni("jni_headers") {
242 sources = [ 233 sources = [
243 "android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java", 234 "android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java",
244 "android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java", 235 "android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java",
245 "android/apk/src/org/chromium/chromecast/shell/CastSysInfoAndroid.java", 236 "android/apk/src/org/chromium/chromecast/shell/CastSysInfoAndroid.java",
246 "android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java", 237 "android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java",
247 "android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java", 238 "android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java",
248 ] 239 ]
249 240
250 jni_package = "chromecast" 241 jni_package = "chromecast"
251 } 242 }
252 } 243 }
OLDNEW
« no previous file with comments | « chromecast/android/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698