| 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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 | 885 |
| 886 # For compatibility with GYP. The linux_chromium_chromeos_rel_ng and | 886 # For compatibility with GYP. The linux_chromium_chromeos_rel_ng and |
| 887 # linux_chromium_chromeos_compile_rel_ng bots reference this target as | 887 # linux_chromium_chromeos_compile_rel_ng bots reference this target as |
| 888 # something to build, but all targets for those bots to compile are set | 888 # something to build, but all targets for those bots to compile are set |
| 889 # up differently. | 889 # up differently. |
| 890 # TODO bug 601920: Remove reference to aura_builder on bot config and delete | 890 # TODO bug 601920: Remove reference to aura_builder on bot config and delete |
| 891 # this group. | 891 # this group. |
| 892 group("aura_builder") { | 892 group("aura_builder") { |
| 893 } | 893 } |
| 894 | 894 |
| 895 if (is_android) { |
| 896 group("optimize_gn_gen") { |
| 897 deps = [ |
| 898 # These run expensive scripts in non-default toolchains. Generally, host |
| 899 # toolchain targets are loaded in the later part of the run, and the |
| 900 # result is they push out the end of generation. By preloading these, the |
| 901 # scripts can be parallelized with the rest of the load. |
| 902 "//build/config/linux(//build/toolchain/linux:clang_x64)", |
| 903 "//build/config/posix(//build/toolchain/linux:clang_x64)", |
| 904 |
| 905 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot |
| 906 # generation. |
| 907 "//build/config/linux(//build/toolchain/linux:clang_x86)", |
| 908 "//build/config/posix(//build/toolchain/linux:clang_x86)", |
| 909 ] |
| 910 } |
| 911 } |
| 912 |
| 895 # Because of the source assignment filter, many targets end up over-filtering | 913 # Because of the source assignment filter, many targets end up over-filtering |
| 896 # their sources if the output directory contains a platform name. Assert that | 914 # their sources if the output directory contains a platform name. Assert that |
| 897 # this doesn't happen. http://crbug.com/548283 | 915 # this doesn't happen. http://crbug.com/548283 |
| 898 template("assert_valid_out_dir") { | 916 template("assert_valid_out_dir") { |
| 899 # List copied from //build/config/BUILDCONFIG.gn. | 917 # List copied from //build/config/BUILDCONFIG.gn. |
| 900 set_sources_assignment_filter([ | 918 set_sources_assignment_filter([ |
| 901 "*\bandroid/*", | 919 "*\bandroid/*", |
| 902 "*\bchromeos/*", | 920 "*\bchromeos/*", |
| 903 "*\bcocoa/*", | 921 "*\bcocoa/*", |
| 904 "*\bios/*", | 922 "*\bios/*", |
| 905 "*\blinux/*", | 923 "*\blinux/*", |
| 906 "*\bmac/*", | 924 "*\bmac/*", |
| 907 "*\bposix/*", | 925 "*\bposix/*", |
| 908 "*\bwin/*", | 926 "*\bwin/*", |
| 909 ]) | 927 ]) |
| 910 assert(target_name != "") # Mark as used. | 928 assert(target_name != "") # Mark as used. |
| 911 sources = invoker.actual_sources | 929 sources = invoker.actual_sources |
| 912 assert( | 930 assert( |
| 913 sources == invoker.actual_sources, | 931 sources == invoker.actual_sources, |
| 914 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") | 932 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") |
| 915 } | 933 } |
| 916 | 934 |
| 917 assert_valid_out_dir("_unused") { | 935 assert_valid_out_dir("_unused") { |
| 918 actual_sources = [ "$root_build_dir/foo" ] | 936 actual_sources = [ "$root_build_dir/foo" ] |
| 919 } | 937 } |
| OLD | NEW |