Chromium Code Reviews| 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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 729 } | 729 } |
| 730 | 730 |
| 731 if (enable_nacl) { | 731 if (enable_nacl) { |
| 732 deps += [ "//native_client_sdk/src:nacl_core_sdk" ] | 732 deps += [ "//native_client_sdk/src:nacl_core_sdk" ] |
| 733 } | 733 } |
| 734 | 734 |
| 735 if (is_android) { | 735 if (is_android) { |
| 736 deps += [ | 736 deps += [ |
| 737 "//build/android/gyp/test:hello_world", | 737 "//build/android/gyp/test:hello_world", |
| 738 "//build/android/incremental_install:bootstrap_java", | 738 "//build/android/incremental_install:bootstrap_java", |
| 739 | |
| 740 # Pull these in early as an optimization (makes gn gen faster). | |
| 741 "//build/config/linux(//build/toolchain/linux:clang_x64)", | |
|
brettw
2016/04/22 19:30:21
We should be more careful about bringing things in
agrieve
2016/04/25 14:45:35
Added a comment. Left in x86 and added a subsequen
| |
| 742 "//build/config/linux(//build/toolchain/linux:clang_x86)", | |
| 743 "//build/config/posix(//build/toolchain/linux:clang_x64)", | |
| 744 "//build/config/posix(//build/toolchain/linux:clang_x86)", | |
| 739 ] | 745 ] |
| 740 } | 746 } |
| 741 | 747 |
| 742 if (is_linux && use_ozone) { | 748 if (is_linux && use_ozone) { |
| 743 deps += [ | 749 deps += [ |
| 744 "//headless", | 750 "//headless", |
| 745 "//headless:headless_tests", | 751 "//headless:headless_tests", |
| 746 ] | 752 ] |
| 747 } | 753 } |
| 748 | 754 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 910 assert(target_name != "") # Mark as used. | 916 assert(target_name != "") # Mark as used. |
| 911 sources = invoker.actual_sources | 917 sources = invoker.actual_sources |
| 912 assert( | 918 assert( |
| 913 sources == invoker.actual_sources, | 919 sources == invoker.actual_sources, |
| 914 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 920 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
| 915 } | 921 } |
| 916 | 922 |
| 917 assert_valid_out_dir("_unused") { | 923 assert_valid_out_dir("_unused") { |
| 918 actual_sources = [ "$root_build_dir/foo" ] | 924 actual_sources = [ "$root_build_dir/foo" ] |
| 919 } | 925 } |
| OLD | NEW |