| 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 18 matching lines...) Expand all Loading... |
| 29 ] | 29 ] |
| 30 } | 30 } |
| 31 | 31 |
| 32 source_set("cronet_sources") { | 32 source_set("cronet_sources") { |
| 33 deps = [ | 33 deps = [ |
| 34 ":cronet_version_header", | 34 ":cronet_version_header", |
| 35 "//base:base", | 35 "//base:base", |
| 36 "//components/metrics:metrics", | 36 "//components/metrics:metrics", |
| 37 "//components/metrics/proto:proto", | 37 "//components/metrics/proto:proto", |
| 38 "//components/prefs:prefs", | 38 "//components/prefs:prefs", |
| 39 "//ios/net:net", |
| 40 "//ios/web:user_agent", |
| 39 "//net", | 41 "//net", |
| 40 "//url", | 42 "//url", |
| 41 ] | 43 ] |
| 42 | 44 |
| 43 sources = [ | 45 sources = [ |
| 44 "../histogram_manager.cc", | 46 "../histogram_manager.cc", |
| 45 "../histogram_manager.h", | 47 "../histogram_manager.h", |
| 46 "../stale_host_resolver.cc", | 48 "../stale_host_resolver.cc", |
| 47 "../stale_host_resolver.h", | 49 "../stale_host_resolver.h", |
| 48 "../url_request_context_config.cc", | 50 "../url_request_context_config.cc", |
| 49 "../url_request_context_config.h", | 51 "../url_request_context_config.h", |
| 52 "Cronet.h", |
| 53 "Cronet.mm", |
| 50 "cronet_bidirectional_stream.cc", | 54 "cronet_bidirectional_stream.cc", |
| 51 "cronet_bidirectional_stream.h", | 55 "cronet_bidirectional_stream.h", |
| 52 "cronet_c_for_grpc.cc", | 56 "cronet_c_for_grpc.cc", |
| 53 "cronet_c_for_grpc.h", | 57 "cronet_c_for_grpc.h", |
| 54 "cronet_environment.cc", | 58 "cronet_environment.cc", |
| 55 "cronet_environment.h", | 59 "cronet_environment.h", |
| 56 ] | 60 ] |
| 57 | 61 |
| 58 if (!use_platform_icu_alternatives) { | 62 if (!use_platform_icu_alternatives) { |
| 59 deps += [ "//base:i18n" ] | 63 deps += [ "//base:i18n" ] |
| (...skipping 18 matching lines...) Expand all Loading... |
| 78 | 82 |
| 79 libs = [ "UIKit.Framework" ] | 83 libs = [ "UIKit.Framework" ] |
| 80 | 84 |
| 81 public_headers = [ | 85 public_headers = [ |
| 82 "Cronet.h", | 86 "Cronet.h", |
| 83 "cronet_c_for_grpc.h", | 87 "cronet_c_for_grpc.h", |
| 84 ] | 88 ] |
| 85 | 89 |
| 86 sources = [ | 90 sources = [ |
| 87 "Cronet.h", | 91 "Cronet.h", |
| 88 "Cronet.mm", | 92 "cronet_c_for_grpc.h", |
| 89 ] | 93 ] |
| 90 | 94 |
| 91 configs -= [ "//build/config/compiler:default_symbols" ] | 95 configs -= [ "//build/config/compiler:default_symbols" ] |
| 92 configs += [ "//build/config/compiler:symbols" ] | 96 configs += [ "//build/config/compiler:symbols" ] |
| 93 } | 97 } |
| 94 | 98 |
| 95 bundle_data("cronet_test_bundle_data") { | 99 bundle_data("cronet_test_bundle_data") { |
| 96 testonly = true | 100 testonly = true |
| 97 sources = [ | 101 sources = [ |
| 98 "//net/data/ssl/certificates/quic_test.example.com.crt", | 102 "//net/data/ssl/certificates/quic_test.example.com.crt", |
| 99 "//net/data/ssl/certificates/quic_test.example.com.key", | 103 "//net/data/ssl/certificates/quic_test.example.com.key", |
| 100 "//net/data/ssl/certificates/quic_test.example.com.key.pkcs8", | 104 "//net/data/ssl/certificates/quic_test.example.com.key.pkcs8", |
| 101 "//net/data/ssl/certificates/quic_test.example.com.key.sct", | 105 "//net/data/ssl/certificates/quic_test.example.com.key.sct", |
| 102 ] | 106 ] |
| 103 outputs = [ | 107 outputs = [ |
| 104 "{{bundle_resources_dir}}/{{source_file_part}}", | 108 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 105 ] | 109 ] |
| 106 } | 110 } |
| 107 | 111 |
| 108 test("cronet_test") { | 112 test("cronet_test") { |
| 109 testonly = true | 113 testonly = true |
| 110 sources = [ | 114 sources = [ |
| 111 "test/cronet_bidirectional_stream_test.mm", | 115 "test/cronet_bidirectional_stream_test.mm", |
| 116 "test/cronet_http_test.mm", |
| 112 "test/cronet_test_runner.mm", | 117 "test/cronet_test_runner.mm", |
| 113 "test/quic_test_server.cc", | 118 "test/quic_test_server.cc", |
| 114 "test/quic_test_server.h", | 119 "test/quic_test_server.h", |
| 115 ] | 120 ] |
| 116 | 121 |
| 117 deps = [ | 122 deps = [ |
| 118 ":cronet_sources", | 123 ":cronet_framework+link", |
| 119 ":cronet_test_bundle_data", | 124 ":cronet_test_bundle_data", |
| 120 ":cronet_version_header", | 125 ":cronet_version_header", |
| 121 "//base", | 126 "//base", |
| 122 "//base:i18n", | 127 "//base:i18n", |
| 123 "//net", | 128 "//net", |
| 124 "//net:simple_quic_tools", | 129 "//net:simple_quic_tools", |
| 125 "//net:test_support", | 130 "//net:test_support", |
| 126 "//third_party/icu", | 131 "//third_party/icu", |
| 127 ] | 132 ] |
| 133 |
| 134 bundle_deps = [ ":cronet_framework+bundle" ] |
| 128 } | 135 } |
| 129 | 136 |
| 130 test("cronet_unittests") { | 137 test("cronet_unittests") { |
| 131 sources = [ | 138 sources = [ |
| 132 "//components/cronet/histogram_manager_unittest.cc", | 139 "//components/cronet/histogram_manager_unittest.cc", |
| 133 "//components/cronet/run_all_unittests.cc", | 140 "//components/cronet/run_all_unittests.cc", |
| 134 "//components/cronet/stale_host_resolver_unittest.cc", | 141 "//components/cronet/stale_host_resolver_unittest.cc", |
| 135 "//components/cronet/url_request_context_config_unittest.cc", | 142 "//components/cronet/url_request_context_config_unittest.cc", |
| 136 ] | 143 ] |
| 137 | 144 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 ] | 190 ] |
| 184 } | 191 } |
| 185 | 192 |
| 186 group("cronet_package") { | 193 group("cronet_package") { |
| 187 deps = [ | 194 deps = [ |
| 188 ":cronet_package_copy", | 195 ":cronet_package_copy", |
| 189 ":generate_license", | 196 ":generate_license", |
| 190 ] | 197 ] |
| 191 } | 198 } |
| 192 } | 199 } |
| OLD | NEW |