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

Unified Diff: blimp/engine/BUILD.gn

Issue 1990723002: Add a compile time flag to only upload crash symbols for official builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ::shamecube:: Remove silly debug file 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
Index: blimp/engine/BUILD.gn
diff --git a/blimp/engine/BUILD.gn b/blimp/engine/BUILD.gn
index 1805e8424a9b6e61860b571a6957cdcd77874022..1d8d0a9e47365acfc068d91364c2d24ca3d9420a 100644
--- a/blimp/engine/BUILD.gn
+++ b/blimp/engine/BUILD.gn
@@ -46,6 +46,15 @@ repack("pak") {
output = "$root_out_dir/blimp_engine.pak"
}
+# Config for defining compile-time official build flags.
+config("official_build_config") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+ defines = []
Kevin M 2016/05/18 16:46:42 Why are we zapping the defines? Wouldn't this thro
marcinjb 2016/05/18 17:39:24 Obsolete, however if I didn't have this here, I'd
+ if (is_official_build) {
+ defines += [ "OFFICIAL_BLIMP_BUILD" ]
Kevin M 2016/05/18 16:46:42 Dumb question, but why can't we use the OFFICIAL_B
marcinjb 2016/05/18 17:39:24 Because I was dumb and missed OFFICIAL_BUILD in fe
+ }
+}
+
source_set("app") {
sources = [
"app/blimp_browser_main_parts.cc",
@@ -218,6 +227,8 @@ source_set("crash") {
"//components/version_info:generate_version_info",
"//content/public/common",
]
+
+ configs += [ ":official_build_config" ]
}
source_set("common") {

Powered by Google App Engine
This is Rietveld 408576698