| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 9 import("//build/config/locales.gni") | 9 import("//build/config/locales.gni") |
| 10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 chrome_framework_name = chrome_product_full_name + " Framework" | 386 chrome_framework_name = chrome_product_full_name + " Framework" |
| 387 | 387 |
| 388 group("chrome") { | 388 group("chrome") { |
| 389 deps = [ | 389 deps = [ |
| 390 ":chrome_app", | 390 ":chrome_app", |
| 391 ] | 391 ] |
| 392 } | 392 } |
| 393 | 393 |
| 394 tweak_info_plist("chrome_app_plist") { | 394 tweak_info_plist("chrome_app_plist") { |
| 395 info_plist = "app/app-Info.plist" | 395 info_plist = "app/app-Info.plist" |
| 396 _keystone_arg = "0" |
| 397 if (enable_mac_keystone) { |
| 398 _keystone_arg = "1" |
| 399 } |
| 396 args = [ | 400 args = [ |
| 397 "--breakpad=0", | 401 "--breakpad=0", |
| 398 | 402 "--keystone=$_keystone_arg", |
| 399 #"--keystone=???", # TODO(rsesek): Keystone. | |
| 400 | |
| 401 "--scm=1", | 403 "--scm=1", |
| 402 "--bundle_id=$chrome_mac_bundle_id", | 404 "--bundle_id=$chrome_mac_bundle_id", |
| 403 ] | 405 ] |
| 404 } | 406 } |
| 405 | 407 |
| 406 mac_app_bundle("chrome_app") { | 408 mac_app_bundle("chrome_app") { |
| 407 output_name = chrome_product_full_name | 409 output_name = chrome_product_full_name |
| 408 | 410 |
| 409 info_plist_target = ":chrome_app_plist" | 411 info_plist_target = ":chrome_app_plist" |
| 410 extra_substitutions = [ | 412 extra_substitutions = [ |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 sources = [ | 515 sources = [ |
| 514 "$root_out_dir/$chrome_framework_name.framework", | 516 "$root_out_dir/$chrome_framework_name.framework", |
| 515 "$root_out_dir/$chrome_helper_name.app", | 517 "$root_out_dir/$chrome_helper_name.app", |
| 516 ] | 518 ] |
| 517 outputs = [ | 519 outputs = [ |
| 518 "{{bundle_root_dir}}/Versions/$chrome_version_full/{{source_file_part}}", | 520 "{{bundle_root_dir}}/Versions/$chrome_version_full/{{source_file_part}}", |
| 519 ] | 521 ] |
| 520 public_deps = [ | 522 public_deps = [ |
| 521 ":chrome_helper_app", | 523 ":chrome_helper_app", |
| 522 | 524 |
| 525 # keystone_registration_framework copies the framework into the framework |
| 526 # bundle via a script that performs additional actions, rather than |
| 527 # relying on a bundle_data to copy it. |
| 528 ":keystone_registration_framework", |
| 529 |
| 523 # verify_chrome_framework_order depends on :chrome_framework and, for | 530 # verify_chrome_framework_order depends on :chrome_framework and, for |
| 524 # non-component builds, will ensure the export symbol table is correct. | 531 # non-component builds, will ensure the export symbol table is correct. |
| 525 ":verify_chrome_framework_order", | 532 ":verify_chrome_framework_order", |
| 526 ] | 533 ] |
| 527 } | 534 } |
| 528 | 535 |
| 529 tweak_info_plist("chrome_helper_plist") { | 536 tweak_info_plist("chrome_helper_plist") { |
| 530 info_plist = "app/helper-Info.plist" | 537 info_plist = "app/helper-Info.plist" |
| 531 args = [ | 538 args = [ |
| 532 "--breakpad=0", | 539 "--breakpad=0", |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 } | 631 } |
| 625 | 632 |
| 626 if (enable_topchrome_md) { | 633 if (enable_topchrome_md) { |
| 627 sources += [ "$root_out_dir/chrome_material_100_percent.pak" ] | 634 sources += [ "$root_out_dir/chrome_material_100_percent.pak" ] |
| 628 | 635 |
| 629 if (enable_hidpi) { | 636 if (enable_hidpi) { |
| 630 sources += [ "$root_out_dir/chrome_material_200_percent.pak" ] | 637 sources += [ "$root_out_dir/chrome_material_200_percent.pak" ] |
| 631 } | 638 } |
| 632 } | 639 } |
| 633 | 640 |
| 641 if (enable_mac_keystone) { |
| 642 sources += [ |
| 643 "browser/mac/keystone_promote_postflight.sh", |
| 644 "browser/mac/keystone_promote_preflight.sh", |
| 645 ] |
| 646 } |
| 647 |
| 634 if (v8_use_external_startup_data) { | 648 if (v8_use_external_startup_data) { |
| 635 sources += [ | 649 sources += [ |
| 636 "$root_out_dir/natives_blob.bin", | 650 "$root_out_dir/natives_blob.bin", |
| 637 "$root_out_dir/snapshot_blob.bin", | 651 "$root_out_dir/snapshot_blob.bin", |
| 638 ] | 652 ] |
| 639 public_deps += [ "//v8" ] | 653 public_deps += [ "//v8" ] |
| 640 } | 654 } |
| 641 } | 655 } |
| 642 | 656 |
| 643 if (enable_nacl) { | 657 if (enable_nacl) { |
| 644 bundle_data("chrome_framework_plugins") { | 658 bundle_data("chrome_framework_plugins") { |
| 645 sources = [] | 659 sources = [] |
| 646 outputs = [ | 660 outputs = [ |
| 647 "{{bundle_root_dir}}/Internet Plug-Ins/{{source_file_part}}", | 661 "{{bundle_root_dir}}/Internet Plug-Ins/{{source_file_part}}", |
| 648 ] | 662 ] |
| 649 public_deps = [] | 663 public_deps = [] |
| 650 | 664 |
| 651 if (enable_nacl) { | 665 if (enable_nacl) { |
| 652 sources += [ "$root_out_dir/nacl_irt_x86_64.nexe" ] | 666 sources += [ "$root_out_dir/nacl_irt_x86_64.nexe" ] |
| 653 public_deps += [ "//ppapi/native_client:irt" ] | 667 public_deps += [ "//ppapi/native_client:irt" ] |
| 654 } | 668 } |
| 655 } | 669 } |
| 656 } else { | 670 } else { |
| 657 group("chrome_framework_plugins") { | 671 group("chrome_framework_plugins") { |
| 658 } | 672 } |
| 659 } | 673 } |
| 660 | 674 |
| 675 if (enable_mac_keystone) { |
| 676 action("keystone_registration_framework") { |
| 677 script = "//chrome/tools/build/mac/copy_keystone_framework.py" |
| 678 |
| 679 framework_path = "//third_party/googlemac/Releases/Keystone/KeystoneRegist
ration.framework" |
| 680 output_path = "$root_out_dir/$chrome_framework_name.framework/Frameworks/" |
| 681 |
| 682 sources = [ |
| 683 framework_path, |
| 684 script, |
| 685 ] |
| 686 |
| 687 args = [ |
| 688 rebase_path(framework_path, root_out_dir), |
| 689 rebase_path(output_path, root_out_dir), |
| 690 ] |
| 691 |
| 692 outputs = [ |
| 693 "$output_path/KeystoneRegistration.framework", |
| 694 ] |
| 695 } |
| 696 } else { |
| 697 group("keystone_registration_framework") { |
| 698 } |
| 699 } |
| 700 |
| 661 tweak_info_plist("chrome_framework_plist") { | 701 tweak_info_plist("chrome_framework_plist") { |
| 662 info_plist = "app/framework-Info.plist" | 702 info_plist = "app/framework-Info.plist" |
| 663 args = [ | 703 args = [ |
| 664 "--breakpad=1", | 704 "--breakpad=1", |
| 665 | 705 |
| 666 #"--breakpad_uploads=???", # TODO(rsesek): Breakpad uploads. | 706 #"--breakpad_uploads=???", # TODO(rsesek): Breakpad uploads. |
| 667 | 707 |
| 668 "--keystone=0", | 708 "--keystone=0", |
| 669 "--scm=1", | 709 "--scm=1", |
| 670 "--branding", | 710 "--branding", |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1486 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
| 1447 "//chrome/tools/build/linux/chrome-wrapper", | 1487 "//chrome/tools/build/linux/chrome-wrapper", |
| 1448 "//third_party/xdg-utils/scripts/xdg-mime", | 1488 "//third_party/xdg-utils/scripts/xdg-mime", |
| 1449 "//third_party/xdg-utils/scripts/xdg-settings", | 1489 "//third_party/xdg-utils/scripts/xdg-settings", |
| 1450 ] | 1490 ] |
| 1451 outputs = [ | 1491 outputs = [ |
| 1452 "$root_out_dir/{{source_file_part}}", | 1492 "$root_out_dir/{{source_file_part}}", |
| 1453 ] | 1493 ] |
| 1454 } | 1494 } |
| 1455 } | 1495 } |
| OLD | NEW |