| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 # for the iOS bots and the official builders. | 78 # for the iOS bots and the official builders. |
| 79 group("All") { | 79 group("All") { |
| 80 testonly = true | 80 testonly = true |
| 81 | 81 |
| 82 deps = [ | 82 deps = [ |
| 83 ":gn_all", | 83 ":gn_all", |
| 84 ] | 84 ] |
| 85 } | 85 } |
| 86 | 86 |
| 87 # TODO(GYP_GONE): This target exists for compatibility with GYP for the | 87 # TODO(GYP_GONE): This target exists for compatibility with GYP for the |
| 88 # builders. For now, this builds everything. We should decide if we want to | 88 # builders that specify targets in the recipes directly. |
| 89 # build less. | 89 # Ideally it should not exist, and the builders should be specifying |
| 90 # more specific targets (or 'All') via the source-side |
| 91 # //testing/buildbot/*.json files. We should simply delete this target |
| 92 # and update any recipes that are using it. |
| 90 group("chromium_builder_tests") { | 93 group("chromium_builder_tests") { |
| 91 testonly = true | 94 testonly = true |
| 92 | 95 deps = [] |
| 93 deps = [ | |
| 94 ":All", | |
| 95 ] | |
| 96 } | 96 } |
| 97 | 97 |
| 98 if (is_chromeos) { | 98 if (is_chromeos) { |
| 99 group("chromiumos_preflight") { | 99 group("chromiumos_preflight") { |
| 100 testonly = true | 100 testonly = true |
| 101 deps = [ | 101 deps = [ |
| 102 "//breakpad:minidump_stackwalk($host_toolchain)", | 102 "//breakpad:minidump_stackwalk($host_toolchain)", |
| 103 "//chrome", | 103 "//chrome", |
| 104 "//chrome/test/chromedriver", | 104 "//chrome/test/chromedriver", |
| 105 "//media:media_unittests", | 105 "//media:media_unittests", |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 assert(target_name != "") # Mark as used. | 990 assert(target_name != "") # Mark as used. |
| 991 sources = invoker.actual_sources | 991 sources = invoker.actual_sources |
| 992 assert( | 992 assert( |
| 993 sources == invoker.actual_sources, | 993 sources == invoker.actual_sources, |
| 994 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") | 994 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") |
| 995 } | 995 } |
| 996 | 996 |
| 997 assert_valid_out_dir("_unused") { | 997 assert_valid_out_dir("_unused") { |
| 998 actual_sources = [ "$root_build_dir/foo" ] | 998 actual_sources = [ "$root_build_dir/foo" ] |
| 999 } | 999 } |
| OLD | NEW |