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

Side by Side Diff: base/BUILD.gn

Issue 2575973002: Add a GN arg to include PartitionAlloc sources (Closed)
Patch Set: change to include by default 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 | no next file » | no next file with comments »
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 23 matching lines...) Expand all
34 declare_args() { 34 declare_args() {
35 # Override this value to give a specific build date. 35 # Override this value to give a specific build date.
36 # See //base/build_time.cc and //build/write_build_date_header.py for more 36 # See //base/build_time.cc and //build/write_build_date_header.py for more
37 # details and the expected format. 37 # details and the expected format.
38 override_build_date = "N/A" 38 override_build_date = "N/A"
39 39
40 # Turn on memory profiling in the task profiler when the heap shim is 40 # Turn on memory profiling in the task profiler when the heap shim is
41 # available, except for official builds for now. 41 # available, except for official builds for now.
42 enable_memory_task_profiler = 42 enable_memory_task_profiler =
43 use_experimental_allocator_shim && (!is_official_build || is_syzyasan) 43 use_experimental_allocator_shim && (!is_official_build || is_syzyasan)
44
45 # Partition alloc is included by default except iOS.
46 exclude_partition_alloc = is_ios
palmer 2016/12/14 23:28:53 Nit: My instinct is to phrase this the other way:
xunjieli 2016/12/15 15:07:53 Done. Makes sense. Since I probably won't touch th
44 } 47 }
45 48
46 if (is_android) { 49 if (is_android) {
47 import("//build/config/android/rules.gni") 50 import("//build/config/android/rules.gni")
48 } 51 }
49 52
50 config("base_flags") { 53 config("base_flags") {
51 if (is_clang) { 54 if (is_clang) {
52 cflags = [ 55 cflags = [
53 # Don't die on dtoa code that uses a char as an array index. 56 # Don't die on dtoa code that uses a char as an array index.
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 } else { 1231 } else {
1229 # Remove NaCl stuff. 1232 # Remove NaCl stuff.
1230 sources -= [ 1233 sources -= [
1231 "memory/shared_memory_nacl.cc", 1234 "memory/shared_memory_nacl.cc",
1232 "os_compat_nacl.cc", 1235 "os_compat_nacl.cc",
1233 "os_compat_nacl.h", 1236 "os_compat_nacl.h",
1234 "rand_util_nacl.cc", 1237 "rand_util_nacl.cc",
1235 "synchronization/read_write_lock_nacl.cc", 1238 "synchronization/read_write_lock_nacl.cc",
1236 ] 1239 ]
1237 1240
1238 if (!is_ios) { 1241 if (!exclude_partition_alloc) {
1239 # Add stuff that doesn't work in NaCl. 1242 # Add stuff that doesn't work in NaCl.
1240 sources += [ 1243 sources += [
1241 # PartitionAlloc uses SpinLock, which doesn't work in NaCl (see below). 1244 # PartitionAlloc uses SpinLock, which doesn't work in NaCl (see below).
1242 "allocator/partition_allocator/address_space_randomization.cc", 1245 "allocator/partition_allocator/address_space_randomization.cc",
1243 "allocator/partition_allocator/address_space_randomization.h", 1246 "allocator/partition_allocator/address_space_randomization.h",
1244 "allocator/partition_allocator/page_allocator.cc", 1247 "allocator/partition_allocator/page_allocator.cc",
1245 "allocator/partition_allocator/page_allocator.h", 1248 "allocator/partition_allocator/page_allocator.h",
1246 "allocator/partition_allocator/partition_alloc.cc", 1249 "allocator/partition_allocator/partition_alloc.cc",
1247 "allocator/partition_allocator/partition_alloc.h", 1250 "allocator/partition_allocator/partition_alloc.h",
1248 ] 1251 ]
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 sources += [ 2168 sources += [
2166 "mac/bind_objc_block_unittest.mm", 2169 "mac/bind_objc_block_unittest.mm",
2167 "mac/foundation_util_unittest.mm", 2170 "mac/foundation_util_unittest.mm",
2168 "mac/objc_property_releaser_unittest.mm", 2171 "mac/objc_property_releaser_unittest.mm",
2169 "mac/scoped_nsobject_unittest.mm", 2172 "mac/scoped_nsobject_unittest.mm",
2170 "strings/sys_string_conversions_mac_unittest.mm", 2173 "strings/sys_string_conversions_mac_unittest.mm",
2171 ] 2174 ]
2172 set_sources_assignment_filter(sources_assignment_filter) 2175 set_sources_assignment_filter(sources_assignment_filter)
2173 2176
2174 # TODO(GYP): dep on copy_test_data_ios action. 2177 # TODO(GYP): dep on copy_test_data_ios action.
2175 } else { 2178 }
2179
2180 if (!exclude_partition_alloc) {
2176 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] 2181 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ]
2177 } 2182 }
2178 2183
2179 if (is_mac) { 2184 if (is_mac) {
2180 libs = [ 2185 libs = [
2181 "CoreFoundation.framework", 2186 "CoreFoundation.framework",
2182 "Foundation.framework", 2187 "Foundation.framework",
2183 ] 2188 ]
2184 } 2189 }
2185 2190
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2557 } 2562 }
2558 2563
2559 fuzzer_test("base_json_correctness_fuzzer") { 2564 fuzzer_test("base_json_correctness_fuzzer") {
2560 sources = [ 2565 sources = [
2561 "json/correctness_fuzzer.cc", 2566 "json/correctness_fuzzer.cc",
2562 ] 2567 ]
2563 deps = [ 2568 deps = [
2564 ":base", 2569 ":base",
2565 ] 2570 ]
2566 } 2571 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698