Index: blimp/engine/BUILD.gn |
diff --git a/blimp/engine/BUILD.gn b/blimp/engine/BUILD.gn |
index fb1fe5a7f8c849a779a499d6537cbec7323ef94d..c7034c9e64b5a4193bed322f4b271e5fa2274cb2 100644 |
--- a/blimp/engine/BUILD.gn |
+++ b/blimp/engine/BUILD.gn |
@@ -2,6 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/chrome_build.gni") |
import("//build/config/features.gni") |
import("//build/config/sanitizers/sanitizers.gni") |
import("//build/config/ui.gni") |
@@ -531,4 +532,39 @@ if (is_linux) { |
rebase_path(_bundle), |
] |
} |
+ |
+ # Creates a breakpad symbol file for the engine. This takes a long time so |
+ # it should only be done as part of the official build. |
+ if (is_official_build) { |
+ action("blimp_symbols") { |
+ script = "//build/linux/dump_app_syms.py" |
+ |
+ dump_syms_label = "//breakpad:dump_syms" |
+ dump_syms_binary = |
+ get_label_info(dump_syms_label, "root_out_dir") + "/" + "dump_syms" |
+ |
+ engine_binary = "$root_out_dir/blimp_engine_app" |
+ symbol_file = "$root_out_dir/blimp_engine_app.breakpad.x64" |
+ |
+ inputs = [ |
+ engine_binary, |
+ dump_syms_binary, |
+ ] |
+ outputs = [ |
+ symbol_file, |
+ ] |
+ |
+ args = [ |
+ "./" + rebase_path(dump_syms_binary, root_build_dir), |
+ "0", # strip_binary = false |
+ rebase_path(engine_binary, root_build_dir), |
+ rebase_path(symbol_file, root_build_dir), |
+ ] |
+ |
+ deps = [ |
+ ":blimp_engine_app", |
+ dump_syms_label, |
+ ] |
+ } |
+ } |
} |