OLD | NEW |
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/process_version.gni") | 9 import("//build/util/process_version.gni") |
10 import("//build/util/version.gni") | 10 import("//build/util/version.gni") |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 "cronet_c_for_grpc.h", | 57 "cronet_c_for_grpc.h", |
58 "cronet_environment.h", | 58 "cronet_environment.h", |
59 "cronet_environment.mm", | 59 "cronet_environment.mm", |
60 ] | 60 ] |
61 | 61 |
62 include_dirs = [ "//components/grpc_support/include" ] | 62 include_dirs = [ "//components/grpc_support/include" ] |
63 | 63 |
64 if (!use_platform_icu_alternatives) { | 64 if (!use_platform_icu_alternatives) { |
65 deps += [ "//base:i18n" ] | 65 deps += [ "//base:i18n" ] |
66 } | 66 } |
| 67 |
| 68 configs += [ "//build/config/compiler:enable_arc" ] |
67 } | 69 } |
68 | 70 |
69 # Tweak |info_plist| with current version and revision. | 71 # Tweak |info_plist| with current version and revision. |
70 tweak_info_plist("tweak_cronet_plist") { | 72 tweak_info_plist("tweak_cronet_plist") { |
71 info_plist = "Info.plist" | 73 info_plist = "Info.plist" |
72 } | 74 } |
73 | 75 |
74 ios_framework_bundle("cronet_framework") { | 76 ios_framework_bundle("cronet_framework") { |
75 output_name = "Cronet" | 77 output_name = "Cronet" |
76 info_plist_target = ":tweak_cronet_plist" | 78 info_plist_target = ":tweak_cronet_plist" |
(...skipping 17 matching lines...) Expand all Loading... |
94 "cronet_c_for_grpc.h", | 96 "cronet_c_for_grpc.h", |
95 ] | 97 ] |
96 public_headers += grpc_public_headers | 98 public_headers += grpc_public_headers |
97 | 99 |
98 sources = [ | 100 sources = [ |
99 "Cronet.h", | 101 "Cronet.h", |
100 ] | 102 ] |
101 | 103 |
102 configs -= [ "//build/config/compiler:default_symbols" ] | 104 configs -= [ "//build/config/compiler:default_symbols" ] |
103 configs += [ "//build/config/compiler:symbols" ] | 105 configs += [ "//build/config/compiler:symbols" ] |
| 106 configs += [ "//build/config/compiler:enable_arc" ] |
104 } | 107 } |
105 | 108 |
106 test("cronet_unittests") { | 109 test("cronet_unittests") { |
107 testonly = true | 110 testonly = true |
108 | 111 |
109 sources = [ | 112 sources = [ |
110 "//components/cronet/histogram_manager_unittest.cc", | 113 "//components/cronet/histogram_manager_unittest.cc", |
111 "//components/cronet/run_all_unittests.cc", | 114 "//components/cronet/run_all_unittests.cc", |
112 "//components/cronet/stale_host_resolver_unittest.cc", | 115 "//components/cronet/stale_host_resolver_unittest.cc", |
113 "//components/cronet/url_request_context_config_unittest.cc", | 116 "//components/cronet/url_request_context_config_unittest.cc", |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 209 } |
207 | 210 |
208 group("cronet_package") { | 211 group("cronet_package") { |
209 deps = [ | 212 deps = [ |
210 ":cronet_dsym_archive", | 213 ":cronet_dsym_archive", |
211 ":cronet_package_copy", | 214 ":cronet_package_copy", |
212 ":generate_license", | 215 ":generate_license", |
213 ] | 216 ] |
214 } | 217 } |
215 } | 218 } |
OLD | NEW |