| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//testing/test.gni") | 10 import("//testing/test.gni") |
| 11 import("//url/features.gni") | 11 import("//url/features.gni") |
| 12 | 12 |
| 13 assert(!is_component_build, "CrNet requires static library build.") | 13 assert(!is_component_build, "CrNet requires static library build.") |
| 14 | 14 |
| 15 source_set("crnet_sources") { | 15 source_set("crnet_sources") { |
| 16 deps = [ | 16 deps = [ |
| 17 "//base:base", | 17 "//base", |
| 18 "//components/metrics:metrics", | 18 "//components/metrics", |
| 19 "//components/metrics/proto:proto", | 19 "//components/metrics/proto", |
| 20 "//components/prefs:prefs", | 20 "//components/prefs", |
| 21 "//ios/net", | 21 "//ios/net", |
| 22 "//ios/web:user_agent", | 22 "//ios/web:user_agent", |
| 23 "//net", | 23 "//net", |
| 24 "//url", | 24 "//url", |
| 25 "//url:url_features", | 25 "//url:url_features", |
| 26 ] | 26 ] |
| 27 | 27 |
| 28 sources = [ | 28 sources = [ |
| 29 "CrNet.h", | 29 "CrNet.h", |
| 30 "CrNet.mm", | 30 "CrNet.mm", |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } | 110 } |
| 111 | 111 |
| 112 ios_framework_bundle("crnet_framework") { | 112 ios_framework_bundle("crnet_framework") { |
| 113 output_name = "CrNet" | 113 output_name = "CrNet" |
| 114 info_plist_target = ":tweak_crnet_plist" | 114 info_plist_target = ":tweak_crnet_plist" |
| 115 | 115 |
| 116 deps = [ | 116 deps = [ |
| 117 ":crnet_framework_resources", | 117 ":crnet_framework_resources", |
| 118 ":crnet_sources", | 118 ":crnet_sources", |
| 119 "//base", | 119 "//base", |
| 120 "//net:net", | 120 "//net", |
| 121 ] | 121 ] |
| 122 | 122 |
| 123 libs = [ "UIKit.Framework" ] | 123 libs = [ "UIKit.Framework" ] |
| 124 | 124 |
| 125 public_headers = [ "CrNet.h" ] | 125 public_headers = [ "CrNet.h" ] |
| 126 | 126 |
| 127 sources = [ | 127 sources = [ |
| 128 "CrNet.h", | 128 "CrNet.h", |
| 129 ] | 129 ] |
| 130 | 130 |
| 131 configs -= [ "//build/config/compiler:default_symbols" ] | 131 configs -= [ "//build/config/compiler:default_symbols" ] |
| 132 configs += [ "//build/config/compiler:symbols" ] | 132 configs += [ "//build/config/compiler:symbols" ] |
| 133 } | 133 } |
| OLD | NEW |