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/allocator.gni") |
21 import("//build/config/compiler/compiler.gni") | 22 import("//build/config/compiler/compiler.gni") |
22 import("//build/config/nacl/config.gni") | 23 import("//build/config/nacl/config.gni") |
23 import("//build/config/sysroot.gni") | 24 import("//build/config/sysroot.gni") |
24 import("//build/config/ui.gni") | 25 import("//build/config/ui.gni") |
25 import("//build/nocompile.gni") | 26 import("//build/nocompile.gni") |
26 import("//testing/test.gni") | 27 import("//testing/test.gni") |
27 | 28 |
28 declare_args() { | 29 declare_args() { |
29 # Override this value to give a specific build date. | 30 # Override this value to give a specific build date. |
30 # See //base/build_time.cc for more details. | 31 # See //base/build_time.cc for more details. |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 | 968 |
968 configs += [ | 969 configs += [ |
969 ":base_flags", | 970 ":base_flags", |
970 ":base_implementation", | 971 ":base_implementation", |
971 "//base/allocator:allocator_shim_define", # for allocator_check.cc. | 972 "//base/allocator:allocator_shim_define", # for allocator_check.cc. |
972 "//build/config:precompiled_headers", | 973 "//build/config:precompiled_headers", |
973 ] | 974 ] |
974 | 975 |
975 deps = [ | 976 deps = [ |
976 "//base/allocator", | 977 "//base/allocator", |
| 978 "//base/allocator:features", |
977 "//base/third_party/dynamic_annotations", | 979 "//base/third_party/dynamic_annotations", |
978 "//third_party/modp_b64", | 980 "//third_party/modp_b64", |
979 ] | 981 ] |
980 | 982 |
981 public_deps = [ | 983 public_deps = [ |
982 ":base_paths", | 984 ":base_paths", |
983 ":base_static", | 985 ":base_static", |
984 ":build_date", | 986 ":build_date", |
985 ":debugging_flags", | 987 ":debugging_flags", |
986 ] | 988 ] |
987 | 989 |
988 # Needed for <atomic> if using newer C++ library than sysroot | 990 # Needed for <atomic> if using newer C++ library than sysroot |
989 if (!use_sysroot && (is_android || is_linux)) { | 991 if (!use_sysroot && (is_android || is_linux)) { |
990 libs = [ "atomic" ] | 992 libs = [ "atomic" ] |
991 } | 993 } |
992 | 994 |
| 995 if (use_experimental_allocator_shim) { |
| 996 # The allocator shim is part of the base API. This is to allow clients of |
| 997 # base should to install hooks into the allocator path. |
| 998 public_deps += [ "//base/allocator:unified_allocator_shim" ] |
| 999 } |
| 1000 |
993 # Allow more direct string conversions on platforms with native utf8 | 1001 # Allow more direct string conversions on platforms with native utf8 |
994 # strings | 1002 # strings |
995 if (is_mac || is_ios || is_chromeos) { | 1003 if (is_mac || is_ios || is_chromeos) { |
996 defines += [ "SYSTEM_NATIVE_UTF8" ] | 1004 defines += [ "SYSTEM_NATIVE_UTF8" ] |
997 } | 1005 } |
998 | 1006 |
999 # Android. | 1007 # Android. |
1000 if (is_android) { | 1008 if (is_android) { |
1001 sources -= [ | 1009 sources -= [ |
1002 "debug/stack_trace_posix.cc", | 1010 "debug/stack_trace_posix.cc", |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1891 "trace_event/trace_event_android_unittest.cc", | 1899 "trace_event/trace_event_android_unittest.cc", |
1892 ] | 1900 ] |
1893 set_sources_assignment_filter(sources_assignment_filter) | 1901 set_sources_assignment_filter(sources_assignment_filter) |
1894 } | 1902 } |
1895 | 1903 |
1896 if (is_win && target_cpu == "x64") { | 1904 if (is_win && target_cpu == "x64") { |
1897 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 1905 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] |
1898 deps += [ ":base_profiler_test_support_library" ] | 1906 deps += [ ":base_profiler_test_support_library" ] |
1899 } | 1907 } |
1900 | 1908 |
| 1909 if (use_experimental_allocator_shim) { |
| 1910 sources += [ "allocator/allocator_shim_unittest.cc" ] |
| 1911 } |
| 1912 |
1901 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1913 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1902 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1914 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1903 | 1915 |
1904 # Symbols for crashes when running tests on swarming. | 1916 # Symbols for crashes when running tests on swarming. |
1905 if (symbol_level > 0) { | 1917 if (symbol_level > 0) { |
1906 if (is_win) { | 1918 if (is_win) { |
1907 data += [ "$root_out_dir/base_unittests.exe.pdb" ] | 1919 data += [ "$root_out_dir/base_unittests.exe.pdb" ] |
1908 } else if (is_mac) { | 1920 } else if (is_mac) { |
1909 data += [ "$root_out_dir/base_unittests.dSYM/" ] | 1921 data += [ "$root_out_dir/base_unittests.dSYM/" ] |
1910 } | 1922 } |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2098 | 2110 |
2099 # GYP: //base.gyp:base_java_unittest_support | 2111 # GYP: //base.gyp:base_java_unittest_support |
2100 android_library("base_java_unittest_support") { | 2112 android_library("base_java_unittest_support") { |
2101 deps = [ | 2113 deps = [ |
2102 ":base_java", | 2114 ":base_java", |
2103 ] | 2115 ] |
2104 java_files = | 2116 java_files = |
2105 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 2117 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
2106 } | 2118 } |
2107 } | 2119 } |
OLD | NEW |