| 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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 "base_paths.h", | 1099 "base_paths.h", |
| 1100 "base_paths_android.cc", | 1100 "base_paths_android.cc", |
| 1101 "base_paths_android.h", | 1101 "base_paths_android.h", |
| 1102 "base_paths_mac.h", | 1102 "base_paths_mac.h", |
| 1103 "base_paths_mac.mm", | 1103 "base_paths_mac.mm", |
| 1104 "base_paths_posix.h", | 1104 "base_paths_posix.h", |
| 1105 "base_paths_win.cc", | 1105 "base_paths_win.cc", |
| 1106 "base_paths_win.h", | 1106 "base_paths_win.h", |
| 1107 ] | 1107 ] |
| 1108 | 1108 |
| 1109 if (is_linux) { | 1109 if (is_linux || is_fuchsia) { |
| 1110 sources += [ "base_paths_posix.cc" ] | 1110 sources += [ "base_paths_posix.cc" ] |
| 1111 } | 1111 } |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 if (!is_mac && is_posix) { | 1114 if (!is_mac && is_posix) { |
| 1115 sources += [ "memory/shared_memory_handle_posix.cc" ] | 1115 sources += [ "memory/shared_memory_handle_posix.cc" ] |
| 1116 } | 1116 } |
| 1117 | 1117 |
| 1118 all_dependent_configs = [] | 1118 all_dependent_configs = [] |
| 1119 defines = [] | 1119 defines = [] |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 # Needs to be a public config so that dependent targets link against it as | 1224 # Needs to be a public config so that dependent targets link against it as |
| 1225 # well when doing a component build. | 1225 # well when doing a component build. |
| 1226 public_configs = [ ":android_system_libs" ] | 1226 public_configs = [ ":android_system_libs" ] |
| 1227 } | 1227 } |
| 1228 | 1228 |
| 1229 # Chromeos. | 1229 # Chromeos. |
| 1230 if (is_chromeos) { | 1230 if (is_chromeos) { |
| 1231 sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ] | 1231 sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ] |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 if (is_fuchsia) { |
| 1235 sources -= [ |
| 1236 "debug/stack_trace_posix.cc", |
| 1237 "files/file_descriptor_watcher_posix.cc", |
| 1238 "files/file_descriptor_watcher_posix.h", |
| 1239 "message_loop/message_pump_libevent.cc", |
| 1240 "message_loop/message_pump_libevent.h", |
| 1241 "process/kill_posix.cc", |
| 1242 "process/launch_posix.cc", |
| 1243 "process/process_posix.cc", |
| 1244 "task_scheduler/task_tracker_posix.cc", |
| 1245 "task_scheduler/task_tracker_posix.h", |
| 1246 ] |
| 1247 |
| 1248 sources += [ |
| 1249 "debug/stack_trace_fuchsia.cc", |
| 1250 "process/kill_fuchsia.cc", |
| 1251 "process/launch_fuchsia.cc", |
| 1252 "process/memory_stubs.cc", |
| 1253 "process/process_fuchsia.cc", |
| 1254 "process/process_handle_fuchsia.cc", |
| 1255 "process/process_iterator_fuchsia.cc", |
| 1256 "process/process_metrics_fuchsia.cc", |
| 1257 "sys_info_fuchsia.cc", |
| 1258 "threading/platform_thread_fuchsia.cc", |
| 1259 ] |
| 1260 |
| 1261 libs = [ "launchpad" ] |
| 1262 } |
| 1263 |
| 1234 # NaCl. | 1264 # NaCl. |
| 1235 if (is_nacl) { | 1265 if (is_nacl) { |
| 1236 # We reset sources_assignment_filter in order to explicitly include | 1266 # We reset sources_assignment_filter in order to explicitly include |
| 1237 # the linux file (which would otherwise be filtered out). | 1267 # the linux file (which would otherwise be filtered out). |
| 1238 set_sources_assignment_filter([]) | 1268 set_sources_assignment_filter([]) |
| 1239 sources += [ | 1269 sources += [ |
| 1240 "files/file_path_watcher_stub.cc", | 1270 "files/file_path_watcher_stub.cc", |
| 1241 "process/process_metrics_nacl.cc", | 1271 "process/process_metrics_nacl.cc", |
| 1242 "sync_socket_nacl.cc", | 1272 "sync_socket_nacl.cc", |
| 1243 "threading/platform_thread_linux.cc", | 1273 "threading/platform_thread_linux.cc", |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1466 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1437 | 1467 |
| 1438 libs = [ | 1468 libs = [ |
| 1439 "cfgmgr32.lib", | 1469 "cfgmgr32.lib", |
| 1440 "powrprof.lib", | 1470 "powrprof.lib", |
| 1441 "setupapi.lib", | 1471 "setupapi.lib", |
| 1442 "userenv.lib", | 1472 "userenv.lib", |
| 1443 "winmm.lib", | 1473 "winmm.lib", |
| 1444 ] | 1474 ] |
| 1445 all_dependent_configs += [ ":base_win_linker_flags" ] | 1475 all_dependent_configs += [ ":base_win_linker_flags" ] |
| 1446 } else if (!is_nacl || is_nacl_nonsfi) { | 1476 } else if ((!is_nacl && !is_fuchsia) || is_nacl_nonsfi) { |
| 1447 # Non-Windows. | 1477 # Non-Windows. |
| 1448 deps += [ "//base/third_party/libevent" ] | 1478 deps += [ "//base/third_party/libevent" ] |
| 1449 } | 1479 } |
| 1450 | 1480 |
| 1451 # Desktop Mac. | 1481 # Desktop Mac. |
| 1452 if (is_mac) { | 1482 if (is_mac) { |
| 1453 sources += [ | 1483 sources += [ |
| 1454 "mac/scoped_typeref.h", | 1484 "mac/scoped_typeref.h", |
| 1455 "power_monitor/power_monitor_device_source_mac.mm", | 1485 "power_monitor/power_monitor_device_source_mac.mm", |
| 1456 ] | 1486 ] |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2300 "mac/objc_property_releaser_unittest.mm", | 2330 "mac/objc_property_releaser_unittest.mm", |
| 2301 "mac/objc_release_properties_unittest.mm", | 2331 "mac/objc_release_properties_unittest.mm", |
| 2302 "mac/scoped_nsobject_unittest.mm", | 2332 "mac/scoped_nsobject_unittest.mm", |
| 2303 "strings/sys_string_conversions_mac_unittest.mm", | 2333 "strings/sys_string_conversions_mac_unittest.mm", |
| 2304 ] | 2334 ] |
| 2305 set_sources_assignment_filter(sources_assignment_filter) | 2335 set_sources_assignment_filter(sources_assignment_filter) |
| 2306 | 2336 |
| 2307 # TODO(GYP): dep on copy_test_data_ios action. | 2337 # TODO(GYP): dep on copy_test_data_ios action. |
| 2308 } | 2338 } |
| 2309 | 2339 |
| 2340 if (is_fuchsia) { |
| 2341 sources -= [ |
| 2342 "debug/activity_tracker_unittest.cc", |
| 2343 "files/file_descriptor_watcher_posix_unittest.cc", |
| 2344 "files/file_path_watcher_unittest.cc", |
| 2345 "task_scheduler/task_scheduler_impl_unittest.cc", |
| 2346 "task_scheduler/task_tracker_posix_unittest.cc", |
| 2347 "task_scheduler/task_tracker_unittest.cc", |
| 2348 ] |
| 2349 } |
| 2350 |
| 2310 if (use_partition_alloc) { | 2351 if (use_partition_alloc) { |
| 2311 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2352 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
| 2312 } | 2353 } |
| 2313 | 2354 |
| 2314 if (is_mac) { | 2355 if (is_mac) { |
| 2315 libs = [ | 2356 libs = [ |
| 2316 "CoreFoundation.framework", | 2357 "CoreFoundation.framework", |
| 2317 "Foundation.framework", | 2358 "Foundation.framework", |
| 2318 ] | 2359 ] |
| 2319 if (current_cpu == "x64") { | 2360 if (current_cpu == "x64") { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2331 if (!is_component_build) { | 2372 if (!is_component_build) { |
| 2332 # Set rpath to find libmalloc_wrapper.so even in a non-component build. | 2373 # Set rpath to find libmalloc_wrapper.so even in a non-component build. |
| 2333 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 2374 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 2334 } | 2375 } |
| 2335 } | 2376 } |
| 2336 | 2377 |
| 2337 if (!use_glib) { | 2378 if (!use_glib) { |
| 2338 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 2379 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] |
| 2339 } | 2380 } |
| 2340 | 2381 |
| 2341 if (is_posix && !is_ios) { | 2382 if (is_posix && !is_ios && !is_fuchsia) { |
| 2342 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 2383 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] |
| 2343 deps += [ "//base/third_party/libevent" ] | 2384 deps += [ "//base/third_party/libevent" ] |
| 2344 } | 2385 } |
| 2345 | 2386 |
| 2346 if (is_android) { | 2387 if (is_android) { |
| 2347 deps += [ "//testing/android/native_test:native_test_native_code" ] | 2388 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 2348 set_sources_assignment_filter([]) | 2389 set_sources_assignment_filter([]) |
| 2349 sources += [ | 2390 sources += [ |
| 2350 "debug/proc_maps_linux_unittest.cc", | 2391 "debug/proc_maps_linux_unittest.cc", |
| 2351 "trace_event/trace_event_android_unittest.cc", | 2392 "trace_event/trace_event_android_unittest.cc", |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2722 } | 2763 } |
| 2723 | 2764 |
| 2724 fuzzer_test("base_json_correctness_fuzzer") { | 2765 fuzzer_test("base_json_correctness_fuzzer") { |
| 2725 sources = [ | 2766 sources = [ |
| 2726 "json/correctness_fuzzer.cc", | 2767 "json/correctness_fuzzer.cc", |
| 2727 ] | 2768 ] |
| 2728 deps = [ | 2769 deps = [ |
| 2729 ":base", | 2770 ":base", |
| 2730 ] | 2771 ] |
| 2731 } | 2772 } |
| OLD | NEW |