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

Side by Side Diff: mojo/runner/BUILD.gn

Issue 1444113003: GN: asset_location -> android_assets() for mojo_runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@html_viewer-assets
Patch Set: rebase Created 5 years 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 | « mojo/public/mojo_application.gni ('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 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 import("//mojo/generate_mojo_shell_assets_list.gni") 5 import("//mojo/generate_mojo_shell_assets_list.gni")
6 import("//mojo/public/mojo_application.gni") 6 import("//mojo/public/mojo_application.gni")
7 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 9
10 group("runner") { 10 group("runner") {
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 ":resources", 261 ":resources",
262 "//base:base_java", 262 "//base:base_java",
263 ] 263 ]
264 } 264 }
265 265
266 android_resources("resources") { 266 android_resources("resources") {
267 resource_dirs = [ "android/apk/res" ] 267 resource_dirs = [ "android/apk/res" ]
268 custom_package = "org.chromium.mojo.shell" 268 custom_package = "org.chromium.mojo.shell"
269 } 269 }
270 270
271 mojo_runner_test_assets_dir = "$root_build_dir/mojo_runner_test_assets" 271 android_assets("mojo_runner_apptests_assets") {
272 mojo_runner_apptests_assets_dir =
273 "$root_build_dir/mojo_runner_apptests_assets"
274
275 copy_ex("copy_mojo_runner_apptests_assets") {
276 testonly = true 272 testonly = true
277 clear_dir = true
278 dest = mojo_runner_apptests_assets_dir
279 273
280 deps = [ 274 deps = [
281 ":bootstrap", 275 ":bootstrap",
282 ":bootstrap_java", 276 ":bootstrap_java",
283 "//components/clipboard:apptests", 277 "//components/clipboard:apptests_assets",
284 "//components/mus/ws:apptests", 278 "//components/clipboard:clipboard_assets",
285 "//components/resource_provider:apptests", 279 "//components/mus/ws:apptests_assets",
286 "//mojo/services/network:apptests", 280 "//components/resource_provider:apptests_assets",
287 "//third_party/icu:icudata", 281 "//components/resource_provider:resource_provider_assets",
282 "//mojo/services/network:apptests_assets",
283 "//mojo/services/network:network_assets",
284 "//third_party/icu:icu_assets",
288 ] 285 ]
289 286
290 sources = [ 287 sources = [
291 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", 288 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar",
292 "$root_shlib_dir/${shlib_prefix}bootstrap$shlib_extension", 289 "$root_shlib_dir/${shlib_prefix}bootstrap$shlib_extension",
293 ] 290 ]
294
295 apptest_outputs = [
296 "clipboard",
297 "clipboard_apptests",
298 "icudtl.dat",
299 "mus_apptests",
300 "resource_provider",
301 "resource_provider_apptests",
302 "network_service",
303 "network_service_apptests",
304 ]
305
306 args = []
307 foreach(path, apptest_outputs) {
308 args +=
309 [ "--files=" + rebase_path("$root_out_dir/$path", root_build_dir) ]
310 }
311 }
312
313 generate_mojo_shell_assets_list("build_mojo_runner_apptests_assets") {
314 testonly = true
315 deps = [
316 ":copy_mojo_runner_apptests_assets",
317 ]
318 dir = mojo_runner_apptests_assets_dir
319 } 291 }
320 292
321 copy("copy_mojo_runner") { 293 copy("copy_mojo_runner") {
322 sources = [ 294 sources = [
323 "$root_out_dir/mojo_runner", 295 "$root_out_dir/mojo_runner",
324 ] 296 ]
325 outputs = [ 297 outputs = [
326 "$root_shlib_dir/${shlib_prefix}mojo_runner$shlib_extension", 298 "$root_shlib_dir/${shlib_prefix}mojo_runner$shlib_extension",
327 ] 299 ]
328 deps = [ 300 deps = [
329 ":mojo_runner", 301 ":mojo_runner",
330 ] 302 ]
331 } 303 }
332 304
333 copy_ex("copy_mojo_runner_test_assets") {
334 testonly = true
335 clear_dir = true
336 dest = mojo_runner_test_assets_dir
337 deps = [
338 "//mojo/services/test_service:test_app",
339 "//mojo/services/test_service:test_request_tracker_app",
340 "//third_party/icu:icudata",
341 ]
342
343 # Directories can't be specified as sources so pass manually to the script.
344 args = [
345 "--files=" + rebase_path("$root_out_dir/icudtl.dat", root_build_dir),
346 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir),
347 "--files=" +
348 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir),
349 ]
350 }
351
352 android_apk("mojo_runner_apptests_apk") { 305 android_apk("mojo_runner_apptests_apk") {
353 testonly = true 306 testonly = true
354 apk_name = "MojoRunnerApptests" 307 apk_name = "MojoRunnerApptests"
355 android_manifest = "android/apk/AndroidManifest.xml" 308 android_manifest = "android/apk/AndroidManifest.xml"
356 native_libs = [ "${shlib_prefix}mojo_runner$shlib_extension" ] 309 native_libs = [ "${shlib_prefix}mojo_runner$shlib_extension" ]
357 asset_location = mojo_runner_apptests_assets_dir 310 write_asset_list = true
358 311
359 deps = [ 312 deps = [
360 ":build_mojo_runner_apptests_assets",
361 ":copy_mojo_runner", 313 ":copy_mojo_runner",
362 ":java", 314 ":java",
315 ":mojo_runner_apptests_assets",
363 ":resources", 316 ":resources",
364 "//base:base_java", 317 "//base:base_java",
365 "//ui/platform_window/android:platform_window_java", 318 "//ui/platform_window/android:platform_window_java",
366 google_play_services_resources, 319 google_play_services_resources,
367 ] 320 ]
368 } 321 }
369
370 generate_mojo_shell_assets_list("build_mojo_runner_test_assets") {
371 testonly = true
372 deps = [
373 ":copy_mojo_runner_test_assets",
374 ]
375 dir = mojo_runner_test_assets_dir
376 }
377 } 322 }
OLDNEW
« no previous file with comments | « mojo/public/mojo_application.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698