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 |
11 import("//build/config/compiler/compiler.gni") | 11 import("//build/config/compiler/compiler.gni") |
12 import("//build/config/features.gni") | 12 import("//build/config/features.gni") |
13 import("//build/config/sanitizers/sanitizers.gni") | 13 import("//build/config/sanitizers/sanitizers.gni") |
14 import("//build/config/ui.gni") | 14 import("//build/config/ui.gni") |
15 import("//build_overrides/v8.gni") | 15 import("//build_overrides/v8.gni") |
16 import("//media/media_options.gni") | 16 import("//media/media_options.gni") |
17 import("//third_party/openh264/openh264_args.gni") | 17 import("//third_party/openh264/openh264_args.gni") |
18 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 18 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
| 19 import("//v8/snapshot_toolchain.gni") |
19 | 20 |
20 if (is_android) { | 21 if (is_android) { |
21 import("//build/config/android/config.gni") | 22 import("//build/config/android/config.gni") |
22 } | 23 } |
23 | 24 |
24 declare_args() { | 25 declare_args() { |
25 # A list of extra dependencies to add to the root target. This allows a | 26 # A list of extra dependencies to add to the root target. This allows a |
26 # checkout to add additional targets without explicitly changing any checked- | 27 # checkout to add additional targets without explicitly changing any checked- |
27 # in files. | 28 # in files. |
28 root_extra_deps = [] | 29 root_extra_deps = [] |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 "//net:hpack_fuzz_wrapper", | 970 "//net:hpack_fuzz_wrapper", |
970 "//skia:filter_fuzz_stub", | 971 "//skia:filter_fuzz_stub", |
971 ] | 972 ] |
972 } | 973 } |
973 if (enable_ipc_fuzzer && !is_component_build) { | 974 if (enable_ipc_fuzzer && !is_component_build) { |
974 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ] | 975 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ] |
975 } | 976 } |
976 if (!is_chromeos) { | 977 if (!is_chromeos) { |
977 deps += [ | 978 deps += [ |
978 "//third_party/pdfium/samples:pdfium_test", | 979 "//third_party/pdfium/samples:pdfium_test", |
979 "//v8:v8_shell($host_toolchain)", | 980 "//v8:v8_shell($v8_snapshot_toolchain)", |
980 ] | 981 ] |
981 } | 982 } |
982 if (is_clang) { | 983 if (is_clang) { |
983 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ] | 984 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ] |
984 } | 985 } |
985 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) { | 986 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) { |
986 deps += [ | 987 deps += [ |
987 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy", | 988 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy", |
988 "//content/shell:content_shell_syzyasan", | 989 "//content/shell:content_shell_syzyasan", |
989 ] | 990 ] |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 assert(target_name != "") # Mark as used. | 1037 assert(target_name != "") # Mark as used. |
1037 sources = invoker.actual_sources | 1038 sources = invoker.actual_sources |
1038 assert( | 1039 assert( |
1039 sources == invoker.actual_sources, | 1040 sources == invoker.actual_sources, |
1040 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") | 1041 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") |
1041 } | 1042 } |
1042 | 1043 |
1043 assert_valid_out_dir("_unused") { | 1044 assert_valid_out_dir("_unused") { |
1044 actual_sources = [ "$root_build_dir/foo" ] | 1045 actual_sources = [ "$root_build_dir/foo" ] |
1045 } | 1046 } |
OLD | NEW |