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

Unified Diff: build/util/branding.gni

Issue 1950493002: [Mac/GN] Move the bundle ID and creator code into the BRANDING file, and use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « build/config/mac/rules.gni ('k') | chrome/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/util/branding.gni
diff --git a/build/util/branding.gni b/build/util/branding.gni
index b234b817c892b4da8a5c414eb15a51c7445bcb69..c38d2a9fc72c177b5ee8e6bf05471c0758d5a757 100644
--- a/build/util/branding.gni
+++ b/build/util/branding.gni
@@ -14,15 +14,26 @@
import("//build/config/chrome_build.gni")
+_branding_dictionary_template = "full_name = \"@PRODUCT_FULLNAME@\" " +
+ "short_name = \"@PRODUCT_SHORTNAME@\" " +
+ "bundle_id = \"@MAC_BUNDLE_ID@\" " +
+ "creator_code = \"@MAC_CREATOR_CODE@\" "
+
_branding_file = "//chrome/app/theme/$branding_path_component/BRANDING"
_result = exec_script("version.py",
[
"-f",
rebase_path(_branding_file, root_build_dir),
"-t",
- "@PRODUCT_FULLNAME@",
+ _branding_dictionary_template,
],
- "trim string",
+ "scope",
Mark Mentovai 2016/05/03 17:54:51 This change from “trim string” to “scope” is the m
Robert Sesek 2016/05/03 18:02:39 Yeah, it's a little confusing, but I mostly just c
[ _branding_file ])
-chrome_product_full_name = _result
+chrome_product_full_name = _result.full_name
+chrome_product_short_name = _result.short_name
+
+if (is_mac) {
+ chrome_mac_bundle_id = _result.bundle_id
+ chrome_mac_creator_code = _result.creator_code
+}
« no previous file with comments | « build/config/mac/rules.gni ('k') | chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698