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/features.gni") | 11 import("//build/config/features.gni") |
12 import("//build/config/sanitizers/sanitizers.gni") | 12 import("//build/config/sanitizers/sanitizers.gni") |
13 import("//build/config/ui.gni") | 13 import("//build/config/ui.gni") |
14 import("//build_overrides/v8.gni") | 14 import("//build_overrides/v8.gni") |
15 import("//media/media_options.gni") | 15 import("//media/media_options.gni") |
16 import("//third_party/openh264/openh264_args.gni") | 16 import("//third_party/openh264/openh264_args.gni") |
17 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | |
17 | 18 |
18 if (is_android) { | 19 if (is_android) { |
19 import("//build/config/android/config.gni") | 20 import("//build/config/android/config.gni") |
20 } | 21 } |
21 | 22 |
22 declare_args() { | 23 declare_args() { |
23 # A list of extra dependencies to add to the root target. This allows a | 24 # A list of extra dependencies to add to the root target. This allows a |
24 # checkout to add additional targets without explicitly changing any checked- | 25 # checkout to add additional targets without explicitly changing any checked- |
25 # in files. | 26 # in files. |
26 root_extra_deps = [] | 27 root_extra_deps = [] |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
894 deps += [ | 895 deps += [ |
895 "//chrome/installer/mini_installer:mini_installer", | 896 "//chrome/installer/mini_installer:mini_installer", |
896 "//third_party/angle/src/tests:angle_perftests", | 897 "//third_party/angle/src/tests:angle_perftests", |
897 ] | 898 ] |
898 } else { | 899 } else { |
899 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] | 900 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
900 } | 901 } |
901 } | 902 } |
902 } | 903 } |
903 | 904 |
905 if (!is_ios && !is_android && !is_chromecast) { | |
906 group("chromium_builder_asan") { | |
907 deps = [ | |
908 "//chrome:chrome", | |
909 "//content/shell:content_shell", | |
910 "//v8:d8", | |
911 ] | |
912 if (!is_win) { | |
913 deps += [ | |
914 "//net:dns_fuzz_stub", | |
915 "//net:hpack_fuzz_wrapper", | |
916 "//skia:filter_fuzz_stub", | |
917 ] | |
918 } | |
919 if (enable_ipc_fuzzer && !is_component_build) { | |
920 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ] | |
921 } | |
922 if (!is_chromeos && current_toolchain == host_toolchain) { | |
Dirk Pranke
2016/06/10 17:47:09
When you just run `ninja chromium_builder_asan`, t
Nico
2016/06/10 17:50:45
Ah, thanks, done. (gn_all has the pattern I added
Dirk Pranke
2016/06/10 17:55:03
You mean gn_only, right? Yeah, that usage is almos
| |
923 deps += [ | |
924 "//third_party/pdfium/samples:pdfium_test", | |
925 "//v8:v8_shell", | |
926 ] | |
927 } | |
928 if (is_clang) { | |
929 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ] | |
930 } | |
931 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) { | |
932 deps += [ | |
933 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy", | |
934 # TODO(GYP): Add this once it exists, https://crbug.com/619086 | |
935 # "//content/shell:content_shell_syzyasan | |
936 ] | |
937 if (is_multi_dll_chrome) { | |
938 deps += [ "//chrome/tools/build/win/syzygy:chrome_child_dll_syzygy" ] | |
939 } | |
940 } | |
941 } | |
942 } | |
943 | |
904 # For compatibility with GYP. The linux_chromium_chromeos_rel_ng and | 944 # For compatibility with GYP. The linux_chromium_chromeos_rel_ng and |
905 # linux_chromium_chromeos_compile_rel_ng bots reference this target as | 945 # linux_chromium_chromeos_compile_rel_ng bots reference this target as |
906 # something to build, but all targets for those bots to compile are set | 946 # something to build, but all targets for those bots to compile are set |
907 # up differently. | 947 # up differently. |
908 # TODO bug 601920: Remove reference to aura_builder on bot config and delete | 948 # TODO bug 601920: Remove reference to aura_builder on bot config and delete |
909 # this group. | 949 # this group. |
910 group("aura_builder") { | 950 group("aura_builder") { |
911 } | 951 } |
912 | 952 |
913 if (is_android) { | 953 if (is_android) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
946 assert(target_name != "") # Mark as used. | 986 assert(target_name != "") # Mark as used. |
947 sources = invoker.actual_sources | 987 sources = invoker.actual_sources |
948 assert( | 988 assert( |
949 sources == invoker.actual_sources, | 989 sources == invoker.actual_sources, |
950 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 990 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
951 } | 991 } |
952 | 992 |
953 assert_valid_out_dir("_unused") { | 993 assert_valid_out_dir("_unused") { |
954 actual_sources = [ "$root_build_dir/foo" ] | 994 actual_sources = [ "$root_build_dir/foo" ] |
955 } | 995 } |
OLD | NEW |