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 assert(!is_component_build, "component build is unsupported on iOS") |
| 6 |
| 7 declare_args() { |
| 8 # Control whether cronet is build (this is usually set by the script |
| 9 # components/cronet/tools/cr_cronet.py as cronet requires specific |
| 10 # gn args to build correctly). |
| 11 is_cronet_build = false |
| 12 } |
| 13 |
5 # This list all targets that needs to be build as part of "gn_all" on iOS. | 14 # This list all targets that needs to be build as part of "gn_all" on iOS. |
6 # This list should generally only include executables, but since some code | 15 # This list should generally only include executables, but since some code |
7 # has not yet been upstreamed it will sometimes also include targets that | 16 # has not yet been upstreamed it will sometimes also include targets that |
8 # are not used upstream to ensure they are not broken inadvertently. | 17 # are not used upstream to ensure they are not broken inadvertently. |
9 group("all") { | 18 group("all") { |
10 testonly = true | 19 testonly = true |
11 deps = [ | 20 if (is_cronet_build) { |
12 "//ios/chrome:ios_chrome_unittests", | 21 deps = [ |
13 "//ios/chrome/app", | |
14 "//ios/chrome/browser", | |
15 "//ios/chrome/common", | |
16 "//ios/chrome/common/physical_web", | |
17 "//ios/chrome/share_extension:packed_resources", | |
18 "//ios/chrome/today_extension:packed_resources", | |
19 "//ios/net:ios_net_unittests", | |
20 "//ios/public/provider/chrome/browser", | |
21 "//ios/public/provider/web", | |
22 "//ios/testing:ocmock_support_unittest", | |
23 "//ios/third_party/earl_grey", | |
24 "//ios/web:earl_grey_test_support", | |
25 "//ios/web:ios_web_inttests", | |
26 "//ios/web:ios_web_unittests", | |
27 "//ios/web/shell:ios_web_shell", | |
28 "//ios/web/shell/test:ios_web_shell_test_host", | |
29 ] | |
30 | |
31 if (!is_component_build) { | |
32 deps += [ | |
33 "//components/cronet/ios:cronet_package", | 22 "//components/cronet/ios:cronet_package", |
34 "//ios/crnet:crnet_framework", | 23 "//ios/crnet:crnet_framework", |
35 "//ios/crnet/crnet_consumer", | 24 "//ios/crnet/crnet_consumer", |
36 "//ios/crnet/test:crnet_test", | 25 "//ios/crnet/test:crnet_test", |
37 ] | 26 ] |
| 27 } else { |
| 28 deps = [ |
| 29 "//ios/chrome:ios_chrome_unittests", |
| 30 "//ios/chrome/app", |
| 31 "//ios/chrome/browser", |
| 32 "//ios/chrome/common", |
| 33 "//ios/chrome/common/physical_web", |
| 34 "//ios/chrome/share_extension:packed_resources", |
| 35 "//ios/chrome/today_extension:packed_resources", |
| 36 "//ios/net:ios_net_unittests", |
| 37 "//ios/public/provider/chrome/browser", |
| 38 "//ios/public/provider/web", |
| 39 "//ios/testing:ocmock_support_unittest", |
| 40 "//ios/third_party/earl_grey", |
| 41 "//ios/web:earl_grey_test_support", |
| 42 "//ios/web:ios_web_inttests", |
| 43 "//ios/web:ios_web_unittests", |
| 44 "//ios/web/shell:ios_web_shell", |
| 45 "//ios/web/shell/test:ios_web_shell_test_host", |
| 46 ] |
38 } | 47 } |
39 } | 48 } |
OLD | NEW |