| 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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1198     # Needs to be a public config so that dependent targets link against it as | 1198     # Needs to be a public config so that dependent targets link against it as | 
| 1199     # well when doing a component build. | 1199     # well when doing a component build. | 
| 1200     public_configs = [ ":android_system_libs" ] | 1200     public_configs = [ ":android_system_libs" ] | 
| 1201   } | 1201   } | 
| 1202 | 1202 | 
| 1203   # Chromeos. | 1203   # Chromeos. | 
| 1204   if (is_chromeos) { | 1204   if (is_chromeos) { | 
| 1205     sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ] | 1205     sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ] | 
| 1206   } | 1206   } | 
| 1207 | 1207 | 
|  | 1208   if (is_fuchsia) { | 
|  | 1209     sources -= [ | 
|  | 1210       "debug/stack_trace_posix.cc", | 
|  | 1211       "files/file_descriptor_watcher_posix.cc", | 
|  | 1212       "files/file_descriptor_watcher_posix.h", | 
|  | 1213       "message_loop/message_pump_libevent.cc", | 
|  | 1214       "message_loop/message_pump_libevent.h", | 
|  | 1215       "task_scheduler/task_tracker_posix.cc", | 
|  | 1216       "task_scheduler/task_tracker_posix.h", | 
|  | 1217     ] | 
|  | 1218 | 
|  | 1219     sources += [ | 
|  | 1220       "debug/stack_trace_fuchsia.cc", | 
|  | 1221       "process/memory_stubs.cc", | 
|  | 1222       "process/process_handle_fuchsia.cc", | 
|  | 1223       "process/process_iterator_fuchsia.cc", | 
|  | 1224       "process/process_metrics_fuchsia.cc", | 
|  | 1225       "sys_info_fuchsia.cc", | 
|  | 1226       "threading/platform_thread_fuchsia.cc", | 
|  | 1227     ] | 
|  | 1228   } | 
|  | 1229 | 
| 1208   # NaCl. | 1230   # NaCl. | 
| 1209   if (is_nacl) { | 1231   if (is_nacl) { | 
| 1210     # We reset sources_assignment_filter in order to explicitly include | 1232     # We reset sources_assignment_filter in order to explicitly include | 
| 1211     # the linux file (which would otherwise be filtered out). | 1233     # the linux file (which would otherwise be filtered out). | 
| 1212     set_sources_assignment_filter([]) | 1234     set_sources_assignment_filter([]) | 
| 1213     sources += [ | 1235     sources += [ | 
| 1214       "files/file_path_watcher_stub.cc", | 1236       "files/file_path_watcher_stub.cc", | 
| 1215       "process/process_metrics_nacl.cc", | 1237       "process/process_metrics_nacl.cc", | 
| 1216       "sync_socket_nacl.cc", | 1238       "sync_socket_nacl.cc", | 
| 1217       "threading/platform_thread_linux.cc", | 1239       "threading/platform_thread_linux.cc", | 
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1414     configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1436     configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 
| 1415 | 1437 | 
| 1416     libs = [ | 1438     libs = [ | 
| 1417       "cfgmgr32.lib", | 1439       "cfgmgr32.lib", | 
| 1418       "powrprof.lib", | 1440       "powrprof.lib", | 
| 1419       "setupapi.lib", | 1441       "setupapi.lib", | 
| 1420       "userenv.lib", | 1442       "userenv.lib", | 
| 1421       "winmm.lib", | 1443       "winmm.lib", | 
| 1422     ] | 1444     ] | 
| 1423     all_dependent_configs += [ ":base_win_linker_flags" ] | 1445     all_dependent_configs += [ ":base_win_linker_flags" ] | 
| 1424   } else if (!is_nacl || is_nacl_nonsfi) { | 1446   } else if ((!is_nacl && !is_fuchsia) || is_nacl_nonsfi) { | 
| 1425     # Non-Windows. | 1447     # Non-Windows. | 
| 1426     deps += [ "//base/third_party/libevent" ] | 1448     deps += [ "//base/third_party/libevent" ] | 
| 1427   } | 1449   } | 
| 1428 | 1450 | 
| 1429   # Desktop Mac. | 1451   # Desktop Mac. | 
| 1430   if (is_mac) { | 1452   if (is_mac) { | 
| 1431     sources += [ | 1453     sources += [ | 
| 1432       "mac/scoped_typeref.h", | 1454       "mac/scoped_typeref.h", | 
| 1433       "power_monitor/power_monitor_device_source_mac.mm", | 1455       "power_monitor/power_monitor_device_source_mac.mm", | 
| 1434     ] | 1456     ] | 
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2250       "mac/objc_property_releaser_unittest.mm", | 2272       "mac/objc_property_releaser_unittest.mm", | 
| 2251       "mac/objc_release_properties_unittest.mm", | 2273       "mac/objc_release_properties_unittest.mm", | 
| 2252       "mac/scoped_nsobject_unittest.mm", | 2274       "mac/scoped_nsobject_unittest.mm", | 
| 2253       "strings/sys_string_conversions_mac_unittest.mm", | 2275       "strings/sys_string_conversions_mac_unittest.mm", | 
| 2254     ] | 2276     ] | 
| 2255     set_sources_assignment_filter(sources_assignment_filter) | 2277     set_sources_assignment_filter(sources_assignment_filter) | 
| 2256 | 2278 | 
| 2257     # TODO(GYP): dep on copy_test_data_ios action. | 2279     # TODO(GYP): dep on copy_test_data_ios action. | 
| 2258   } | 2280   } | 
| 2259 | 2281 | 
|  | 2282   if (is_fuchsia) { | 
|  | 2283     sources -= [ | 
|  | 2284       "debug/activity_tracker_unittest.cc", | 
|  | 2285       "files/file_descriptor_watcher_posix_unittest.cc", | 
|  | 2286       "files/file_path_watcher_unittest.cc", | 
|  | 2287       "task_scheduler/task_tracker_posix_unittest.cc", | 
|  | 2288       "task_scheduler/task_tracker_unittest.cc", | 
|  | 2289     ] | 
|  | 2290   } | 
|  | 2291 | 
| 2260   if (use_partition_alloc) { | 2292   if (use_partition_alloc) { | 
| 2261     sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2293     sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 
| 2262   } | 2294   } | 
| 2263 | 2295 | 
| 2264   if (is_mac) { | 2296   if (is_mac) { | 
| 2265     libs = [ | 2297     libs = [ | 
| 2266       "CoreFoundation.framework", | 2298       "CoreFoundation.framework", | 
| 2267       "Foundation.framework", | 2299       "Foundation.framework", | 
| 2268     ] | 2300     ] | 
| 2269   } | 2301   } | 
| 2270 | 2302 | 
| 2271   if (is_linux) { | 2303   if (is_linux) { | 
| 2272     if (is_desktop_linux) { | 2304     if (is_desktop_linux) { | 
| 2273       sources += [ "nix/xdg_util_unittest.cc" ] | 2305       sources += [ "nix/xdg_util_unittest.cc" ] | 
| 2274     } | 2306     } | 
| 2275 | 2307 | 
| 2276     deps += [ "//base/test:malloc_wrapper" ] | 2308     deps += [ "//base/test:malloc_wrapper" ] | 
| 2277 | 2309 | 
| 2278     if (!is_component_build) { | 2310     if (!is_component_build) { | 
| 2279       # Set rpath to find libmalloc_wrapper.so even in a non-component build. | 2311       # Set rpath to find libmalloc_wrapper.so even in a non-component build. | 
| 2280       configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 2312       configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 
| 2281     } | 2313     } | 
| 2282   } | 2314   } | 
| 2283 | 2315 | 
| 2284   if (!use_glib) { | 2316   if (!use_glib) { | 
| 2285     sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 2317     sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 
| 2286   } | 2318   } | 
| 2287 | 2319 | 
| 2288   if (is_posix && !is_ios) { | 2320   if (is_posix && !is_ios && !is_fuchsia) { | 
| 2289     sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 2321     sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 
| 2290     deps += [ "//base/third_party/libevent" ] | 2322     deps += [ "//base/third_party/libevent" ] | 
| 2291   } | 2323   } | 
| 2292 | 2324 | 
| 2293   if (is_android) { | 2325   if (is_android) { | 
| 2294     deps += [ "//testing/android/native_test:native_test_native_code" ] | 2326     deps += [ "//testing/android/native_test:native_test_native_code" ] | 
| 2295     set_sources_assignment_filter([]) | 2327     set_sources_assignment_filter([]) | 
| 2296     sources += [ | 2328     sources += [ | 
| 2297       "debug/proc_maps_linux_unittest.cc", | 2329       "debug/proc_maps_linux_unittest.cc", | 
| 2298       "trace_event/trace_event_android_unittest.cc", | 2330       "trace_event/trace_event_android_unittest.cc", | 
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2646 } | 2678 } | 
| 2647 | 2679 | 
| 2648 fuzzer_test("base_json_correctness_fuzzer") { | 2680 fuzzer_test("base_json_correctness_fuzzer") { | 
| 2649   sources = [ | 2681   sources = [ | 
| 2650     "json/correctness_fuzzer.cc", | 2682     "json/correctness_fuzzer.cc", | 
| 2651   ] | 2683   ] | 
| 2652   deps = [ | 2684   deps = [ | 
| 2653     ":base", | 2685     ":base", | 
| 2654   ] | 2686   ] | 
| 2655 } | 2687 } | 
| OLD | NEW | 
|---|