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") | 5 assert(!is_component_build, "component build is unsupported on iOS") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 # Control whether cronet is build (this is usually set by the script | 8 # Control whether cronet is build (this is usually set by the script |
9 # components/cronet/tools/cr_cronet.py as cronet requires specific | 9 # components/cronet/tools/cr_cronet.py as cronet requires specific |
10 # gn args to build correctly). | 10 # gn args to build correctly). |
11 is_cronet_build = false | 11 is_cronet_build = false |
12 } | 12 } |
13 | 13 |
14 # 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. |
15 # This list should generally only include executables, but since some code | 15 # This list should generally only include executables, but since some code |
16 # 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 |
17 # are not used upstream to ensure they are not broken inadvertently. | 17 # are not used upstream to ensure they are not broken inadvertently. |
18 group("all") { | 18 group("all") { |
19 testonly = true | 19 testonly = true |
20 if (is_cronet_build) { | 20 if (is_cronet_build) { |
21 deps = [ | 21 deps = [ |
22 "//components/cronet/ios:cronet_package", | 22 "//components/cronet/ios:cronet_package", |
23 "//ios/crnet:crnet_framework", | 23 "//ios/crnet:crnet_framework", |
24 "//ios/crnet/crnet_consumer", | 24 "//ios/crnet/crnet_consumer", |
25 "//ios/crnet/test:crnet_test", | 25 "//ios/crnet/test:crnet_test", |
26 ] | 26 ] |
27 } else { | 27 } else { |
28 deps = [ | 28 deps = [ |
29 # List all the targets that need to be build on iOS by default. | 29 # List all the targets that need to be build on iOS by default. |
30 "//ios/chrome/app:chrome", | |
31 "//ios/chrome/app:chrome_clean_skeleton", | |
32 "//ios/web/shell:ios_web_shell", | 30 "//ios/web/shell:ios_web_shell", |
33 | 31 |
34 # List all the test targets that need to be build on iOS by default. | 32 # List all the test targets that need to be build on iOS by default. |
35 "//ios/chrome/test:all_tests", | 33 "//ios/chrome/test:all_tests", |
36 "//ios/chrome/test/earl_grey:all_tests", | 34 "//ios/chrome/test/earl_grey:all_tests", |
37 "//ios/net:all_tests", | 35 "//ios/net:all_tests", |
38 "//ios/showcase/test:all_tests", | 36 "//ios/showcase/test:all_tests", |
39 "//ios/testing:all_tests", | 37 "//ios/testing:all_tests", |
40 "//ios/web:all_tests", | 38 "//ios/web:all_tests", |
41 "//ios/web/shell/test:all_tests", | 39 "//ios/web/shell/test:all_tests", |
42 | 40 |
43 # Those dependencies are currently only used from downstream code | 41 # Those dependencies are currently only used from downstream code |
44 # and will be removed once the dependent code has been upstreamed. | 42 # and will be removed once the dependent code has been upstreamed. |
45 "//ios/chrome/share_extension", | 43 "//ios/chrome/share_extension", |
46 "//ios/chrome/today_extension", | 44 "//ios/chrome/today_extension", |
47 ] | 45 ] |
48 } | 46 } |
49 } | 47 } |
OLD | NEW |