| Index: chrome/BUILD.gn
|
| diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
|
| index ba6b789a4550f948f40cd24e161c15600e17651b..0197f35c004768b793e6b3999701972f6d4e66d4 100644
|
| --- a/chrome/BUILD.gn
|
| +++ b/chrome/BUILD.gn
|
| @@ -808,4 +808,40 @@ if (is_linux) {
|
| "-e s/@@CONFDIR@@/$confdir/",
|
| ]
|
| }
|
| +
|
| + action("linux_symbols") {
|
| + script = "//build/linux/dump_app_syms"
|
| +
|
| + dump_syms_label = "//breakpad:dump_syms($host_toolchain)"
|
| + dump_syms_binary =
|
| + get_label_info(dump_syms_label, "root_out_dir") + "/" + "dump_syms"
|
| +
|
| + chrome_binary = "$root_out_dir/chrome"
|
| + if (current_cpu == "x86") {
|
| + # Use "ia32" instead of "x86" for GYP compat.
|
| + symbol_file = "$root_out_dir/chrome.breakpad.ia32"
|
| + } else {
|
| + symbol_file = "$root_out_dir/chrome.breakpad.$current_cpu"
|
| + }
|
| +
|
| + inputs = [
|
| + chrome_binary,
|
| + dump_syms_binary,
|
| + ]
|
| + outputs = [
|
| + symbol_file,
|
| + ]
|
| +
|
| + args = [
|
| + rebase_path(dump_syms_binary, root_build_dir),
|
| + "0", # TODO(GYP) This is linux_strip_binary if it is needed.
|
| + rebase_path(chrome_binary, root_build_dir),
|
| + rebase_path(symbol_file, root_build_dir),
|
| + ]
|
| +
|
| + deps = [
|
| + ":chrome",
|
| + dump_syms_label,
|
| + ]
|
| + }
|
| }
|
|
|