| 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 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 1237 |
| 1238 # Add stuff that doesn't work in NaCl. | 1238 if (!is_ios) { |
| 1239 sources += [ | 1239 # Add stuff that doesn't work in NaCl. |
| 1240 # PartitionAlloc uses SpinLock, which doesn't work in NaCl (see below). | 1240 sources += [ |
| 1241 "allocator/partition_allocator/address_space_randomization.cc", | 1241 # PartitionAlloc uses SpinLock, which doesn't work in NaCl (see below). |
| 1242 "allocator/partition_allocator/address_space_randomization.h", | 1242 "allocator/partition_allocator/address_space_randomization.cc", |
| 1243 "allocator/partition_allocator/page_allocator.cc", | 1243 "allocator/partition_allocator/address_space_randomization.h", |
| 1244 "allocator/partition_allocator/page_allocator.h", | 1244 "allocator/partition_allocator/page_allocator.cc", |
| 1245 "allocator/partition_allocator/partition_alloc.cc", | 1245 "allocator/partition_allocator/page_allocator.h", |
| 1246 "allocator/partition_allocator/partition_alloc.h", | 1246 "allocator/partition_allocator/partition_alloc.cc", |
| 1247 ] | 1247 "allocator/partition_allocator/partition_alloc.h", |
| 1248 ] |
| 1249 } |
| 1248 } | 1250 } |
| 1249 | 1251 |
| 1250 # SpinLock uses inline assembly that doesn't work on NaCl, and for which there | 1252 # SpinLock uses inline assembly that doesn't work on NaCl, and for which there |
| 1251 # is no code for ARMv6. | 1253 # is no code for ARMv6. |
| 1252 if (!is_nacl && (current_cpu != "arm" || arm_version >= 7)) { | 1254 if (!is_nacl && (current_cpu != "arm" || arm_version >= 7)) { |
| 1253 sources += [ | 1255 sources += [ |
| 1254 "synchronization/spin_lock.cc", | 1256 "synchronization/spin_lock.cc", |
| 1255 "synchronization/spin_lock.h", | 1257 "synchronization/spin_lock.h", |
| 1256 ] | 1258 ] |
| 1257 } | 1259 } |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1800 configs += [ "//build/config/compiler:enable_arc" ] | 1802 configs += [ "//build/config/compiler:enable_arc" ] |
| 1801 deps = [ | 1803 deps = [ |
| 1802 ":base", | 1804 ":base", |
| 1803 "//testing/gtest", | 1805 "//testing/gtest", |
| 1804 ] | 1806 ] |
| 1805 } | 1807 } |
| 1806 } | 1808 } |
| 1807 | 1809 |
| 1808 test("base_unittests") { | 1810 test("base_unittests") { |
| 1809 sources = [ | 1811 sources = [ |
| 1810 "allocator/partition_allocator/partition_alloc_unittest.cc", | |
| 1811 "allocator/tcmalloc_unittest.cc", | 1812 "allocator/tcmalloc_unittest.cc", |
| 1812 "android/application_status_listener_unittest.cc", | 1813 "android/application_status_listener_unittest.cc", |
| 1813 "android/content_uri_utils_unittest.cc", | 1814 "android/content_uri_utils_unittest.cc", |
| 1814 "android/jni_android_unittest.cc", | 1815 "android/jni_android_unittest.cc", |
| 1815 "android/jni_array_unittest.cc", | 1816 "android/jni_array_unittest.cc", |
| 1816 "android/jni_string_unittest.cc", | 1817 "android/jni_string_unittest.cc", |
| 1817 "android/library_loader/library_prefetcher_unittest.cc", | 1818 "android/library_loader/library_prefetcher_unittest.cc", |
| 1818 "android/path_utils_unittest.cc", | 1819 "android/path_utils_unittest.cc", |
| 1819 "android/scoped_java_ref_unittest.cc", | 1820 "android/scoped_java_ref_unittest.cc", |
| 1820 "android/sys_utils_unittest.cc", | 1821 "android/sys_utils_unittest.cc", |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2164 sources += [ | 2165 sources += [ |
| 2165 "mac/bind_objc_block_unittest.mm", | 2166 "mac/bind_objc_block_unittest.mm", |
| 2166 "mac/foundation_util_unittest.mm", | 2167 "mac/foundation_util_unittest.mm", |
| 2167 "mac/objc_property_releaser_unittest.mm", | 2168 "mac/objc_property_releaser_unittest.mm", |
| 2168 "mac/scoped_nsobject_unittest.mm", | 2169 "mac/scoped_nsobject_unittest.mm", |
| 2169 "strings/sys_string_conversions_mac_unittest.mm", | 2170 "strings/sys_string_conversions_mac_unittest.mm", |
| 2170 ] | 2171 ] |
| 2171 set_sources_assignment_filter(sources_assignment_filter) | 2172 set_sources_assignment_filter(sources_assignment_filter) |
| 2172 | 2173 |
| 2173 # TODO(GYP): dep on copy_test_data_ios action. | 2174 # TODO(GYP): dep on copy_test_data_ios action. |
| 2175 } else { |
| 2176 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
| 2174 } | 2177 } |
| 2175 | 2178 |
| 2176 if (is_mac) { | 2179 if (is_mac) { |
| 2177 libs = [ | 2180 libs = [ |
| 2178 "CoreFoundation.framework", | 2181 "CoreFoundation.framework", |
| 2179 "Foundation.framework", | 2182 "Foundation.framework", |
| 2180 ] | 2183 ] |
| 2181 } | 2184 } |
| 2182 | 2185 |
| 2183 if (is_linux) { | 2186 if (is_linux) { |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 } | 2557 } |
| 2555 | 2558 |
| 2556 fuzzer_test("base_json_correctness_fuzzer") { | 2559 fuzzer_test("base_json_correctness_fuzzer") { |
| 2557 sources = [ | 2560 sources = [ |
| 2558 "json/correctness_fuzzer.cc", | 2561 "json/correctness_fuzzer.cc", |
| 2559 ] | 2562 ] |
| 2560 deps = [ | 2563 deps = [ |
| 2561 ":base", | 2564 ":base", |
| 2562 ] | 2565 ] |
| 2563 } | 2566 } |
| OLD | NEW |