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 "message_loop/message_pump_libevent.cc", |
| 1237 "message_loop/message_pump_libevent.h", |
| 1238 "process/kill_posix.cc", |
| 1239 "process/launch_posix.cc", |
| 1240 "process/process_posix.cc", |
| 1241 ] |
| 1242 } |
| 1243 |
1233 # NaCl. | 1244 # NaCl. |
1234 if (is_nacl) { | 1245 if (is_nacl) { |
1235 # We reset sources_assignment_filter in order to explicitly include | 1246 # We reset sources_assignment_filter in order to explicitly include |
1236 # the linux file (which would otherwise be filtered out). | 1247 # the linux file (which would otherwise be filtered out). |
1237 set_sources_assignment_filter([]) | 1248 set_sources_assignment_filter([]) |
1238 sources += [ | 1249 sources += [ |
1239 "files/file_path_watcher_stub.cc", | 1250 "files/file_path_watcher_stub.cc", |
1240 "process/process_metrics_nacl.cc", | 1251 "process/process_metrics_nacl.cc", |
1241 "sync_socket_nacl.cc", | 1252 "sync_socket_nacl.cc", |
1242 "threading/platform_thread_linux.cc", | 1253 "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" ] | 1446 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1436 | 1447 |
1437 libs = [ | 1448 libs = [ |
1438 "cfgmgr32.lib", | 1449 "cfgmgr32.lib", |
1439 "powrprof.lib", | 1450 "powrprof.lib", |
1440 "setupapi.lib", | 1451 "setupapi.lib", |
1441 "userenv.lib", | 1452 "userenv.lib", |
1442 "winmm.lib", | 1453 "winmm.lib", |
1443 ] | 1454 ] |
1444 all_dependent_configs += [ ":base_win_linker_flags" ] | 1455 all_dependent_configs += [ ":base_win_linker_flags" ] |
1445 } else if (!is_nacl || is_nacl_nonsfi) { | 1456 } else if ((!is_nacl && !is_fuchsia) || is_nacl_nonsfi) { |
1446 # Non-Windows. | 1457 # Non-Windows. |
1447 deps += [ "//base/third_party/libevent" ] | 1458 deps += [ "//base/third_party/libevent" ] |
1448 } | 1459 } |
1449 | 1460 |
1450 # Desktop Mac. | 1461 # Desktop Mac. |
1451 if (is_mac) { | 1462 if (is_mac) { |
1452 sources += [ | 1463 sources += [ |
1453 "mac/scoped_typeref.h", | 1464 "mac/scoped_typeref.h", |
1454 "power_monitor/power_monitor_device_source_mac.mm", | 1465 "power_monitor/power_monitor_device_source_mac.mm", |
1455 ] | 1466 ] |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2330 if (!is_component_build) { | 2341 if (!is_component_build) { |
2331 # Set rpath to find libmalloc_wrapper.so even in a non-component build. | 2342 # Set rpath to find libmalloc_wrapper.so even in a non-component build. |
2332 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 2343 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
2333 } | 2344 } |
2334 } | 2345 } |
2335 | 2346 |
2336 if (!use_glib) { | 2347 if (!use_glib) { |
2337 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 2348 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] |
2338 } | 2349 } |
2339 | 2350 |
2340 if (is_posix && !is_ios) { | 2351 if (is_posix && !is_ios && !is_fuchsia) { |
2341 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 2352 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] |
2342 deps += [ "//base/third_party/libevent" ] | 2353 deps += [ "//base/third_party/libevent" ] |
2343 } | 2354 } |
2344 | 2355 |
2345 if (is_android) { | 2356 if (is_android) { |
2346 deps += [ "//testing/android/native_test:native_test_native_code" ] | 2357 deps += [ "//testing/android/native_test:native_test_native_code" ] |
2347 set_sources_assignment_filter([]) | 2358 set_sources_assignment_filter([]) |
2348 sources += [ | 2359 sources += [ |
2349 "debug/proc_maps_linux_unittest.cc", | 2360 "debug/proc_maps_linux_unittest.cc", |
2350 "trace_event/trace_event_android_unittest.cc", | 2361 "trace_event/trace_event_android_unittest.cc", |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2724 } | 2735 } |
2725 | 2736 |
2726 fuzzer_test("base_json_correctness_fuzzer") { | 2737 fuzzer_test("base_json_correctness_fuzzer") { |
2727 sources = [ | 2738 sources = [ |
2728 "json/correctness_fuzzer.cc", | 2739 "json/correctness_fuzzer.cc", |
2729 ] | 2740 ] |
2730 deps = [ | 2741 deps = [ |
2731 ":base", | 2742 ":base", |
2732 ] | 2743 ] |
2733 } | 2744 } |
OLD | NEW |