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

Side by Side Diff: components/cronet/ios/BUILD.gn

Issue 2164393002: Add Info.plist support to ios_framework_bundle template. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bundle-deps
Patch Set: Rebase and fix compilation of fat builds. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « build/config/mac/base_rules.gni ('k') | ios/third_party/earl_grey/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/ios/rules.gni") 6 import("//build/config/ios/rules.gni")
7 import("//build/config/mac/symbols.gni") 7 import("//build/config/mac/symbols.gni")
8 import("//build/mac/tweak_info_plist.gni") 8 import("//build/mac/tweak_info_plist.gni")
9 import("//build/util/version.gni") 9 import("//build/util/version.gni")
10 import("//chrome/version.gni") 10 import("//chrome/version.gni")
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 deps += [ "//base:i18n" ] 54 deps += [ "//base:i18n" ]
55 } 55 }
56 } 56 }
57 57
58 # Tweak |info_plist| with current version and revision. 58 # Tweak |info_plist| with current version and revision.
59 tweak_info_plist("tweak_cronet_plist") { 59 tweak_info_plist("tweak_cronet_plist") {
60 info_plist = "Info.plist" 60 info_plist = "Info.plist"
61 args = [] 61 args = []
62 } 62 }
63 63
64 # Compile plist into |output_name|.
65 ios_info_plist("compile_cronet_plist") {
66 executable_name = "Cronet"
67 output_name = "$target_gen_dir/Info.plist"
68 info_plist_target = ":tweak_cronet_plist"
69 }
70
71 # Bundle plist into Cronet.Framework.
72 bundle_data("cronet_info_plist") {
73 public_deps = [
74 ":compile_cronet_plist",
75 ]
76
77 sources = [
78 "$target_gen_dir/Info.plist",
79 ]
80 outputs = [
81 "{{bundle_root_dir}}/Info.plist",
82 ]
83 }
84
85 ios_framework_bundle("cronet_framework") { 64 ios_framework_bundle("cronet_framework") {
86 output_name = "Cronet" 65 output_name = "Cronet"
66 info_plist_target = ":tweak_cronet_plist"
87 67
88 deps = [ 68 deps = [
89 ":cronet_sources", 69 ":cronet_sources",
90 "//base", 70 "//base",
91 "//net:net", 71 "//net:net",
92 ] 72 ]
93 73
94 bundle_deps = [ ":cronet_info_plist" ]
95
96 libs = [ "UIKit.Framework" ] 74 libs = [ "UIKit.Framework" ]
97 75
98 public_headers = [ 76 public_headers = [
99 "Cronet.h", 77 "Cronet.h",
100 "cronet_c_for_grpc.h", 78 "cronet_c_for_grpc.h",
101 ] 79 ]
102 80
103 sources = [ 81 sources = [
104 "Cronet.h", 82 "Cronet.h",
105 "Cronet.mm", 83 "Cronet.mm",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 ] 171 ]
194 } 172 }
195 173
196 group("cronet_package") { 174 group("cronet_package") {
197 deps = [ 175 deps = [
198 ":cronet_package_copy", 176 ":cronet_package_copy",
199 ":generate_license", 177 ":generate_license",
200 ] 178 ]
201 } 179 }
202 } 180 }
OLDNEW
« no previous file with comments | « build/config/mac/base_rules.gni ('k') | ios/third_party/earl_grey/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698