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

Side by Side Diff: components/cronet/ios/cronet_consumer/BUILD.gn

Issue 2907023002: Revert of [Cronet] Build static libcronet.a for iOS with complete dependencies. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « components/cronet/ios/BUILD.gn ('k') | components/cronet/tools/dummy.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/config/ios/rules.gni") 5 import("//build/config/ios/rules.gni")
6 import("//ios/features.gni")
7 6
8 template("cronet_consumer_template") { 7 ios_app_bundle("cronet_consumer") {
9 _target_name = target_name 8 info_plist = "cronet-consumer-Info.plist"
10 9
11 ios_app_bundle(_target_name) { 10 deps = [
12 info_plist = "cronet-consumer-Info.plist" 11 "//base:base",
12 "//components/cronet/ios:cronet_framework+link",
13 13
14 deps = [ 14 # All shared libraries must have the sanitizer deps to properly link in
15 "//base:base", 15 # asan mode (this target will be empty in other cases).
16 ] 16 "//build/config:exe_and_shlib_deps",
17 ]
17 18
18 deps += invoker.deps 19 sources = [
20 "cronet_consumer_app_delegate.h",
21 "cronet_consumer_app_delegate.mm",
22 "cronet_consumer_view_controller.h",
23 "cronet_consumer_view_controller.m",
24 "main.mm",
25 ]
19 26
20 sources = [ 27 bundle_deps = [ "//components/cronet/ios:cronet_framework+bundle" ]
21 "cronet_consumer_app_delegate.h",
22 "cronet_consumer_app_delegate.mm",
23 "cronet_consumer_view_controller.h",
24 "cronet_consumer_view_controller.m",
25 "main.mm",
26 ]
27 28
28 forward_variables_from(invoker, 29 configs += [ "//build/config/compiler:enable_arc" ]
29 [
30 "bundle_deps",
31 "cflags",
32 "ldflags",
33 ])
34
35 configs += [ "//build/config/compiler:enable_arc" ]
36 }
37 } 30 }
38
39 cronet_consumer_template("cronet_consumer") {
40 deps = [
41 "//components/cronet/ios:cronet_framework+link",
42 ]
43 bundle_deps = [ "//components/cronet/ios:cronet_framework+bundle" ]
44 }
45
46 # TODO(mef): Figure out why CronetConsumerStatic breaks build on non-Cronet buil ders.
47 if (is_cronet_build) {
48 cronet_consumer_template("cronet_consumer_static") {
49 deps = [
50 "//components/cronet/ios:cronet_static_framework",
51 ]
52
53 cflags = [
54 "-F",
55 "Static",
56 ]
57
58 ldflags = [
59 "-F",
60 "Static",
61 ]
62 }
63 }
OLDNEW
« no previous file with comments | « components/cronet/ios/BUILD.gn ('k') | components/cronet/tools/dummy.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698