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 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 } | 1227 } |
1228 } else { | 1228 } else { |
1229 # Remove NaCl stuff. | 1229 # Remove NaCl stuff. |
1230 sources -= [ | 1230 sources -= [ |
1231 "memory/shared_memory_nacl.cc", | 1231 "memory/shared_memory_nacl.cc", |
1232 "os_compat_nacl.cc", | 1232 "os_compat_nacl.cc", |
1233 "os_compat_nacl.h", | 1233 "os_compat_nacl.h", |
1234 "rand_util_nacl.cc", | 1234 "rand_util_nacl.cc", |
1235 "synchronization/read_write_lock_nacl.cc", | 1235 "synchronization/read_write_lock_nacl.cc", |
1236 ] | 1236 ] |
| 1237 |
| 1238 # Add stuff that doesn't work in NaCl. |
| 1239 sources += [ |
| 1240 # PartitionAlloc uses SpinLock, which doesn't work in NaCl (see below). |
| 1241 "allocator/partition_allocator/address_space_randomization.cc", |
| 1242 "allocator/partition_allocator/address_space_randomization.h", |
| 1243 "allocator/partition_allocator/page_allocator.cc", |
| 1244 "allocator/partition_allocator/page_allocator.h", |
| 1245 "allocator/partition_allocator/partition_alloc.cc", |
| 1246 "allocator/partition_allocator/partition_alloc.h", |
| 1247 ] |
1237 } | 1248 } |
1238 | 1249 |
1239 # SpinLock uses inline assembly that doesn't work on NaCl, and for which there | 1250 # SpinLock uses inline assembly that doesn't work on NaCl, and for which there |
1240 # is no code for ARMv6. | 1251 # is no code for ARMv6. |
1241 if (!is_nacl && (current_cpu != "arm" || arm_version >= 7)) { | 1252 if (!is_nacl && (current_cpu != "arm" || arm_version >= 7)) { |
1242 sources += [ | 1253 sources += [ |
1243 "synchronization/spin_lock.cc", | 1254 "synchronization/spin_lock.cc", |
1244 "synchronization/spin_lock.h", | 1255 "synchronization/spin_lock.h", |
1245 ] | 1256 ] |
1246 } | 1257 } |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 configs += [ "//build/config/compiler:enable_arc" ] | 1800 configs += [ "//build/config/compiler:enable_arc" ] |
1790 deps = [ | 1801 deps = [ |
1791 ":base", | 1802 ":base", |
1792 "//testing/gtest", | 1803 "//testing/gtest", |
1793 ] | 1804 ] |
1794 } | 1805 } |
1795 } | 1806 } |
1796 | 1807 |
1797 test("base_unittests") { | 1808 test("base_unittests") { |
1798 sources = [ | 1809 sources = [ |
| 1810 "allocator/partition_allocator/partition_alloc_unittest.cc", |
1799 "allocator/tcmalloc_unittest.cc", | 1811 "allocator/tcmalloc_unittest.cc", |
1800 "android/application_status_listener_unittest.cc", | 1812 "android/application_status_listener_unittest.cc", |
1801 "android/content_uri_utils_unittest.cc", | 1813 "android/content_uri_utils_unittest.cc", |
1802 "android/jni_android_unittest.cc", | 1814 "android/jni_android_unittest.cc", |
1803 "android/jni_array_unittest.cc", | 1815 "android/jni_array_unittest.cc", |
1804 "android/jni_string_unittest.cc", | 1816 "android/jni_string_unittest.cc", |
1805 "android/library_loader/library_prefetcher_unittest.cc", | 1817 "android/library_loader/library_prefetcher_unittest.cc", |
1806 "android/path_utils_unittest.cc", | 1818 "android/path_utils_unittest.cc", |
1807 "android/scoped_java_ref_unittest.cc", | 1819 "android/scoped_java_ref_unittest.cc", |
1808 "android/sys_utils_unittest.cc", | 1820 "android/sys_utils_unittest.cc", |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2542 } | 2554 } |
2543 | 2555 |
2544 fuzzer_test("base_json_correctness_fuzzer") { | 2556 fuzzer_test("base_json_correctness_fuzzer") { |
2545 sources = [ | 2557 sources = [ |
2546 "json/correctness_fuzzer.cc", | 2558 "json/correctness_fuzzer.cc", |
2547 ] | 2559 ] |
2548 deps = [ | 2560 deps = [ |
2549 ":base", | 2561 ":base", |
2550 ] | 2562 ] |
2551 } | 2563 } |
OLD | NEW |