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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 ] | 755 ] |
756 public_deps += [ "//v8" ] | 756 public_deps += [ "//v8" ] |
757 } | 757 } |
758 } | 758 } |
759 | 759 |
760 # When debug_devtools is enabled, symlink the inspector resources into the | 760 # When debug_devtools is enabled, symlink the inspector resources into the |
761 # framework bundle. The resources go into the final output directory for the | 761 # framework bundle. The resources go into the final output directory for the |
762 # framework in the app bundle, rather than the framework bundle in | 762 # framework in the app bundle, rather than the framework bundle in |
763 # root_out_dir, since copy_bundle_data copies the contents of the link | 763 # root_out_dir, since copy_bundle_data copies the contents of the link |
764 # rather than the link itself. | 764 # rather than the link itself. |
765 action("devtools_debug_resources") { | 765 if (debug_devtools) { |
766 _stamp = "$target_out_dir/run_${target_name}.stamp" | 766 action("devtools_debug_resources") { |
| 767 _stamp = "$target_out_dir/run_${target_name}.stamp" |
767 | 768 |
768 outputs = [ | 769 outputs = [ |
769 _stamp, | 770 _stamp, |
770 ] | 771 ] |
771 | 772 |
772 script = "//build/symlink.py" | 773 script = "//build/symlink.py" |
773 args = [ | 774 args = [ |
774 "-f", | 775 "-f", |
775 "--touch", | 776 "--touch", |
776 rebase_path(_stamp, root_out_dir), | 777 rebase_path(_stamp, root_out_dir), |
777 | 778 |
778 # Convert the symlink source and destination to an absolute paths, which | 779 # Convert the symlink source and destination to an absolute paths, which |
779 # makes symlinking easier (now pwd manipulation). | 780 # makes symlinking easier (now pwd manipulation). |
780 rebase_path("$root_out_dir/resources/inspector"), | 781 rebase_path("$root_out_dir/resources/inspector"), |
781 rebase_path( | 782 rebase_path( |
782 "$root_out_dir/$chrome_product_full_name.app/Contents/Versions/$chrome
_version_full/$chrome_framework_name.framework/Resources/inspector"), | 783 "$root_out_dir/$chrome_product_full_name.app/Contents/Versions/$chro
me_version_full/$chrome_framework_name.framework/Resources/inspector"), |
783 ] | 784 ] |
784 | 785 |
785 deps = [ | 786 deps = [ |
786 # Depend on :chrome_app to ensure that the bundle is produced before | 787 # Depend on :chrome_app to ensure that the bundle is produced before |
787 # creating or destroying the symlink. | 788 # creating or destroying the symlink. |
788 ":chrome_app", | 789 ":chrome_app", |
789 "//third_party/WebKit/public:blink_devtools_frontend_resources", | 790 "//third_party/WebKit/public:blink_devtools_frontend_resources", |
790 ] | 791 ] |
| 792 } |
| 793 } else { |
| 794 group("devtools_debug_resources") { |
| 795 } |
791 } | 796 } |
792 | 797 |
793 if (enable_nacl) { | 798 if (enable_nacl) { |
794 bundle_data("chrome_framework_plugins") { | 799 bundle_data("chrome_framework_plugins") { |
795 sources = [] | 800 sources = [] |
796 outputs = [ | 801 outputs = [ |
797 "{{bundle_root_dir}}/Internet Plug-Ins/{{source_file_part}}", | 802 "{{bundle_root_dir}}/Internet Plug-Ins/{{source_file_part}}", |
798 ] | 803 ] |
799 public_deps = [] | 804 public_deps = [] |
800 | 805 |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1800 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1805 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1801 "//chrome/tools/build/linux/chrome-wrapper", | 1806 "//chrome/tools/build/linux/chrome-wrapper", |
1802 "//third_party/xdg-utils/scripts/xdg-mime", | 1807 "//third_party/xdg-utils/scripts/xdg-mime", |
1803 "//third_party/xdg-utils/scripts/xdg-settings", | 1808 "//third_party/xdg-utils/scripts/xdg-settings", |
1804 ] | 1809 ] |
1805 outputs = [ | 1810 outputs = [ |
1806 "$root_out_dir/{{source_file_part}}", | 1811 "$root_out_dir/{{source_file_part}}", |
1807 ] | 1812 ] |
1808 } | 1813 } |
1809 } | 1814 } |
OLD | NEW |