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

Side by Side 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/ios/rules.gni")
6 import("//build/mac/tweak_info_plist.gni")
7 import("//ios/build/chrome_build.gni")
8
5 source_set("app") { 9 source_set("app") {
6 sources = [ 10 sources = [
7 "deferred_initialization_runner.h", 11 "deferred_initialization_runner.h",
8 "deferred_initialization_runner.mm", 12 "deferred_initialization_runner.mm",
9 "safe_mode_crashing_modules_config.h", 13 "safe_mode_crashing_modules_config.h",
10 "safe_mode_crashing_modules_config.mm", 14 "safe_mode_crashing_modules_config.mm",
11 "safe_mode_util.cc", 15 "safe_mode_util.cc",
12 "safe_mode_util.h", 16 "safe_mode_util.h",
13 ] 17 ]
14 18
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 57
54 bundle_data("resources") { 58 bundle_data("resources") {
55 visibility = [ ":app" ] 59 visibility = [ ":app" ]
56 sources = [ 60 sources = [
57 "resources/SafeModeCrashingModules.plist", 61 "resources/SafeModeCrashingModules.plist",
58 ] 62 ]
59 outputs = [ 63 outputs = [
60 "{{bundle_resources_dir}}/{{source_file_part}}", 64 "{{bundle_resources_dir}}/{{source_file_part}}",
61 ] 65 ]
62 } 66 }
67
68 tweak_info_plist("info_plist") {
69 info_plists = [
70 "resources/Info.plist",
71 "resources/ChromeAddition+Info.plist",
72 ]
73 if (ios_chrome_info_plist_additions != []) {
74 info_plists += ios_chrome_info_plist_additions
75 }
76 if (ios_encryption_export_compliance_code != "") {
77 info_plists += [ "resources/EncryptionExportCompliance+Info.plist" ]
78 }
79 args = [
80 "--breakpad=$breakpad_enabled_as_int",
81 "--branding=$chromium_short_name",
82 ]
83 }
84
85 compile_plist("entitlements") {
86 format = "xml1"
87 plist_templates = [ "resources/Chrome.entitlements" ]
88 if (ios_chrome_entitlements_additions != []) {
89 plist_templates += ios_chrome_entitlements_additions
90 }
91 if (!ios_automatically_manage_certs) {
92 plist_templates += [ "resources/AssociatedDomains.entitlements" ]
93 }
94 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ]
95 output_name = "$target_gen_dir/$chromium_short_name.entitlements"
96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698