Index: chrome/BUILD.gn |
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn |
index cc77145eed39f0ce4cdd833724bcb8a731a30ef3..b2d01f34dc370be2638fee9ea3f06599e0b8276b 100644 |
--- a/chrome/BUILD.gn |
+++ b/chrome/BUILD.gn |
@@ -762,32 +762,37 @@ if (is_win) { |
# framework in the app bundle, rather than the framework bundle in |
# root_out_dir, since copy_bundle_data copies the contents of the link |
# rather than the link itself. |
- action("devtools_debug_resources") { |
- _stamp = "$target_out_dir/run_${target_name}.stamp" |
+ if (debug_devtools) { |
+ action("devtools_debug_resources") { |
+ _stamp = "$target_out_dir/run_${target_name}.stamp" |
- outputs = [ |
- _stamp, |
- ] |
+ outputs = [ |
+ _stamp, |
+ ] |
- script = "//build/symlink.py" |
- args = [ |
- "-f", |
- "--touch", |
- rebase_path(_stamp, root_out_dir), |
+ script = "//build/symlink.py" |
+ args = [ |
+ "-f", |
+ "--touch", |
+ rebase_path(_stamp, root_out_dir), |
- # Convert the symlink source and destination to an absolute paths, which |
- # makes symlinking easier (now pwd manipulation). |
- rebase_path("$root_out_dir/resources/inspector"), |
- rebase_path( |
- "$root_out_dir/$chrome_product_full_name.app/Contents/Versions/$chrome_version_full/$chrome_framework_name.framework/Resources/inspector"), |
- ] |
+ # Convert the symlink source and destination to an absolute paths, which |
+ # makes symlinking easier (now pwd manipulation). |
+ rebase_path("$root_out_dir/resources/inspector"), |
+ rebase_path( |
+ "$root_out_dir/$chrome_product_full_name.app/Contents/Versions/$chrome_version_full/$chrome_framework_name.framework/Resources/inspector"), |
+ ] |
- deps = [ |
- # Depend on :chrome_app to ensure that the bundle is produced before |
- # creating or destroying the symlink. |
- ":chrome_app", |
- "//third_party/WebKit/public:blink_devtools_frontend_resources", |
- ] |
+ deps = [ |
+ # Depend on :chrome_app to ensure that the bundle is produced before |
+ # creating or destroying the symlink. |
+ ":chrome_app", |
+ "//third_party/WebKit/public:blink_devtools_frontend_resources", |
+ ] |
+ } |
+ } else { |
+ group("devtools_debug_resources") { |
+ } |
} |
if (enable_nacl) { |