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

Unified Diff: ios/chrome/app/BUILD.gn

Issue 2555233002: [iOS] Upstreaming of Info.plist and entitlements generation. (Closed)
Patch Set: Created 4 years 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: ios/chrome/app/BUILD.gn
diff --git a/ios/chrome/app/BUILD.gn b/ios/chrome/app/BUILD.gn
index 4d197e30d7bf96466df887750ab7008daa4146d8..9dcfaf8935d3b9169ebc5346e58e71c340b474e4 100644
--- a/ios/chrome/app/BUILD.gn
+++ b/ios/chrome/app/BUILD.gn
@@ -2,6 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/ios/rules.gni")
+import("//build/mac/tweak_info_plist.gni")
+import("//ios/build/chrome_build.gni")
+
source_set("app") {
sources = [
"deferred_initialization_runner.h",
@@ -60,3 +64,33 @@ bundle_data("resources") {
"{{bundle_resources_dir}}/{{source_file_part}}",
]
}
+
+tweak_info_plist("info_plist") {
+ info_plists = [
+ "resources/Info.plist",
+ "resources/ChromeAddition+Info.plist",
+ ]
+ if (ios_chrome_info_plist_additions != []) {
+ info_plists += ios_chrome_info_plist_additions
+ }
+ if (ios_encryption_export_compliance_code != "") {
+ info_plists += [ "resources/EncryptionExportCompliance+Info.plist" ]
+ }
+ args = [
+ "--breakpad=$breakpad_enabled_as_int",
+ "--branding=$chromium_short_name",
+ ]
+}
+
+compile_plist("entitlements") {
+ format = "xml1"
+ plist_templates = [ "resources/Chrome.entitlements" ]
+ if (ios_chrome_entitlements_additions != []) {
+ plist_templates += ios_chrome_entitlements_additions
+ }
+ if (!ios_automatically_manage_certs) {
+ plist_templates += [ "resources/AssociatedDomains.entitlements" ]
+ }
+ substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ]
+ output_name = "$target_gen_dir/$chromium_short_name.entitlements"
+}

Powered by Google App Engine
This is Rietveld 408576698