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

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

Issue 2273403003: Moving gRPC support interfaces out of cronet and into a new component. (Closed)
Patch Set: Add cronet_c_for_graph back to sources. Might fix GN, probably won't compile Created 4 years, 3 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
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 12 matching lines...) Expand all
23 extra_args = [ 23 extra_args = [
24 "-e", 24 "-e",
25 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", 25 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)",
26 ] 26 ]
27 } 27 }
28 28
29 source_set("cronet_sources") { 29 source_set("cronet_sources") {
30 deps = [ 30 deps = [
31 ":cronet_version_header", 31 ":cronet_version_header",
32 "//base:base", 32 "//base:base",
33 "//components/grpc_support",
33 "//components/metrics:metrics", 34 "//components/metrics:metrics",
34 "//components/metrics/proto:proto", 35 "//components/metrics/proto:proto",
35 "//components/prefs:prefs", 36 "//components/prefs:prefs",
36 "//net", 37 "//net",
37 "//url", 38 "//url",
38 ] 39 ]
39 40
40 sources = [ 41 sources = [
41 "../histogram_manager.cc", 42 "../histogram_manager.cc",
42 "../histogram_manager.h", 43 "../histogram_manager.h",
43 "../stale_host_resolver.cc", 44 "../stale_host_resolver.cc",
44 "../stale_host_resolver.h", 45 "../stale_host_resolver.h",
45 "../url_request_context_config.cc", 46 "../url_request_context_config.cc",
46 "../url_request_context_config.h", 47 "../url_request_context_config.h",
47 "cronet_bidirectional_stream.cc",
48 "cronet_bidirectional_stream.h",
49 "cronet_c_for_grpc.cc",
50 "cronet_c_for_grpc.h",
51 "cronet_environment.cc", 48 "cronet_environment.cc",
52 "cronet_environment.h", 49 "cronet_environment.h",
53 ] 50 ]
54 51
55 if (!use_platform_icu_alternatives) { 52 if (!use_platform_icu_alternatives) {
56 deps += [ "//base:i18n" ] 53 deps += [ "//base:i18n" ]
57 } 54 }
58 } 55 }
59 56
60 # Tweak |info_plist| with current version and revision. 57 # Tweak |info_plist| with current version and revision.
61 tweak_info_plist("tweak_cronet_plist") { 58 tweak_info_plist("tweak_cronet_plist") {
62 info_plist = "Info.plist" 59 info_plist = "Info.plist"
63 args = [] 60 args = []
64 } 61 }
65 62
66 ios_framework_bundle("cronet_framework") { 63 ios_framework_bundle("cronet_framework") {
67 output_name = "Cronet" 64 output_name = "Cronet"
68 info_plist_target = ":tweak_cronet_plist" 65 info_plist_target = ":tweak_cronet_plist"
69 66
70 deps = [ 67 deps = [
71 ":cronet_sources", 68 ":cronet_sources",
72 "//base", 69 "//base",
73 "//net:net", 70 "//net:net",
74 ] 71 ]
75 72
76 libs = [ "UIKit.Framework" ] 73 libs = [ "UIKit.Framework" ]
77 74
75 public_deps = [
76 "//components/grpc_support",
77 ]
78
78 public_headers = [ 79 public_headers = [
79 "Cronet.h", 80 "Cronet.h",
80 "cronet_c_for_grpc.h", 81
82 # TODO(gcasto): Figure out some better way of doing this.
83 "../../grpc_support/cronet_c_for_grpc.h",
81 ] 84 ]
82 85
83 sources = [ 86 sources = [
84 "Cronet.h", 87 "Cronet.h",
85 "Cronet.mm", 88 "Cronet.mm",
89 "../../grpc_support/cronet_c_for_graph.h",
86 ] 90 ]
87 91
88 configs -= [ "//build/config/compiler:default_symbols" ] 92 configs -= [ "//build/config/compiler:default_symbols" ]
89 configs += [ "//build/config/compiler:symbols" ] 93 configs += [ "//build/config/compiler:symbols" ]
90 } 94 }
91 95
92 bundle_data("cronet_test_bundle_data") { 96 bundle_data("cronet_test_bundle_data") {
93 testonly = true 97 testonly = true
94 sources = [ 98 sources = [
95 "//net/data/ssl/certificates/quic_test.example.com.crt", 99 "//net/data/ssl/certificates/quic_test.example.com.crt",
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 ] 184 ]
181 } 185 }
182 186
183 group("cronet_package") { 187 group("cronet_package") {
184 deps = [ 188 deps = [
185 ":cronet_package_copy", 189 ":cronet_package_copy",
186 ":generate_license", 190 ":generate_license",
187 ] 191 ]
188 } 192 }
189 } 193 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698