OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # This is the root build file for GN. GN will start processing by loading this | 5 # This is the root build file for GN. GN will start processing by loading this |
6 # file, and recursively load all dependencies until all dependencies are either | 6 # file, and recursively load all dependencies until all dependencies are either |
7 # resolved or known not to exist (which will cause the build to fail). So if | 7 # resolved or known not to exist (which will cause the build to fail). So if |
8 # you add a new build file, there must be some path of dependencies from this | 8 # you add a new build file, there must be some path of dependencies from this |
9 # file to your new one or GN won't know about it. | 9 # file to your new one or GN won't know about it. |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 # over, we can collapse all of these targets as desired. | 59 # over, we can collapse all of these targets as desired. |
60 | 60 |
61 group("gn_all") { | 61 group("gn_all") { |
62 testonly = true | 62 testonly = true |
63 | 63 |
64 deps = [ | 64 deps = [ |
65 ":both_gn_and_gyp", | 65 ":both_gn_and_gyp", |
66 ":gn_only", | 66 ":gn_only", |
67 ":gn_visibility", | 67 ":gn_visibility", |
68 ] | 68 ] |
| 69 |
| 70 if (!is_ios) { |
| 71 deps += [ |
| 72 "//v8:gn_all", |
| 73 ] |
| 74 } |
69 } | 75 } |
70 | 76 |
71 # TODO(GYP_GONE): This target exists for compatibility with GYP, specifically | 77 # TODO(GYP_GONE): This target exists for compatibility with GYP, specifically |
72 # for the iOS bots and the official builders. | 78 # for the iOS bots and the official builders. |
73 group("All") { | 79 group("All") { |
74 testonly = true | 80 testonly = true |
75 | 81 |
76 deps = [ | 82 deps = [ |
77 ":gn_all", | 83 ":gn_all", |
78 ] | 84 ] |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 assert(target_name != "") # Mark as used. | 964 assert(target_name != "") # Mark as used. |
959 sources = invoker.actual_sources | 965 sources = invoker.actual_sources |
960 assert( | 966 assert( |
961 sources == invoker.actual_sources, | 967 sources == invoker.actual_sources, |
962 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") | 968 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") |
963 } | 969 } |
964 | 970 |
965 assert_valid_out_dir("_unused") { | 971 assert_valid_out_dir("_unused") { |
966 actual_sources = [ "$root_build_dir/foo" ] | 972 actual_sources = [ "$root_build_dir/foo" ] |
967 } | 973 } |
OLD | NEW |