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") |
11 import("//build/config/ui.gni") | 11 import("//build/config/ui.gni") |
12 import("//build/config/win/console_app.gni") | 12 import("//build/config/win/console_app.gni") |
13 import("//build/config/win/manifest.gni") | 13 import("//build/config/win/manifest.gni") |
14 import("//build/symlink.gni") | |
15 import("//chrome/chrome_repack_locales.gni") | 14 import("//chrome/chrome_repack_locales.gni") |
16 import("//chrome/common/features.gni") | 15 import("//chrome/common/features.gni") |
17 import("//chrome/version.gni") | 16 import("//chrome/version.gni") |
18 import("//third_party/widevine/cdm/widevine.gni") | 17 import("//third_party/widevine/cdm/widevine.gni") |
19 import("//ui/base/ui_features.gni") | 18 import("//ui/base/ui_features.gni") |
20 import("//v8/gni/v8.gni") | 19 import("//v8/gni/v8.gni") |
21 | 20 |
22 if (enable_resource_whitelist_generation) { | 21 if (enable_resource_whitelist_generation) { |
23 android_resource_whitelist = "$root_gen_dir/chrome/resource_whitelist.txt" | 22 android_resource_whitelist = "$root_gen_dir/chrome/resource_whitelist.txt" |
24 } | 23 } |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 public_deps += [ "//v8" ] | 767 public_deps += [ "//v8" ] |
769 } | 768 } |
770 } | 769 } |
771 | 770 |
772 # When debug_devtools is enabled, symlink the inspector resources into the | 771 # When debug_devtools is enabled, symlink the inspector resources into the |
773 # framework bundle. The resources go into the final output directory for the | 772 # framework bundle. The resources go into the final output directory for the |
774 # framework in the app bundle, rather than the framework bundle in | 773 # framework in the app bundle, rather than the framework bundle in |
775 # root_out_dir, since copy_bundle_data copies the contents of the link | 774 # root_out_dir, since copy_bundle_data copies the contents of the link |
776 # rather than the link itself. | 775 # rather than the link itself. |
777 if (debug_devtools) { | 776 if (debug_devtools) { |
778 symlink("devtools_debug_resources") { | 777 action("devtools_debug_resources") { |
779 source = "$root_out_dir/resources/inspector" | 778 _stamp = "$target_out_dir/run_${target_name}.stamp" |
780 output = "$root_out_dir/$chrome_product_full_name.app/Contents/Versions/$c
hrome_version_full/$chrome_framework_name.framework/Resources/inspector" | 779 |
| 780 outputs = [ |
| 781 _stamp, |
| 782 ] |
| 783 |
| 784 script = "//build/symlink.py" |
| 785 args = [ |
| 786 "-f", |
| 787 "--touch", |
| 788 rebase_path(_stamp, root_out_dir), |
| 789 |
| 790 # Convert the symlink source and destination to an absolute paths, which |
| 791 # makes symlinking easier (now pwd manipulation). |
| 792 rebase_path("$root_out_dir/resources/inspector"), |
| 793 rebase_path( |
| 794 "$root_out_dir/$chrome_product_full_name.app/Contents/Versions/$chro
me_version_full/$chrome_framework_name.framework/Resources/inspector"), |
| 795 ] |
781 | 796 |
782 deps = [ | 797 deps = [ |
783 # Depend on :chrome_app to ensure that the bundle is produced before | 798 # Depend on :chrome_app to ensure that the bundle is produced before |
784 # creating or destroying the symlink. | 799 # creating or destroying the symlink. |
785 ":chrome_app", | 800 ":chrome_app", |
786 "//third_party/WebKit/public:blink_devtools_frontend_resources", | 801 "//third_party/WebKit/public:blink_devtools_frontend_resources", |
787 ] | 802 ] |
788 } | 803 } |
789 } else { | 804 } else { |
790 group("devtools_debug_resources") { | 805 group("devtools_debug_resources") { |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1762 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1748 "//chrome/tools/build/linux/chrome-wrapper", | 1763 "//chrome/tools/build/linux/chrome-wrapper", |
1749 "//third_party/xdg-utils/scripts/xdg-mime", | 1764 "//third_party/xdg-utils/scripts/xdg-mime", |
1750 "//third_party/xdg-utils/scripts/xdg-settings", | 1765 "//third_party/xdg-utils/scripts/xdg-settings", |
1751 ] | 1766 ] |
1752 outputs = [ | 1767 outputs = [ |
1753 "$root_out_dir/{{source_file_part}}", | 1768 "$root_out_dir/{{source_file_part}}", |
1754 ] | 1769 ] |
1755 } | 1770 } |
1756 } | 1771 } |
OLD | NEW |