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