Chromium Code Reviews| Index: blimp/engine/BUILD.gn |
| diff --git a/blimp/engine/BUILD.gn b/blimp/engine/BUILD.gn |
| index fb1fe5a7f8c849a779a499d6537cbec7323ef94d..0cf36dc44e58604e444c449d5ad79f3e6be2864a 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($host_toolchain)" |
|
Dirk Pranke
2016/05/16 23:50:23
($host_toolchain) is almost certainly unnecessary
marcinjb
2016/05/17 17:49:31
Ah, good to know. Removed (this was basically a c
|
| + 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, |
| + ] |
| + } |
| + } |
| } |