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

Side by Side Diff: base/BUILD.gn

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Rebase and resolve conflict. Created 4 years 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/allocator/OWNERS » ('j') | base/allocator/OWNERS » ('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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 } 1217 }
1218 } else { 1218 } else {
1219 # Remove NaCl stuff. 1219 # Remove NaCl stuff.
1220 sources -= [ 1220 sources -= [
1221 "memory/shared_memory_nacl.cc", 1221 "memory/shared_memory_nacl.cc",
1222 "os_compat_nacl.cc", 1222 "os_compat_nacl.cc",
1223 "os_compat_nacl.h", 1223 "os_compat_nacl.h",
1224 "rand_util_nacl.cc", 1224 "rand_util_nacl.cc",
1225 "synchronization/read_write_lock_nacl.cc", 1225 "synchronization/read_write_lock_nacl.cc",
1226 ] 1226 ]
1227
1228 # Add stuff that doesn't work in NaCl.
1229 sources += [
1230 # PartitionAlloc uses SpinLock, which doesn't work in NaCl (see below).
1231 "allocator/partition_allocator/address_space_randomization.cc",
1232 "allocator/partition_allocator/address_space_randomization.h",
1233 "allocator/partition_allocator/page_allocator.cc",
1234 "allocator/partition_allocator/page_allocator.h",
1235 "allocator/partition_allocator/partition_alloc.cc",
1236 "allocator/partition_allocator/partition_alloc.h",
1237 ]
1227 } 1238 }
1228 1239
1229 # SpinLock uses inline assembly that doesn't work on NaCl, and for which there 1240 # SpinLock uses inline assembly that doesn't work on NaCl, and for which there
1230 # is no code for ARMv6. 1241 # is no code for ARMv6.
1231 if (!is_nacl && (current_cpu != "arm" || arm_version >= 7)) { 1242 if (!is_nacl && (current_cpu != "arm" || arm_version >= 7)) {
1232 sources += [ 1243 sources += [
1233 "synchronization/spin_lock.cc", 1244 "synchronization/spin_lock.cc",
1234 "synchronization/spin_lock.h", 1245 "synchronization/spin_lock.h",
1235 ] 1246 ]
1236 } 1247 }
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 configs += [ "//build/config/compiler:enable_arc" ] 1788 configs += [ "//build/config/compiler:enable_arc" ]
1778 deps = [ 1789 deps = [
1779 ":base", 1790 ":base",
1780 "//testing/gtest", 1791 "//testing/gtest",
1781 ] 1792 ]
1782 } 1793 }
1783 } 1794 }
1784 1795
1785 test("base_unittests") { 1796 test("base_unittests") {
1786 sources = [ 1797 sources = [
1798 "allocator/partition_allocator/partition_alloc_unittest.cc",
1787 "allocator/tcmalloc_unittest.cc", 1799 "allocator/tcmalloc_unittest.cc",
1788 "android/application_status_listener_unittest.cc", 1800 "android/application_status_listener_unittest.cc",
1789 "android/content_uri_utils_unittest.cc", 1801 "android/content_uri_utils_unittest.cc",
1790 "android/jni_android_unittest.cc", 1802 "android/jni_android_unittest.cc",
1791 "android/jni_array_unittest.cc", 1803 "android/jni_array_unittest.cc",
1792 "android/jni_string_unittest.cc", 1804 "android/jni_string_unittest.cc",
1793 "android/library_loader/library_prefetcher_unittest.cc", 1805 "android/library_loader/library_prefetcher_unittest.cc",
1794 "android/path_utils_unittest.cc", 1806 "android/path_utils_unittest.cc",
1795 "android/scoped_java_ref_unittest.cc", 1807 "android/scoped_java_ref_unittest.cc",
1796 "android/sys_utils_unittest.cc", 1808 "android/sys_utils_unittest.cc",
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 } 2539 }
2528 2540
2529 fuzzer_test("base_json_correctness_fuzzer") { 2541 fuzzer_test("base_json_correctness_fuzzer") {
2530 sources = [ 2542 sources = [
2531 "json/correctness_fuzzer.cc", 2543 "json/correctness_fuzzer.cc",
2532 ] 2544 ]
2533 deps = [ 2545 deps = [
2534 ":base", 2546 ":base",
2535 ] 2547 ]
2536 } 2548 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/OWNERS » ('j') | base/allocator/OWNERS » ('J')

Powered by Google App Engine
This is Rietveld 408576698