Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Side by Side Diff: ios/crnet/BUILD.gn

Issue 2200323003: [Cronet] Add BUILD.gn for legacy ios/CrNet project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
sdefresne 2016/08/02 21:54:11 2015 → 2016
mef 2016/08/02 22:19:17 Done.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/buildflag_header.gni")
6 import("//build/config/ios/rules.gni")
7 import("//build/config/mac/symbols.gni")
8 import("//build/mac/tweak_info_plist.gni")
9 import("//build/util/version.gni")
10 import("//chrome/version.gni")
11 import("//testing/test.gni")
12 import("//url/features.gni")
13
14 assert(!is_component_build, "CrNet requires static library build.")
15
16 source_set("crnet_sources") {
17 deps = [
18 "//base:base",
19 "//components/metrics:metrics",
20 "//components/metrics/proto:proto",
21 "//components/prefs:prefs",
22 "//ios/net",
23 "//ios/web:user_agent",
24 "//net",
25 "//url",
26 ]
27
28 sources = [
29 "CrNet.h",
30 "CrNet.mm",
31 "crnet_environment.h",
32 "crnet_environment.mm",
33 "sdch_owner_pref_storage.cc",
34 "sdch_owner_pref_storage.h",
35 ]
36
37 if (!use_platform_icu_alternatives) {
38 deps += [ "//base:i18n" ]
39 }
40 }
41
42 # Tweak |info_plist| with current version and revision.
43 tweak_info_plist("tweak_crnet_plist") {
44 info_plist = "Info.plist"
45 args = []
46 }
47
48 ios_framework_bundle("crnet_framework") {
49 output_name = "CrNet"
50 info_plist_target = ":tweak_crnet_plist"
51 code_signing_enabled = false
52
53 deps = [
54 ":crnet_sources",
55 "//base",
56 "//net:net",
57 ]
58
59 libs = [ "UIKit.Framework" ]
60
61 public_headers = [ "CrNet.h" ]
62
63 sources = [
64 "CrNet.h",
65 ]
66
67 configs -= [ "//build/config/compiler:default_symbols" ]
68 configs += [ "//build/config/compiler:symbols" ]
69 }
70
71 ios_app_bundle("crnet_consumer") {
sdefresne 2016/08/02 21:54:11 Move this target to src/ios/crnet/crnet_consumer/B
mef 2016/08/03 20:42:41 Done.
72 info_plist = "crnet_consumer/crnet-consumer-info.plist"
73
74 deps = [
75 ":crnet_sources",
sdefresne 2016/08/02 21:54:11 I think this dependency should be removed and inst
mef 2016/08/02 22:19:17 Done. The crnet_consumer app now has embedded fram
76
77 # All shared libraries must have the sanitizer deps to properly link in
78 # asan mode (this target will be empty in other cases).
79 "//build/config/sanitizers:deps",
80 ]
81
82 sources = [
83 "crnet_consumer/crnet_consumer_app_delegate.h",
84 "crnet_consumer/crnet_consumer_app_delegate.mm",
85 "crnet_consumer/crnet_consumer_view_controller.h",
86 "crnet_consumer/crnet_consumer_view_controller.m",
87 "crnet_consumer/main.mm",
88 ]
89
90 configs += [ "//build/config/compiler:enable_arc" ]
91 }
92
93 test("crnet_test") {
sdefresne 2016/08/02 21:54:11 Move this target to src/ios/crnet/test/BUILD.gn.
mef 2016/08/03 20:42:41 Done.
94 testonly = true
95 sources = [
96 "test/crnet_http_tests.mm",
97 "test/crnet_test_runner.mm",
98 ]
99
100 deps = [
101 ":crnet_sources",
sdefresne 2016/08/02 21:54:11 ditto about dependency on ":crnet_sources"
mef 2016/08/03 20:42:41 Hrm, this target uses stuff that is not exported f
102 "//base",
103 "//base:i18n",
104 "//ios/third_party/gcdwebserver",
105 "//net",
106 "//net:simple_quic_tools",
107 "//net:test_support",
108 "//third_party/icu",
109 ]
110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698