Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1253)

Unified Diff: blimp/engine/BUILD.gn

Issue 1979773002: Add an action to create a symbol file for the Blimp engine (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove $host_toolchain Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/BUILD.gn ('k') | build/args/bots/official.desktop/blimp-engine.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
+ ]
+ }
+ }
}
« no previous file with comments | « blimp/BUILD.gn ('k') | build/args/bots/official.desktop/blimp-engine.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698