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 # HOW TO WRITE CONDITIONALS IN THIS FILE | 5 # HOW TO WRITE CONDITIONALS IN THIS FILE |
6 # ====================================== | 6 # ====================================== |
7 # | 7 # |
8 # In many other places, one would write a conditional that expresses all the | 8 # In many other places, one would write a conditional that expresses all the |
9 # cases when a source file is used or unused, and then either add or subtract | 9 # cases when a source file is used or unused, and then either add or subtract |
10 # it from the sources list in that case | 10 # it from the sources list in that case |
11 # | 11 # |
12 # Since base includes so many low-level things that vary widely and | 12 # Since base includes so many low-level things that vary widely and |
13 # unpredictably for the various build types, we prefer a slightly different | 13 # unpredictably for the various build types, we prefer a slightly different |
14 # style. Instead, there are big per-platform blocks of inclusions and | 14 # style. Instead, there are big per-platform blocks of inclusions and |
15 # exclusions. If a given file has an inclusion or exclusion rule that applies | 15 # exclusions. If a given file has an inclusion or exclusion rule that applies |
16 # for multiple conditions, perfer to duplicate it in both lists. This makes it | 16 # for multiple conditions, perfer to duplicate it in both lists. This makes it |
17 # a bit easier to see which files apply in which cases rather than having a | 17 # a bit easier to see which files apply in which cases rather than having a |
18 # huge sequence of random-looking conditionals. | 18 # huge sequence of random-looking conditionals. |
19 | 19 |
20 import("//build/buildflag_header.gni") | 20 import("//build/buildflag_header.gni") |
21 import("//build/config/compiler/compiler.gni") | 21 import("//build/config/compiler/compiler.gni") |
22 import("//build/config/nacl/config.gni") | 22 import("//build/config/nacl/config.gni") |
23 import("//build/config/ui.gni") | 23 import("//build/config/ui.gni") |
24 import("//build/nocompile.gni") | 24 import("//build/nocompile.gni") |
25 import("//testing/test.gni") | 25 import("//testing/test.gni") |
26 | 26 |
| 27 declare_args() { |
| 28 # Whether to disable the handle verifier hooks. |
| 29 # Hookless parts of the handle verifier will still function. |
| 30 win_disable_handle_verifier_hooks = false |
| 31 } |
| 32 |
27 if (is_android) { | 33 if (is_android) { |
28 import("//build/config/android/rules.gni") | 34 import("//build/config/android/rules.gni") |
29 } | 35 } |
30 | 36 |
31 config("base_flags") { | 37 config("base_flags") { |
32 if (is_clang) { | 38 if (is_clang) { |
33 cflags = [ | 39 cflags = [ |
34 # Don't die on dtoa code that uses a char as an array index. | 40 # Don't die on dtoa code that uses a char as an array index. |
35 # This is required solely for base/third_party/dmg_fp/dtoa_wrapper.cc. | 41 # This is required solely for base/third_party/dmg_fp/dtoa_wrapper.cc. |
36 "-Wno-char-subscripts", | 42 "-Wno-char-subscripts", |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 # Not using sha1_win.cc because it may have caused a | 1112 # Not using sha1_win.cc because it may have caused a |
1107 # regression to page cycler moz. | 1113 # regression to page cycler moz. |
1108 "sha1_win.cc", | 1114 "sha1_win.cc", |
1109 ] | 1115 ] |
1110 | 1116 |
1111 # Required for base/stack_trace_win.cc to symbolize correctly. | 1117 # Required for base/stack_trace_win.cc to symbolize correctly. |
1112 data += [ "$root_build_dir/dbghelp.dll" ] | 1118 data += [ "$root_build_dir/dbghelp.dll" ] |
1113 | 1119 |
1114 deps += [ "//base/trace_event/etw_manifest:chrome_events_win" ] | 1120 deps += [ "//base/trace_event/etw_manifest:chrome_events_win" ] |
1115 | 1121 |
| 1122 if (is_win && win_disable_handle_verifier_hooks) { |
| 1123 defines += [ "DISABLE_HANDLE_VERIFIER_HOOKS" ] |
| 1124 } |
| 1125 |
1116 if (is_component_build) { | 1126 if (is_component_build) { |
1117 # Copy the VS runtime DLLs into the isolate so that they don't have to be | 1127 # Copy the VS runtime DLLs into the isolate so that they don't have to be |
1118 # preinstalled on the target machine. The debug runtimes have a "d" at | 1128 # preinstalled on the target machine. The debug runtimes have a "d" at |
1119 # the end. | 1129 # the end. |
1120 if (is_debug) { | 1130 if (is_debug) { |
1121 vcrt_suffix = "d" | 1131 vcrt_suffix = "d" |
1122 } else { | 1132 } else { |
1123 vcrt_suffix = "" | 1133 vcrt_suffix = "" |
1124 } | 1134 } |
1125 | 1135 |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1875 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1885 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1876 | 1886 |
1877 # Symbols for crashes when running tests on swarming. | 1887 # Symbols for crashes when running tests on swarming. |
1878 if (symbol_level > 0) { | 1888 if (symbol_level > 0) { |
1879 if (is_win) { | 1889 if (is_win) { |
1880 data += [ "$root_out_dir/base_unittests.exe.pdb" ] | 1890 data += [ "$root_out_dir/base_unittests.exe.pdb" ] |
1881 } else if (is_mac) { | 1891 } else if (is_mac) { |
1882 data += [ "$root_out_dir/base_unittests.dSYM/" ] | 1892 data += [ "$root_out_dir/base_unittests.dSYM/" ] |
1883 } | 1893 } |
1884 } | 1894 } |
| 1895 |
| 1896 # This disables one of the handle verifier tests. |
| 1897 if (is_win && win_disable_handle_verifier_hooks) { |
| 1898 defines = [ "DISABLE_HANDLE_VERIFIER_HOOKS" ] |
| 1899 } |
1885 } | 1900 } |
1886 | 1901 |
1887 if (enable_nocompile_tests) { | 1902 if (enable_nocompile_tests) { |
1888 nocompile_test("base_nocompile_tests") { | 1903 nocompile_test("base_nocompile_tests") { |
1889 sources = [ | 1904 sources = [ |
1890 "bind_unittest.nc", | 1905 "bind_unittest.nc", |
1891 "callback_list_unittest.nc", | 1906 "callback_list_unittest.nc", |
1892 "callback_unittest.nc", | 1907 "callback_unittest.nc", |
1893 "memory/scoped_ptr_unittest.nc", | 1908 "memory/scoped_ptr_unittest.nc", |
1894 "memory/weak_ptr_unittest.nc", | 1909 "memory/weak_ptr_unittest.nc", |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2047 | 2062 |
2048 # GYP: //base.gyp:base_java_unittest_support | 2063 # GYP: //base.gyp:base_java_unittest_support |
2049 android_library("base_java_unittest_support") { | 2064 android_library("base_java_unittest_support") { |
2050 deps = [ | 2065 deps = [ |
2051 ":base_java", | 2066 ":base_java", |
2052 ] | 2067 ] |
2053 java_files = | 2068 java_files = |
2054 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 2069 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
2055 } | 2070 } |
2056 } | 2071 } |
OLD | NEW |