Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: base/BUILD.gn

Issue 2519183002: Move WTF::SpinLock to base::SpinLock. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/synchronization/spin_lock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, prefer to duplicate it in both lists. This makes it 16 # for multiple conditions, prefer 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/allocator.gni")
22 import("//build/config/arm.gni")
22 import("//build/config/chromecast_build.gni") 23 import("//build/config/chromecast_build.gni")
23 import("//build/config/clang/clang.gni") 24 import("//build/config/clang/clang.gni")
24 import("//build/config/compiler/compiler.gni") 25 import("//build/config/compiler/compiler.gni")
25 import("//build/config/dcheck_always_on.gni") 26 import("//build/config/dcheck_always_on.gni")
26 import("//build/config/nacl/config.gni") 27 import("//build/config/nacl/config.gni")
27 import("//build/config/sysroot.gni") 28 import("//build/config/sysroot.gni")
28 import("//build/config/ui.gni") 29 import("//build/config/ui.gni")
29 import("//build/nocompile.gni") 30 import("//build/nocompile.gni")
30 import("//testing/libfuzzer/fuzzer_test.gni") 31 import("//testing/libfuzzer/fuzzer_test.gni")
31 import("//testing/test.gni") 32 import("//testing/test.gni")
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 # Remove NaCl stuff. 1209 # Remove NaCl stuff.
1209 sources -= [ 1210 sources -= [
1210 "memory/shared_memory_nacl.cc", 1211 "memory/shared_memory_nacl.cc",
1211 "os_compat_nacl.cc", 1212 "os_compat_nacl.cc",
1212 "os_compat_nacl.h", 1213 "os_compat_nacl.h",
1213 "rand_util_nacl.cc", 1214 "rand_util_nacl.cc",
1214 "synchronization/read_write_lock_nacl.cc", 1215 "synchronization/read_write_lock_nacl.cc",
1215 ] 1216 ]
1216 } 1217 }
1217 1218
1219 # SpinLock uses inline assembly that doesn't work on NaCl, and for which there
1220 # is no code for ARMv6.
1221 if (!is_nacl && (current_cpu != "arm" || arm_version >= 7)) {
1222 sources += [
1223 "synchronization/spin_lock.cc",
1224 "synchronization/spin_lock.h",
1225 ]
1226 }
1227
1218 # Windows. 1228 # Windows.
1219 if (is_win) { 1229 if (is_win) {
1220 sources += [ 1230 sources += [
1221 "power_monitor/power_monitor_device_source_win.cc", 1231 "power_monitor/power_monitor_device_source_win.cc",
1222 "profiler/win32_stack_frame_unwinder.cc", 1232 "profiler/win32_stack_frame_unwinder.cc",
1223 "profiler/win32_stack_frame_unwinder.h", 1233 "profiler/win32_stack_frame_unwinder.h",
1224 ] 1234 ]
1225 1235
1226 sources -= [ 1236 sources -= [
1227 "message_loop/message_pump_libevent.cc", 1237 "message_loop/message_pump_libevent.cc",
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 } 2512 }
2503 2513
2504 fuzzer_test("base_json_correctness_fuzzer") { 2514 fuzzer_test("base_json_correctness_fuzzer") {
2505 sources = [ 2515 sources = [
2506 "json/correctness_fuzzer.cc", 2516 "json/correctness_fuzzer.cc",
2507 ] 2517 ]
2508 deps = [ 2518 deps = [
2509 ":base", 2519 ":base",
2510 ] 2520 ]
2511 } 2521 }
OLDNEW
« no previous file with comments | « no previous file | base/synchronization/spin_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698