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/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 if (!enable_plugins) { | 310 if (!enable_plugins) { |
311 sources -= [ | 311 sources -= [ |
312 "browser/shell_plugin_service_filter.cc", | 312 "browser/shell_plugin_service_filter.cc", |
313 "browser/shell_plugin_service_filter.h", | 313 "browser/shell_plugin_service_filter.h", |
314 ] | 314 ] |
315 } | 315 } |
316 } | 316 } |
317 | 317 |
318 grit("content_shell_resources_grit") { | 318 grit("content_shell_resources_grit") { |
319 visibility = ":*" | 319 visibility = [ ":*" ] |
320 source = "shell_resources.grd" | 320 source = "shell_resources.grd" |
321 outputs = [ | 321 outputs = [ |
322 "grit/shell_resources.h", | 322 "grit/shell_resources.h", |
323 "shell_resources.pak", | 323 "shell_resources.pak", |
324 "shell_resources.rc", | 324 "shell_resources.rc", |
325 ] | 325 ] |
326 } | 326 } |
327 | 327 |
328 copy("copy_shell_resources") { | 328 copy("copy_shell_resources") { |
329 sources = [ "$target_gen_dir/shell_resources.pak" ] | 329 sources = [ "$target_gen_dir/shell_resources.pak" ] |
330 outputs = [ "$root_out_dir/shell_resources.pak" ] | 330 outputs = [ "$root_out_dir/shell_resources.pak" ] |
331 | 331 |
332 deps = [ ":content_shell_resources_grit" ] | 332 deps = [ ":content_shell_resources_grit" ] |
333 forward_dependent_configs_from = [ ":content_shell_resources_grit" ] | 333 forward_dependent_configs_from = [ ":content_shell_resources_grit" ] |
334 } | 334 } |
335 | 335 |
336 # Font copies. | 336 # Font copies. |
337 if (!is_mac) { | 337 if (!is_mac) { |
338 copy("copy_ahem") { | 338 copy("copy_ahem") { |
339 visibility = ":*" | 339 visibility = [ ":*" ] |
340 sources = [ "renderer/test_runner/resources/fonts/AHEM____.TTF" ] | 340 sources = [ "renderer/test_runner/resources/fonts/AHEM____.TTF" ] |
341 outputs = [ "$root_out_dir/AHEM____.TTF" ] | 341 outputs = [ "$root_out_dir/AHEM____.TTF" ] |
342 } | 342 } |
343 } | 343 } |
344 if (use_x11) { | 344 if (use_x11) { |
345 copy("copy_x11_fonts") { | 345 copy("copy_x11_fonts") { |
346 visibility = ":*" | 346 visibility = [ ":*" ] |
347 sources = [ | 347 sources = [ |
348 "renderer/test_runner/resources/fonts/fonts.conf", | 348 "renderer/test_runner/resources/fonts/fonts.conf", |
349 "//third_party/gardiner_mod/GardinerModBug.ttf", | 349 "//third_party/gardiner_mod/GardinerModBug.ttf", |
350 "//third_party/gardiner_mod/GardinerModCat.ttf", | 350 "//third_party/gardiner_mod/GardinerModCat.ttf", |
351 ] | 351 ] |
352 outputs = [ "$root_out_dir/{{source_file_part}}" ] | 352 outputs = [ "$root_out_dir/{{source_file_part}}" ] |
353 } | 353 } |
354 } | 354 } |
355 if (is_android) { | 355 if (is_android) { |
356 copy("copy_android_fonts") { | 356 copy("copy_android_fonts") { |
357 visibility = ":*" | 357 visibility = [ ":*" ] |
358 sources = [ | 358 sources = [ |
359 "renderer/test_runner/resources/fonts/android_main_fonts.xml", | 359 "renderer/test_runner/resources/fonts/android_main_fonts.xml", |
360 "renderer/test_runner/resources/fonts/android_fallback_fonts.xml", | 360 "renderer/test_runner/resources/fonts/android_fallback_fonts.xml", |
361 ] | 361 ] |
362 outputs = [ "$root_out_dir/{{source_file_part}}" ] | 362 outputs = [ "$root_out_dir/{{source_file_part}}" ] |
363 } | 363 } |
364 } | 364 } |
365 | 365 |
366 group("resources") { | 366 group("resources") { |
367 deps = [ | 367 deps = [ |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 } | 458 } |
459 | 459 |
460 if (!is_android || !is_android_webview_build) { | 460 if (!is_android || !is_android_webview_build) { |
461 # Some tests rely on this tool. It might be nicer if these tests relied on | 461 # Some tests rely on this tool. It might be nicer if these tests relied on |
462 # image diff rather than having content shell depend on it. | 462 # image diff rather than having content shell depend on it. |
463 datadeps = [ | 463 datadeps = [ |
464 "//tools/imagediff($host_toolchain)", | 464 "//tools/imagediff($host_toolchain)", |
465 ] | 465 ] |
466 } | 466 } |
467 } | 467 } |
OLD | NEW |