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

Side by Side Diff: base/BUILD.gn

Issue 1988563002: Create a reader-writer lock implementaiton in base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simple-stupid implementaiton for NaCl Created 4 years, 7 months 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/base.gyp » ('j') | base/synchronization/rw_lock.h » ('J')
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
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 "synchronization/cancellation_flag.cc", 723 "synchronization/cancellation_flag.cc",
724 "synchronization/cancellation_flag.h", 724 "synchronization/cancellation_flag.h",
725 "synchronization/condition_variable.h", 725 "synchronization/condition_variable.h",
726 "synchronization/condition_variable_posix.cc", 726 "synchronization/condition_variable_posix.cc",
727 "synchronization/condition_variable_win.cc", 727 "synchronization/condition_variable_win.cc",
728 "synchronization/lock.cc", 728 "synchronization/lock.cc",
729 "synchronization/lock.h", 729 "synchronization/lock.h",
730 "synchronization/lock_impl.h", 730 "synchronization/lock_impl.h",
731 "synchronization/lock_impl_posix.cc", 731 "synchronization/lock_impl_posix.cc",
732 "synchronization/lock_impl_win.cc", 732 "synchronization/lock_impl_win.cc",
733 "synchronization/rw_lock.h",
734 "synchronization/rw_lock_nacl.cc",
735 "synchronization/rw_lock_posix.cc",
736 "synchronization/rw_lock_win.cc",
733 "synchronization/spin_wait.h", 737 "synchronization/spin_wait.h",
734 "synchronization/waitable_event.h", 738 "synchronization/waitable_event.h",
735 "synchronization/waitable_event_posix.cc", 739 "synchronization/waitable_event_posix.cc",
736 "synchronization/waitable_event_watcher.h", 740 "synchronization/waitable_event_watcher.h",
737 "synchronization/waitable_event_watcher_posix.cc", 741 "synchronization/waitable_event_watcher_posix.cc",
738 "synchronization/waitable_event_watcher_win.cc", 742 "synchronization/waitable_event_watcher_win.cc",
739 "synchronization/waitable_event_win.cc", 743 "synchronization/waitable_event_win.cc",
740 "sys_byteorder.h", 744 "sys_byteorder.h",
741 "sys_info.cc", 745 "sys_info.cc",
742 "sys_info.h", 746 "sys_info.h",
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 "process/kill.h", 1119 "process/kill.h",
1116 "process/memory.cc", 1120 "process/memory.cc",
1117 "process/memory.h", 1121 "process/memory.h",
1118 "process/process_iterator.cc", 1122 "process/process_iterator.cc",
1119 "process/process_iterator.h", 1123 "process/process_iterator.h",
1120 "process/process_metrics.cc", 1124 "process/process_metrics.cc",
1121 "process/process_metrics_posix.cc", 1125 "process/process_metrics_posix.cc",
1122 "process/process_posix.cc", 1126 "process/process_posix.cc",
1123 "scoped_native_library.cc", 1127 "scoped_native_library.cc",
1124 "sync_socket_posix.cc", 1128 "sync_socket_posix.cc",
1129 "synchronization/rw_lock_posix.cc",
1125 "sys_info.cc", 1130 "sys_info.cc",
1126 "sys_info_posix.cc", 1131 "sys_info_posix.cc",
1127 "trace_event/trace_event_system_stats_monitor.cc", 1132 "trace_event/trace_event_system_stats_monitor.cc",
1128 ] 1133 ]
1129 1134
1130 if (is_nacl_nonsfi) { 1135 if (is_nacl_nonsfi) {
1131 set_sources_assignment_filter([]) 1136 set_sources_assignment_filter([])
1132 sources += [ "posix/unix_domain_socket_linux.cc" ] 1137 sources += [ "posix/unix_domain_socket_linux.cc" ]
1133 set_sources_assignment_filter(sources_assignment_filter) 1138 set_sources_assignment_filter(sources_assignment_filter)
1134 sources -= [ "rand_util_nacl.cc" ] 1139 sources -= [ "rand_util_nacl.cc" ]
(...skipping 14 matching lines...) Expand all
1149 "rand_util_posix.cc", 1154 "rand_util_posix.cc",
1150 ] 1155 ]
1151 } 1156 }
1152 } else { 1157 } else {
1153 # Remove NaCl stuff. 1158 # Remove NaCl stuff.
1154 sources -= [ 1159 sources -= [
1155 "memory/shared_memory_nacl.cc", 1160 "memory/shared_memory_nacl.cc",
1156 "os_compat_nacl.cc", 1161 "os_compat_nacl.cc",
1157 "os_compat_nacl.h", 1162 "os_compat_nacl.h",
1158 "rand_util_nacl.cc", 1163 "rand_util_nacl.cc",
1164 "synchronization/rw_lock_nacl.cc",
1159 ] 1165 ]
1160 } 1166 }
1161 1167
1162 # Windows. 1168 # Windows.
1163 if (is_win) { 1169 if (is_win) {
1164 sources += [ 1170 sources += [
1165 "profiler/win32_stack_frame_unwinder.cc", 1171 "profiler/win32_stack_frame_unwinder.cc",
1166 "profiler/win32_stack_frame_unwinder.h", 1172 "profiler/win32_stack_frame_unwinder.h",
1167 ] 1173 ]
1168 1174
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 "strings/stringprintf_unittest.cc", 1851 "strings/stringprintf_unittest.cc",
1846 "strings/sys_string_conversions_mac_unittest.mm", 1852 "strings/sys_string_conversions_mac_unittest.mm",
1847 "strings/sys_string_conversions_unittest.cc", 1853 "strings/sys_string_conversions_unittest.cc",
1848 "strings/utf_offset_string_conversions_unittest.cc", 1854 "strings/utf_offset_string_conversions_unittest.cc",
1849 "strings/utf_string_conversions_unittest.cc", 1855 "strings/utf_string_conversions_unittest.cc",
1850 "supports_user_data_unittest.cc", 1856 "supports_user_data_unittest.cc",
1851 "sync_socket_unittest.cc", 1857 "sync_socket_unittest.cc",
1852 "synchronization/cancellation_flag_unittest.cc", 1858 "synchronization/cancellation_flag_unittest.cc",
1853 "synchronization/condition_variable_unittest.cc", 1859 "synchronization/condition_variable_unittest.cc",
1854 "synchronization/lock_unittest.cc", 1860 "synchronization/lock_unittest.cc",
1861 "synchronization/rw_lock_unittest.cc",
1855 "synchronization/waitable_event_unittest.cc", 1862 "synchronization/waitable_event_unittest.cc",
1856 "synchronization/waitable_event_watcher_unittest.cc", 1863 "synchronization/waitable_event_watcher_unittest.cc",
1857 "sys_info_unittest.cc", 1864 "sys_info_unittest.cc",
1858 "system_monitor/system_monitor_unittest.cc", 1865 "system_monitor/system_monitor_unittest.cc",
1859 "task/cancelable_task_tracker_unittest.cc", 1866 "task/cancelable_task_tracker_unittest.cc",
1860 "task_runner_util_unittest.cc", 1867 "task_runner_util_unittest.cc",
1861 "task_scheduler/delayed_task_manager_unittest.cc", 1868 "task_scheduler/delayed_task_manager_unittest.cc",
1862 "task_scheduler/priority_queue_unittest.cc", 1869 "task_scheduler/priority_queue_unittest.cc",
1863 "task_scheduler/scheduler_lock_unittest.cc", 1870 "task_scheduler/scheduler_lock_unittest.cc",
1864 "task_scheduler/scheduler_service_thread_unittest.cc", 1871 "task_scheduler/scheduler_service_thread_unittest.cc",
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
2373 2380
2374 # GYP: //base.gyp:base_java_unittest_support 2381 # GYP: //base.gyp:base_java_unittest_support
2375 android_library("base_java_unittest_support") { 2382 android_library("base_java_unittest_support") {
2376 deps = [ 2383 deps = [
2377 ":base_java", 2384 ":base_java",
2378 ] 2385 ]
2379 java_files = 2386 java_files =
2380 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 2387 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
2381 } 2388 }
2382 } 2389 }
OLDNEW
« no previous file with comments | « no previous file | base/base.gyp » ('j') | base/synchronization/rw_lock.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698