| 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/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/config/win/console_app.gni") | 8 import("//build/config/win/console_app.gni") |
| 9 import("//build/config/win/manifest.gni") | 9 import("//build/config/win/manifest.gni") |
| 10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 deps += [ "//ui/views/resources" ] | 412 deps += [ "//ui/views/resources" ] |
| 413 sources += | 413 sources += |
| 414 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ] | 414 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ] |
| 415 } | 415 } |
| 416 | 416 |
| 417 sources += [ "$root_gen_dir/blink/devtools_resources.pak" ] | 417 sources += [ "$root_gen_dir/blink/devtools_resources.pak" ] |
| 418 deps += [ "//content/browser/devtools:resources" ] | 418 deps += [ "//content/browser/devtools:resources" ] |
| 419 output = "$root_out_dir/content_shell.pak" | 419 output = "$root_out_dir/content_shell.pak" |
| 420 } | 420 } |
| 421 | 421 |
| 422 # TODO(GYP): Figure out what this should be on android | 422 if (is_android) { |
| 423 # and make linking this work on the Mac. | 423 group("content_shell") { |
| 424 if (!is_android && !is_mac) { | 424 testonly = true |
| 425 deps = [ |
| 426 "//content/shell/android:content_shell_apk", |
| 427 ] |
| 428 } |
| 429 } else if (is_mac) { |
| 430 group("content_shell") { |
| 431 testonly = true |
| 432 deps = [ |
| 433 ":content_shell_lib", |
| 434 ] |
| 435 } |
| 436 } else { |
| 425 # TODO(brettw) when GYP is no longer necessary, delete | 437 # TODO(brettw) when GYP is no longer necessary, delete |
| 426 # content/shell/app/shell.exe.manifest. This file is not used in GN. | 438 # content/shell/app/shell.exe.manifest. This file is not used in GN. |
| 427 executable("content_shell") { | 439 executable("content_shell") { |
| 428 testonly = true | 440 testonly = true |
| 429 | 441 |
| 430 # TODO(GYP) mac resource bundle stuff for this target. | 442 # TODO(GYP) mac resource bundle stuff for this target. |
| 431 # TODO(GYP) Windows content shell settings: | 443 # TODO(GYP) Windows content shell settings: |
| 432 # - RC file. | 444 # - RC file. |
| 433 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | 445 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 434 sources = [ | 446 sources = [ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 457 | 469 |
| 458 if (is_mac) { | 470 if (is_mac) { |
| 459 # TODO(GYP) lots of stuff from GYP file here including helper_app and | 471 # TODO(GYP) lots of stuff from GYP file here including helper_app and |
| 460 # postbuilds. | 472 # postbuilds. |
| 461 output_name = content_shell_product_name | 473 output_name = content_shell_product_name |
| 462 deps = [ | 474 deps = [ |
| 463 ":framework", | 475 ":framework", |
| 464 ] | 476 ] |
| 465 } | 477 } |
| 466 | 478 |
| 467 if (is_android) { | |
| 468 # Some tests rely on this tool. It might be nicer if these tests relied on | |
| 469 # image diff rather than having content shell depend on it. | |
| 470 data_deps = [ | |
| 471 "//tools/imagediff($host_toolchain)", | |
| 472 ] | |
| 473 } | |
| 474 | |
| 475 if (is_linux && !is_component_build) { | 479 if (is_linux && !is_component_build) { |
| 476 # Set rpath to find our own libfreetype even in a non-component build. | 480 # Set rpath to find our own libfreetype even in a non-component build. |
| 477 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 481 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 478 } | 482 } |
| 479 } | 483 } |
| 480 } else { | |
| 481 group("content_shell") { | |
| 482 testonly = true | |
| 483 deps = [ | |
| 484 ":content_shell_lib", | |
| 485 ] | |
| 486 } | |
| 487 } | 484 } |
| 488 | 485 |
| 489 if (is_win) { | 486 if (is_win) { |
| 490 # GYP version: content/content_shell_and_tests.gyp:content_shell_crash_service | 487 # GYP version: content/content_shell_and_tests.gyp:content_shell_crash_service |
| 491 executable("content_shell_crash_service") { | 488 executable("content_shell_crash_service") { |
| 492 sources = [ | 489 sources = [ |
| 493 "tools/content_shell_crash_service.cc", | 490 "tools/content_shell_crash_service.cc", |
| 494 ] | 491 ] |
| 495 | 492 |
| 496 deps = [ | 493 deps = [ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 523 ":content_shell_lib", | 520 ":content_shell_lib", |
| 524 ] | 521 ] |
| 525 } | 522 } |
| 526 } | 523 } |
| 527 | 524 |
| 528 mojom("mojo_bindings") { | 525 mojom("mojo_bindings") { |
| 529 sources = [ | 526 sources = [ |
| 530 "common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom", | 527 "common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom", |
| 531 ] | 528 ] |
| 532 } | 529 } |
| OLD | NEW |