| OLD | NEW |
| 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//tools/grit/repack.gni") | 7 import("//tools/grit/repack.gni") |
| 8 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 "grit/shell_resources.h", | 361 "grit/shell_resources.h", |
| 362 "shell_resources.pak", | 362 "shell_resources.pak", |
| 363 "shell_resources.rc", | 363 "shell_resources.rc", |
| 364 ] | 364 ] |
| 365 } | 365 } |
| 366 | 366 |
| 367 copy("copy_shell_resources") { | 367 copy("copy_shell_resources") { |
| 368 sources = [ | 368 sources = [ |
| 369 "$target_gen_dir/shell_resources.pak", | 369 "$target_gen_dir/shell_resources.pak", |
| 370 ] | 370 ] |
| 371 outputs = [ "$root_out_dir/shell_resources.pak" ] | 371 outputs = [ |
| 372 "$root_out_dir/shell_resources.pak", |
| 373 ] |
| 372 | 374 |
| 373 public_deps = [ | 375 public_deps = [ |
| 374 ":content_shell_resources_grit", | 376 ":content_shell_resources_grit", |
| 375 ] | 377 ] |
| 376 } | 378 } |
| 377 | 379 |
| 378 # Font copies. | 380 # Font copies. |
| 379 if (!is_mac) { | 381 if (!is_mac) { |
| 380 copy("copy_ahem") { | 382 copy("copy_ahem") { |
| 381 visibility = [ ":*" ] | 383 visibility = [ ":*" ] |
| 382 sources = [ | 384 sources = [ |
| 383 "renderer/test_runner/resources/fonts/AHEM____.TTF", | 385 "renderer/test_runner/resources/fonts/AHEM____.TTF", |
| 384 ] | 386 ] |
| 385 outputs = [ "$root_out_dir/AHEM____.TTF" ] | 387 outputs = [ |
| 388 "$root_out_dir/AHEM____.TTF", |
| 389 ] |
| 386 } | 390 } |
| 387 } | 391 } |
| 388 if (use_x11) { | 392 if (use_x11) { |
| 389 copy("copy_x11_fonts") { | 393 copy("copy_x11_fonts") { |
| 390 visibility = [ ":*" ] | 394 visibility = [ ":*" ] |
| 391 sources = [ | 395 sources = [ |
| 392 "renderer/test_runner/resources/fonts/fonts.conf", | 396 "renderer/test_runner/resources/fonts/fonts.conf", |
| 393 "//third_party/gardiner_mod/GardinerModBug.ttf", | 397 "//third_party/gardiner_mod/GardinerModBug.ttf", |
| 394 "//third_party/gardiner_mod/GardinerModCat.ttf", | 398 "//third_party/gardiner_mod/GardinerModCat.ttf", |
| 395 ] | 399 ] |
| 396 outputs = [ "$root_out_dir/{{source_file_part}}" ] | 400 outputs = [ |
| 401 "$root_out_dir/{{source_file_part}}", |
| 402 ] |
| 397 } | 403 } |
| 398 } | 404 } |
| 399 if (is_android) { | 405 if (is_android) { |
| 400 copy("copy_android_fonts") { | 406 copy("copy_android_fonts") { |
| 401 visibility = [ ":*" ] | 407 visibility = [ ":*" ] |
| 402 sources = [ | 408 sources = [ |
| 403 "renderer/test_runner/resources/fonts/android_main_fonts.xml", | 409 "renderer/test_runner/resources/fonts/android_main_fonts.xml", |
| 404 "renderer/test_runner/resources/fonts/android_fallback_fonts.xml", | 410 "renderer/test_runner/resources/fonts/android_fallback_fonts.xml", |
| 405 ] | 411 ] |
| 406 outputs = [ "$root_out_dir/{{source_file_part}}" ] | 412 outputs = [ |
| 413 "$root_out_dir/{{source_file_part}}", |
| 414 ] |
| 407 } | 415 } |
| 408 } | 416 } |
| 409 | 417 |
| 410 group("resources") { | 418 group("resources") { |
| 411 public_deps = [ | 419 public_deps = [ |
| 412 ":copy_shell_resources", | 420 ":copy_shell_resources", |
| 413 ] | 421 ] |
| 414 deps = [] | 422 deps = [] |
| 415 | 423 |
| 416 if (is_mac) { | 424 if (is_mac) { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 | 511 |
| 504 if (is_android && !is_android_webview_build) { | 512 if (is_android && !is_android_webview_build) { |
| 505 # Some tests rely on this tool. It might be nicer if these tests relied on | 513 # Some tests rely on this tool. It might be nicer if these tests relied on |
| 506 # image diff rather than having content shell depend on it. | 514 # image diff rather than having content shell depend on it. |
| 507 datadeps = [ | 515 datadeps = [ |
| 508 "//tools/imagediff($host_toolchain)", | 516 "//tools/imagediff($host_toolchain)", |
| 509 ] | 517 ] |
| 510 } | 518 } |
| 511 } | 519 } |
| 512 } | 520 } |
| OLD | NEW |