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

Side by Side Diff: chrome/BUILD.gn

Issue 2179013002: [Mac/GN] Clean up old version folders in Chromium.app/Contents/Versions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: os.utime Created 4 years, 5 months 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 | « no previous file | chrome/tools/build/mac/clean_up_old_versions.py » ('j') | 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("//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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 sources = [ 615 sources = [
616 "$root_out_dir/$chrome_framework_name.framework", 616 "$root_out_dir/$chrome_framework_name.framework",
617 "$root_out_dir/$chrome_helper_name.app", 617 "$root_out_dir/$chrome_helper_name.app",
618 ] 618 ]
619 outputs = [ 619 outputs = [
620 "{{bundle_root_dir}}/Versions/$chrome_version_full/{{source_file_part}}", 620 "{{bundle_root_dir}}/Versions/$chrome_version_full/{{source_file_part}}",
621 ] 621 ]
622 public_deps = [ 622 public_deps = [
623 ":chrome_helper_app", 623 ":chrome_helper_app",
624 624
625 # Before bundling the versioned app components, delete any existing
626 # versions.
627 ":clean_up_old_versions",
628
625 # keystone_registration_framework copies the framework into the framework 629 # keystone_registration_framework copies the framework into the framework
626 # bundle via a script that performs additional actions, rather than 630 # bundle via a script that performs additional actions, rather than
627 # relying on a bundle_data to copy it. 631 # relying on a bundle_data to copy it.
628 ":keystone_registration_framework", 632 ":keystone_registration_framework",
629 633
630 # verify_chrome_framework_order depends on :chrome_framework and, for 634 # verify_chrome_framework_order depends on :chrome_framework and, for
631 # non-component builds, will ensure the export symbol table is correct. 635 # non-component builds, will ensure the export symbol table is correct.
632 ":verify_chrome_framework_order", 636 ":verify_chrome_framework_order",
633 ] 637 ]
634 } 638 }
635 639
640 action("clean_up_old_versions") {
641 script = "//chrome/tools/build/mac/clean_up_old_versions.py"
642 outputs = [
643 "$root_gen_dir/run_$target_name.stamp",
644 ]
645 args = [
646 rebase_path("$root_out_dir/$chrome_product_full_name.app",
647 root_build_dir),
648 "$chrome_version_full",
649 ] + rebase_path(outputs, root_build_dir)
650 }
651
636 tweak_info_plist("chrome_helper_plist") { 652 tweak_info_plist("chrome_helper_plist") {
637 info_plist = "app/helper-Info.plist" 653 info_plist = "app/helper-Info.plist"
638 args = [ 654 args = [
639 "--breakpad=0", 655 "--breakpad=0",
640 "--keystone=0", 656 "--keystone=0",
641 "--scm=0", 657 "--scm=0",
642 ] 658 ]
643 } 659 }
644 660
645 mac_app_bundle("chrome_helper_app") { 661 mac_app_bundle("chrome_helper_app") {
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1828 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1813 "//chrome/tools/build/linux/chrome-wrapper", 1829 "//chrome/tools/build/linux/chrome-wrapper",
1814 "//third_party/xdg-utils/scripts/xdg-mime", 1830 "//third_party/xdg-utils/scripts/xdg-mime",
1815 "//third_party/xdg-utils/scripts/xdg-settings", 1831 "//third_party/xdg-utils/scripts/xdg-settings",
1816 ] 1832 ]
1817 outputs = [ 1833 outputs = [
1818 "$root_out_dir/{{source_file_part}}", 1834 "$root_out_dir/{{source_file_part}}",
1819 ] 1835 ]
1820 } 1836 }
1821 } 1837 }
OLDNEW
« no previous file with comments | « no previous file | chrome/tools/build/mac/clean_up_old_versions.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698