Chromium Code Reviews| 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/util/version.gni") | 7 import("//build/util/version.gni") |
| 7 import("//chrome/version.gni") | 8 import("//chrome/version.gni") |
| 8 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 9 import("//url/features.gni") | 10 import("//url/features.gni") |
| 10 | 11 |
| 11 assert(!is_component_build, "Cronet requires static library build.") | 12 assert(!is_component_build, "Cronet requires static library build.") |
| 12 | 13 |
| 13 declare_args() { | 14 declare_args() { |
| 14 cronet_enable_data_reduction_proxy_support = false | 15 cronet_enable_data_reduction_proxy_support = false |
| 15 } | 16 } |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 32 "//components/prefs:prefs", | 33 "//components/prefs:prefs", |
| 33 "//net", | 34 "//net", |
| 34 "//url", | 35 "//url", |
| 35 ] | 36 ] |
| 36 | 37 |
| 37 sources = [ | 38 sources = [ |
| 38 "../histogram_manager.cc", | 39 "../histogram_manager.cc", |
| 39 "../histogram_manager.h", | 40 "../histogram_manager.h", |
| 40 "../url_request_context_config.cc", | 41 "../url_request_context_config.cc", |
| 41 "../url_request_context_config.h", | 42 "../url_request_context_config.h", |
| 42 "Cronet.h", | |
| 43 "Cronet.mm", | |
| 44 "cronet_bidirectional_stream.cc", | 43 "cronet_bidirectional_stream.cc", |
| 45 "cronet_bidirectional_stream.h", | 44 "cronet_bidirectional_stream.h", |
| 46 "cronet_c_for_grpc.cc", | 45 "cronet_c_for_grpc.cc", |
| 47 "cronet_c_for_grpc.h", | 46 "cronet_c_for_grpc.h", |
| 48 "cronet_environment.cc", | 47 "cronet_environment.cc", |
| 49 "cronet_environment.h", | 48 "cronet_environment.h", |
| 50 ] | 49 ] |
| 51 | 50 |
| 52 if (!use_platform_icu_alternatives) { | 51 if (!use_platform_icu_alternatives) { |
| 53 deps += [ "//base:i18n" ] | 52 deps += [ "//base:i18n" ] |
| 54 } | 53 } |
| 55 } | 54 } |
| 56 | 55 |
| 57 shared_library("cronet_shared") { | 56 ios_framework_bundle("cronet_framework") { |
|
kapishnikov
2016/06/13 21:21:56
Where do we specify such things like 'xcode_settin
mef
2016/06/14 00:20:37
That's a good question, I don't know yet.
| |
| 57 output_name = "Cronet" | |
| 58 | |
| 58 deps = [ | 59 deps = [ |
| 59 ":cronet_sources", | 60 ":cronet_sources", |
| 60 "//base", | 61 "//base", |
| 61 "//net:net", | 62 "//net:net", |
| 62 ] | 63 ] |
| 64 | |
| 65 info_plist = "Info.plist" | |
| 66 | |
| 63 libs = [ "UIKit.Framework" ] | 67 libs = [ "UIKit.Framework" ] |
| 68 | |
| 69 public_headers = [ | |
| 70 "Cronet.h", | |
| 71 "cronet_c_for_grpc.h", | |
| 72 ] | |
| 73 | |
| 74 sources = [ | |
| 75 "Cronet.h", | |
| 76 "Cronet.mm", | |
| 77 ] | |
| 64 } | 78 } |
| 65 | 79 |
| 66 bundle_data("cronet_test_bundle_data") { | 80 bundle_data("cronet_test_bundle_data") { |
| 67 testonly = true | 81 testonly = true |
| 68 sources = [ | 82 sources = [ |
| 69 "//net/data/ssl/certificates/quic_test.example.com.crt", | 83 "//net/data/ssl/certificates/quic_test.example.com.crt", |
| 70 "//net/data/ssl/certificates/quic_test.example.com.key", | 84 "//net/data/ssl/certificates/quic_test.example.com.key", |
| 71 "//net/data/ssl/certificates/quic_test.example.com.key.pkcs8", | 85 "//net/data/ssl/certificates/quic_test.example.com.key.pkcs8", |
| 72 "//net/data/ssl/certificates/quic_test.example.com.key.sct", | 86 "//net/data/ssl/certificates/quic_test.example.com.key.sct", |
| 73 ] | 87 ] |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 outputs = [ | 138 outputs = [ |
| 125 _license_path, | 139 _license_path, |
| 126 ] | 140 ] |
| 127 args = [ | 141 args = [ |
| 128 "license", | 142 "license", |
| 129 rebase_path(_license_path, root_build_dir), | 143 rebase_path(_license_path, root_build_dir), |
| 130 "--gn", | 144 "--gn", |
| 131 ] | 145 ] |
| 132 } | 146 } |
| 133 | 147 |
| 134 copy("cronet_package_copy") { | 148 copy("cronet_package_copy") { |
|
kapishnikov
2016/06/13 21:21:56
Do we need this target for the dynamic framework?
mef
2016/06/14 00:20:37
Also good question. I think we need to generate li
| |
| 135 sources = [ | 149 sources = [ |
| 136 "$root_out_dir/libcronet_shared.dylib", | 150 "$root_out_dir/Cronet.framework", |
| 137 "//AUTHORS", | 151 "//AUTHORS", |
| 138 "//chrome/VERSION", | 152 "//chrome/VERSION", |
| 139 "//components/cronet/ios/Cronet.h", | 153 "//components/cronet/ios/Cronet.h", |
| 140 "//components/cronet/ios/cronet_c_for_grpc.h", | 154 "//components/cronet/ios/cronet_c_for_grpc.h", |
| 141 ] | 155 ] |
| 142 outputs = [ | 156 outputs = [ |
| 143 "$_package_dir/{{source_file_part}}", | 157 "$_package_dir/{{source_file_part}}", |
| 144 ] | 158 ] |
| 145 | 159 |
| 146 deps = [ | 160 deps = [ |
| 147 ":cronet_shared", | 161 ":cronet_framework", |
| 148 ] | 162 ] |
| 149 } | 163 } |
| 150 | 164 |
| 151 group("cronet_package") { | 165 group("cronet_package") { |
| 152 deps = [ | 166 deps = [ |
| 153 ":cronet_package_copy", | 167 ":cronet_package_copy", |
| 154 ":generate_license", | 168 ":generate_license", |
| 155 ] | 169 ] |
| 156 } | 170 } |
| OLD | NEW |