| 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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 if (is_win) { | 869 if (is_win) { |
| 870 deps += [ | 870 deps += [ |
| 871 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008 | 871 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008 |
| 872 ] | 872 ] |
| 873 } else { | 873 } else { |
| 874 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] | 874 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
| 875 } | 875 } |
| 876 } | 876 } |
| 877 } | 877 } |
| 878 | 878 |
| 879 # For compatibility with GYP. The linux_chromium_chromeos_rel_ng and |
| 880 # linux_chromium_chromeos_compile_rel_ng bots reference this target as |
| 881 # something to build, but all targets for those bots to compile are set |
| 882 # up differently. |
| 883 # TODO bug 601920: Remove reference to aura_builder on bot config and delete |
| 884 # this group. |
| 885 group("aura_builder") { |
| 886 } |
| 887 |
| 879 # Because of the source assignment filter, many targets end up over-filtering | 888 # Because of the source assignment filter, many targets end up over-filtering |
| 880 # their sources if the output directory contains a platform name. Assert that | 889 # their sources if the output directory contains a platform name. Assert that |
| 881 # this doesn't happen. http://crbug.com/548283 | 890 # this doesn't happen. http://crbug.com/548283 |
| 882 template("assert_valid_out_dir") { | 891 template("assert_valid_out_dir") { |
| 883 # List copied from //build/config/BUILDCONFIG.gn. | 892 # List copied from //build/config/BUILDCONFIG.gn. |
| 884 set_sources_assignment_filter([ | 893 set_sources_assignment_filter([ |
| 885 "*\bandroid/*", | 894 "*\bandroid/*", |
| 886 "*\bchromeos/*", | 895 "*\bchromeos/*", |
| 887 "*\bcocoa/*", | 896 "*\bcocoa/*", |
| 888 "*\bios/*", | 897 "*\bios/*", |
| 889 "*\blinux/*", | 898 "*\blinux/*", |
| 890 "*\bmac/*", | 899 "*\bmac/*", |
| 891 "*\bposix/*", | 900 "*\bposix/*", |
| 892 "*\bwin/*", | 901 "*\bwin/*", |
| 893 ]) | 902 ]) |
| 894 assert(target_name != "") # Mark as used. | 903 assert(target_name != "") # Mark as used. |
| 895 sources = invoker.actual_sources | 904 sources = invoker.actual_sources |
| 896 assert( | 905 assert( |
| 897 sources == invoker.actual_sources, | 906 sources == invoker.actual_sources, |
| 898 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") | 907 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") |
| 899 } | 908 } |
| 900 | 909 |
| 901 assert_valid_out_dir("_unused") { | 910 assert_valid_out_dir("_unused") { |
| 902 actual_sources = [ "$root_build_dir/foo" ] | 911 actual_sources = [ "$root_build_dir/foo" ] |
| 903 } | 912 } |
| OLD | NEW |