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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 "base_paths.h", | 1098 "base_paths.h", |
1099 "base_paths_android.cc", | 1099 "base_paths_android.cc", |
1100 "base_paths_android.h", | 1100 "base_paths_android.h", |
1101 "base_paths_mac.h", | 1101 "base_paths_mac.h", |
1102 "base_paths_mac.mm", | 1102 "base_paths_mac.mm", |
1103 "base_paths_posix.h", | 1103 "base_paths_posix.h", |
1104 "base_paths_win.cc", | 1104 "base_paths_win.cc", |
1105 "base_paths_win.h", | 1105 "base_paths_win.h", |
1106 ] | 1106 ] |
1107 | 1107 |
1108 if (is_linux) { | 1108 if (is_linux || is_fuchsia) { |
1109 sources += [ "base_paths_posix.cc" ] | 1109 sources += [ "base_paths_posix.cc" ] |
1110 } | 1110 } |
1111 } | 1111 } |
1112 | 1112 |
1113 if (!is_mac && is_posix) { | 1113 if (!is_mac && is_posix) { |
1114 sources += [ "memory/shared_memory_handle_posix.cc" ] | 1114 sources += [ "memory/shared_memory_handle_posix.cc" ] |
1115 } | 1115 } |
1116 | 1116 |
1117 all_dependent_configs = [] | 1117 all_dependent_configs = [] |
1118 defines = [] | 1118 defines = [] |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 # Needs to be a public config so that dependent targets link against it as | 1223 # Needs to be a public config so that dependent targets link against it as |
1224 # well when doing a component build. | 1224 # well when doing a component build. |
1225 public_configs = [ ":android_system_libs" ] | 1225 public_configs = [ ":android_system_libs" ] |
1226 } | 1226 } |
1227 | 1227 |
1228 # Chromeos. | 1228 # Chromeos. |
1229 if (is_chromeos) { | 1229 if (is_chromeos) { |
1230 sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ] | 1230 sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ] |
1231 } | 1231 } |
1232 | 1232 |
| 1233 if (is_fuchsia) { |
| 1234 sources -= [ |
| 1235 "debug/stack_trace_posix.cc", |
| 1236 "files/file_descriptor_watcher_posix.cc", |
| 1237 "files/file_descriptor_watcher_posix.h", |
| 1238 "message_loop/message_pump_libevent.cc", |
| 1239 "message_loop/message_pump_libevent.h", |
| 1240 "process/kill_posix.cc", |
| 1241 "process/launch_posix.cc", |
| 1242 "process/process_posix.cc", |
| 1243 "task_scheduler/task_tracker_posix.cc", |
| 1244 "task_scheduler/task_tracker_posix.h", |
| 1245 ] |
| 1246 } |
| 1247 |
1233 # NaCl. | 1248 # NaCl. |
1234 if (is_nacl) { | 1249 if (is_nacl) { |
1235 # We reset sources_assignment_filter in order to explicitly include | 1250 # We reset sources_assignment_filter in order to explicitly include |
1236 # the linux file (which would otherwise be filtered out). | 1251 # the linux file (which would otherwise be filtered out). |
1237 set_sources_assignment_filter([]) | 1252 set_sources_assignment_filter([]) |
1238 sources += [ | 1253 sources += [ |
1239 "files/file_path_watcher_stub.cc", | 1254 "files/file_path_watcher_stub.cc", |
1240 "process/process_metrics_nacl.cc", | 1255 "process/process_metrics_nacl.cc", |
1241 "sync_socket_nacl.cc", | 1256 "sync_socket_nacl.cc", |
1242 "threading/platform_thread_linux.cc", | 1257 "threading/platform_thread_linux.cc", |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1450 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1436 | 1451 |
1437 libs = [ | 1452 libs = [ |
1438 "cfgmgr32.lib", | 1453 "cfgmgr32.lib", |
1439 "powrprof.lib", | 1454 "powrprof.lib", |
1440 "setupapi.lib", | 1455 "setupapi.lib", |
1441 "userenv.lib", | 1456 "userenv.lib", |
1442 "winmm.lib", | 1457 "winmm.lib", |
1443 ] | 1458 ] |
1444 all_dependent_configs += [ ":base_win_linker_flags" ] | 1459 all_dependent_configs += [ ":base_win_linker_flags" ] |
1445 } else if (!is_nacl || is_nacl_nonsfi) { | 1460 } else if ((!is_nacl && !is_fuchsia) || is_nacl_nonsfi) { |
1446 # Non-Windows. | 1461 # Non-Windows. |
1447 deps += [ "//base/third_party/libevent" ] | 1462 deps += [ "//base/third_party/libevent" ] |
1448 } | 1463 } |
1449 | 1464 |
1450 # Desktop Mac. | 1465 # Desktop Mac. |
1451 if (is_mac) { | 1466 if (is_mac) { |
1452 sources += [ | 1467 sources += [ |
1453 "mac/scoped_typeref.h", | 1468 "mac/scoped_typeref.h", |
1454 "power_monitor/power_monitor_device_source_mac.mm", | 1469 "power_monitor/power_monitor_device_source_mac.mm", |
1455 ] | 1470 ] |
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2299 "mac/objc_property_releaser_unittest.mm", | 2314 "mac/objc_property_releaser_unittest.mm", |
2300 "mac/objc_release_properties_unittest.mm", | 2315 "mac/objc_release_properties_unittest.mm", |
2301 "mac/scoped_nsobject_unittest.mm", | 2316 "mac/scoped_nsobject_unittest.mm", |
2302 "strings/sys_string_conversions_mac_unittest.mm", | 2317 "strings/sys_string_conversions_mac_unittest.mm", |
2303 ] | 2318 ] |
2304 set_sources_assignment_filter(sources_assignment_filter) | 2319 set_sources_assignment_filter(sources_assignment_filter) |
2305 | 2320 |
2306 # TODO(GYP): dep on copy_test_data_ios action. | 2321 # TODO(GYP): dep on copy_test_data_ios action. |
2307 } | 2322 } |
2308 | 2323 |
| 2324 if (is_fuchsia) { |
| 2325 sources -= [ |
| 2326 "debug/activity_tracker_unittest.cc", |
| 2327 "files/file_descriptor_watcher_posix_unittest.cc", |
| 2328 "files/file_path_watcher_unittest.cc", |
| 2329 "task_scheduler/task_scheduler_impl_unittest.cc", |
| 2330 "task_scheduler/task_tracker_posix_unittest.cc", |
| 2331 "task_scheduler/task_tracker_unittest.cc", |
| 2332 ] |
| 2333 } |
| 2334 |
2309 if (use_partition_alloc) { | 2335 if (use_partition_alloc) { |
2310 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2336 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
2311 } | 2337 } |
2312 | 2338 |
2313 if (is_mac) { | 2339 if (is_mac) { |
2314 libs = [ | 2340 libs = [ |
2315 "CoreFoundation.framework", | 2341 "CoreFoundation.framework", |
2316 "Foundation.framework", | 2342 "Foundation.framework", |
2317 ] | 2343 ] |
2318 if (current_cpu == "x64") { | 2344 if (current_cpu == "x64") { |
(...skipping 11 matching lines...) Expand all Loading... |
2330 if (!is_component_build) { | 2356 if (!is_component_build) { |
2331 # Set rpath to find libmalloc_wrapper.so even in a non-component build. | 2357 # Set rpath to find libmalloc_wrapper.so even in a non-component build. |
2332 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 2358 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
2333 } | 2359 } |
2334 } | 2360 } |
2335 | 2361 |
2336 if (!use_glib) { | 2362 if (!use_glib) { |
2337 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 2363 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] |
2338 } | 2364 } |
2339 | 2365 |
2340 if (is_posix && !is_ios) { | 2366 if (is_posix && !is_ios && !is_fuchsia) { |
2341 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 2367 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] |
2342 deps += [ "//base/third_party/libevent" ] | 2368 deps += [ "//base/third_party/libevent" ] |
2343 } | 2369 } |
2344 | 2370 |
2345 if (is_android) { | 2371 if (is_android) { |
2346 deps += [ "//testing/android/native_test:native_test_native_code" ] | 2372 deps += [ "//testing/android/native_test:native_test_native_code" ] |
2347 set_sources_assignment_filter([]) | 2373 set_sources_assignment_filter([]) |
2348 sources += [ | 2374 sources += [ |
2349 "debug/proc_maps_linux_unittest.cc", | 2375 "debug/proc_maps_linux_unittest.cc", |
2350 "trace_event/trace_event_android_unittest.cc", | 2376 "trace_event/trace_event_android_unittest.cc", |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2724 } | 2750 } |
2725 | 2751 |
2726 fuzzer_test("base_json_correctness_fuzzer") { | 2752 fuzzer_test("base_json_correctness_fuzzer") { |
2727 sources = [ | 2753 sources = [ |
2728 "json/correctness_fuzzer.cc", | 2754 "json/correctness_fuzzer.cc", |
2729 ] | 2755 ] |
2730 deps = [ | 2756 deps = [ |
2731 ":base", | 2757 ":base", |
2732 ] | 2758 ] |
2733 } | 2759 } |
OLD | NEW |