| 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 |
| (...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 "win/wait_chain.cc", | 1076 "win/wait_chain.cc", |
| 1077 "win/wait_chain.h", | 1077 "win/wait_chain.h", |
| 1078 "win/win_util.cc", | 1078 "win/win_util.cc", |
| 1079 "win/win_util.h", | 1079 "win/win_util.h", |
| 1080 "win/windows_version.cc", | 1080 "win/windows_version.cc", |
| 1081 "win/windows_version.h", | 1081 "win/windows_version.h", |
| 1082 "win/wrapped_window_proc.cc", | 1082 "win/wrapped_window_proc.cc", |
| 1083 "win/wrapped_window_proc.h", | 1083 "win/wrapped_window_proc.h", |
| 1084 ] | 1084 ] |
| 1085 | 1085 |
| 1086 all_dependent_configs = [] |
| 1086 defines = [] | 1087 defines = [] |
| 1087 data = [] | 1088 data = [] |
| 1088 | 1089 |
| 1089 configs += [ | 1090 configs += [ |
| 1090 ":base_flags", | 1091 ":base_flags", |
| 1091 ":base_implementation", | 1092 ":base_implementation", |
| 1092 "//base/allocator:allocator_shim_define", # for allocator_check.cc. | 1093 "//base/allocator:allocator_shim_define", # for allocator_check.cc. |
| 1093 "//build/config:precompiled_headers", | 1094 "//build/config:precompiled_headers", |
| 1094 ] | 1095 ] |
| 1095 | 1096 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1106 ":build_date", | 1107 ":build_date", |
| 1107 ":debugging_flags", | 1108 ":debugging_flags", |
| 1108 ] | 1109 ] |
| 1109 | 1110 |
| 1110 # Needed for <atomic> if using newer C++ library than sysroot | 1111 # Needed for <atomic> if using newer C++ library than sysroot |
| 1111 if (!use_sysroot && (is_android || (is_linux && !is_chromecast))) { | 1112 if (!use_sysroot && (is_android || (is_linux && !is_chromecast))) { |
| 1112 libs = [ "atomic" ] | 1113 libs = [ "atomic" ] |
| 1113 } | 1114 } |
| 1114 | 1115 |
| 1115 if (use_experimental_allocator_shim) { | 1116 if (use_experimental_allocator_shim) { |
| 1116 # The allocator shim is part of the base API. This is to allow clients of | 1117 # TODO(primiano): support other platforms, currently this works only on |
| 1117 # base should to install hooks into the allocator path. | 1118 # Linux/CrOS/Android. http://crbug.com/550886 . |
| 1118 public_deps += [ "//base/allocator:unified_allocator_shim" ] | 1119 sources += [ |
| 1120 "allocator/allocator_shim.cc", |
| 1121 "allocator/allocator_shim.h", |
| 1122 "allocator/allocator_shim_internals.h", |
| 1123 "allocator/allocator_shim_override_cpp_symbols.h", |
| 1124 "allocator/allocator_shim_override_libc_symbols.h", |
| 1125 ] |
| 1126 if (is_win) { |
| 1127 sources += [ |
| 1128 "allocator/allocator_shim_default_dispatch_to_winheap.cc", |
| 1129 "allocator/allocator_shim_override_ucrt_symbols_win.h", |
| 1130 "allocator/winheap_stubs_win.cc", |
| 1131 "allocator/winheap_stubs_win.h", |
| 1132 ] |
| 1133 } else if (is_linux && use_allocator == "tcmalloc") { |
| 1134 sources += [ |
| 1135 "allocator/allocator_shim_default_dispatch_to_tcmalloc.cc", |
| 1136 "allocator/allocator_shim_override_glibc_weak_symbols.h", |
| 1137 ] |
| 1138 deps += [ "//base/allocator:tcmalloc" ] |
| 1139 } else if (is_linux && use_allocator == "none") { |
| 1140 sources += [ "allocator/allocator_shim_default_dispatch_to_glibc.cc" ] |
| 1141 } else if (is_android && use_allocator == "none") { |
| 1142 sources += [ |
| 1143 "allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc"
, |
| 1144 "allocator/allocator_shim_override_linker_wrapped_symbols.h", |
| 1145 ] |
| 1146 all_dependent_configs += [ "//base/allocator:wrap_malloc_symbols" ] |
| 1147 } |
| 1119 } | 1148 } |
| 1120 | 1149 |
| 1121 # Allow more direct string conversions on platforms with native utf8 | 1150 # Allow more direct string conversions on platforms with native utf8 |
| 1122 # strings | 1151 # strings |
| 1123 if (is_mac || is_ios || is_chromeos || is_chromecast) { | 1152 if (is_mac || is_ios || is_chromeos || is_chromecast) { |
| 1124 defines += [ "SYSTEM_NATIVE_UTF8" ] | 1153 defines += [ "SYSTEM_NATIVE_UTF8" ] |
| 1125 } | 1154 } |
| 1126 | 1155 |
| 1127 # Android. | 1156 # Android. |
| 1128 if (is_android) { | 1157 if (is_android) { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1398 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1370 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1399 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1371 | 1400 |
| 1372 libs = [ | 1401 libs = [ |
| 1373 "cfgmgr32.lib", | 1402 "cfgmgr32.lib", |
| 1374 "powrprof.lib", | 1403 "powrprof.lib", |
| 1375 "setupapi.lib", | 1404 "setupapi.lib", |
| 1376 "userenv.lib", | 1405 "userenv.lib", |
| 1377 "winmm.lib", | 1406 "winmm.lib", |
| 1378 ] | 1407 ] |
| 1379 all_dependent_configs = [ ":base_win_linker_flags" ] | 1408 all_dependent_configs += [ ":base_win_linker_flags" ] |
| 1380 } else if (!is_nacl || is_nacl_nonsfi) { | 1409 } else if (!is_nacl || is_nacl_nonsfi) { |
| 1381 # Non-Windows. | 1410 # Non-Windows. |
| 1382 deps += [ "//base/third_party/libevent" ] | 1411 deps += [ "//base/third_party/libevent" ] |
| 1383 } | 1412 } |
| 1384 | 1413 |
| 1385 # Desktop Mac. | 1414 # Desktop Mac. |
| 1386 if (is_mac) { | 1415 if (is_mac) { |
| 1387 sources += [ | 1416 sources += [ |
| 1388 "mac/scoped_typeref.h", | 1417 "mac/scoped_typeref.h", |
| 1389 "power_monitor/power_monitor_device_source_mac.mm", | 1418 "power_monitor/power_monitor_device_source_mac.mm", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 | 1455 |
| 1427 # TODO(brettw) this will need to be parameterized at some point. | 1456 # TODO(brettw) this will need to be parameterized at some point. |
| 1428 linux_configs = [] | 1457 linux_configs = [] |
| 1429 if (use_glib) { | 1458 if (use_glib) { |
| 1430 linux_configs += [ "//build/config/linux:glib" ] | 1459 linux_configs += [ "//build/config/linux:glib" ] |
| 1431 } | 1460 } |
| 1432 | 1461 |
| 1433 defines += [ "USE_SYMBOLIZE" ] | 1462 defines += [ "USE_SYMBOLIZE" ] |
| 1434 | 1463 |
| 1435 configs += linux_configs | 1464 configs += linux_configs |
| 1436 all_dependent_configs = linux_configs | 1465 all_dependent_configs += linux_configs |
| 1437 | 1466 |
| 1438 # These dependencies are not required on Android, and in the case | 1467 # These dependencies are not required on Android, and in the case |
| 1439 # of xdg_mime must be excluded due to licensing restrictions. | 1468 # of xdg_mime must be excluded due to licensing restrictions. |
| 1440 deps += [ | 1469 deps += [ |
| 1441 "//base/third_party/symbolize", | 1470 "//base/third_party/symbolize", |
| 1442 "//base/third_party/xdg_mime", | 1471 "//base/third_party/xdg_mime", |
| 1443 "//base/third_party/xdg_user_dirs", | 1472 "//base/third_party/xdg_user_dirs", |
| 1444 ] | 1473 ] |
| 1445 } else { | 1474 } else { |
| 1446 # Non-Linux. | 1475 # Non-Linux. |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2589 } | 2618 } |
| 2590 | 2619 |
| 2591 fuzzer_test("base_json_correctness_fuzzer") { | 2620 fuzzer_test("base_json_correctness_fuzzer") { |
| 2592 sources = [ | 2621 sources = [ |
| 2593 "json/correctness_fuzzer.cc", | 2622 "json/correctness_fuzzer.cc", |
| 2594 ] | 2623 ] |
| 2595 deps = [ | 2624 deps = [ |
| 2596 ":base", | 2625 ":base", |
| 2597 ] | 2626 ] |
| 2598 } | 2627 } |
| OLD | NEW |