| 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/version.gni") | 9 import("//build/util/version.gni") |
| 10 import("//chrome/version.gni") | 10 import("//chrome/version.gni") |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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/metrics:metrics", | 33 "//components/metrics:metrics", |
| 34 "//components/metrics/proto:proto", | 34 "//components/metrics/proto:proto", |
| 35 "//components/prefs:prefs", | 35 "//components/prefs:prefs", |
| 36 "//ios/net:net", |
| 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 "../url_request_context_config.cc", | 44 "../url_request_context_config.cc", |
| 44 "../url_request_context_config.h", | 45 "../url_request_context_config.h", |
| 46 "Cronet+TestSupport.h", |
| 47 "Cronet.h", |
| 48 "Cronet.mm", |
| 45 "cronet_bidirectional_stream.cc", | 49 "cronet_bidirectional_stream.cc", |
| 46 "cronet_bidirectional_stream.h", | 50 "cronet_bidirectional_stream.h", |
| 47 "cronet_c_for_grpc.cc", | 51 "cronet_c_for_grpc.cc", |
| 48 "cronet_c_for_grpc.h", | 52 "cronet_c_for_grpc.h", |
| 49 "cronet_environment.cc", | 53 "cronet_environment.cc", |
| 50 "cronet_environment.h", | 54 "cronet_environment.h", |
| 51 ] | 55 ] |
| 52 | 56 |
| 53 if (!use_platform_icu_alternatives) { | 57 if (!use_platform_icu_alternatives) { |
| 54 deps += [ "//base:i18n" ] | 58 deps += [ "//base:i18n" ] |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 | 77 |
| 74 libs = [ "UIKit.Framework" ] | 78 libs = [ "UIKit.Framework" ] |
| 75 | 79 |
| 76 public_headers = [ | 80 public_headers = [ |
| 77 "Cronet.h", | 81 "Cronet.h", |
| 78 "cronet_c_for_grpc.h", | 82 "cronet_c_for_grpc.h", |
| 79 ] | 83 ] |
| 80 | 84 |
| 81 sources = [ | 85 sources = [ |
| 82 "Cronet.h", | 86 "Cronet.h", |
| 83 "Cronet.mm", | 87 "cronet_c_for_grpc.h", |
| 84 ] | 88 ] |
| 85 | 89 |
| 86 configs -= [ "//build/config/compiler:default_symbols" ] | 90 configs -= [ "//build/config/compiler:default_symbols" ] |
| 87 configs += [ "//build/config/compiler:symbols" ] | 91 configs += [ "//build/config/compiler:symbols" ] |
| 88 } | 92 } |
| 89 | 93 |
| 90 bundle_data("cronet_test_bundle_data") { | 94 bundle_data("cronet_test_bundle_data") { |
| 91 testonly = true | 95 testonly = true |
| 92 sources = [ | 96 sources = [ |
| 93 "//net/data/ssl/certificates/quic_test.example.com.crt", | 97 "//net/data/ssl/certificates/quic_test.example.com.crt", |
| 94 "//net/data/ssl/certificates/quic_test.example.com.key", | 98 "//net/data/ssl/certificates/quic_test.example.com.key", |
| 95 "//net/data/ssl/certificates/quic_test.example.com.key.pkcs8", | 99 "//net/data/ssl/certificates/quic_test.example.com.key.pkcs8", |
| 96 "//net/data/ssl/certificates/quic_test.example.com.key.sct", | 100 "//net/data/ssl/certificates/quic_test.example.com.key.sct", |
| 97 ] | 101 ] |
| 98 outputs = [ | 102 outputs = [ |
| 99 "{{bundle_resources_dir}}/{{source_file_part}}", | 103 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 100 ] | 104 ] |
| 101 } | 105 } |
| 102 | 106 |
| 103 test("cronet_test") { | 107 test("cronet_test") { |
| 104 testonly = true | 108 testonly = true |
| 105 sources = [ | 109 sources = [ |
| 106 "test/cronet_bidirectional_stream_test.mm", | 110 "test/cronet_bidirectional_stream_test.mm", |
| 111 "test/cronet_http_test.mm", |
| 107 "test/cronet_test_runner.mm", | 112 "test/cronet_test_runner.mm", |
| 108 "test/quic_test_server.cc", | 113 "test/quic_test_server.cc", |
| 109 "test/quic_test_server.h", | 114 "test/quic_test_server.h", |
| 110 ] | 115 ] |
| 111 | 116 |
| 112 deps = [ | 117 deps = [ |
| 113 ":cronet_sources", | 118 ":cronet_sources", |
| 114 ":cronet_test_bundle_data", | 119 ":cronet_test_bundle_data", |
| 115 ":cronet_version_header", | 120 ":cronet_version_header", |
| 116 "//base", | 121 "//base", |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 ] | 176 ] |
| 172 } | 177 } |
| 173 | 178 |
| 174 group("cronet_package") { | 179 group("cronet_package") { |
| 175 deps = [ | 180 deps = [ |
| 176 ":cronet_package_copy", | 181 ":cronet_package_copy", |
| 177 ":generate_license", | 182 ":generate_license", |
| 178 ] | 183 ] |
| 179 } | 184 } |
| 180 } | 185 } |
| OLD | NEW |