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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 "posix/global_descriptors.cc", | 593 "posix/global_descriptors.cc", |
594 "posix/global_descriptors.h", | 594 "posix/global_descriptors.h", |
595 "posix/safe_strerror.cc", | 595 "posix/safe_strerror.cc", |
596 "posix/safe_strerror.h", | 596 "posix/safe_strerror.h", |
597 "posix/unix_domain_socket_linux.cc", | 597 "posix/unix_domain_socket_linux.cc", |
598 "posix/unix_domain_socket_linux.h", | 598 "posix/unix_domain_socket_linux.h", |
599 "power_monitor/power_monitor.cc", | 599 "power_monitor/power_monitor.cc", |
600 "power_monitor/power_monitor.h", | 600 "power_monitor/power_monitor.h", |
601 "power_monitor/power_monitor_device_source.cc", | 601 "power_monitor/power_monitor_device_source.cc", |
602 "power_monitor/power_monitor_device_source.h", | 602 "power_monitor/power_monitor_device_source.h", |
603 "power_monitor/power_monitor_device_source_android.cc", | |
604 "power_monitor/power_monitor_device_source_android.h", | |
605 "power_monitor/power_monitor_device_source_chromeos.cc", | |
606 "power_monitor/power_monitor_device_source_ios.mm", | |
607 "power_monitor/power_monitor_device_source_mac.mm", | |
608 "power_monitor/power_monitor_device_source_posix.cc", | |
609 "power_monitor/power_monitor_device_source_win.cc", | |
610 "power_monitor/power_monitor_source.cc", | 603 "power_monitor/power_monitor_source.cc", |
611 "power_monitor/power_monitor_source.h", | 604 "power_monitor/power_monitor_source.h", |
612 "power_monitor/power_observer.h", | 605 "power_monitor/power_observer.h", |
613 "process/internal_linux.cc", | 606 "process/internal_linux.cc", |
614 "process/internal_linux.h", | 607 "process/internal_linux.h", |
615 "process/kill.cc", | 608 "process/kill.cc", |
616 "process/kill.h", | 609 "process/kill.h", |
617 "process/kill_mac.cc", | 610 "process/kill_mac.cc", |
618 "process/kill_posix.cc", | 611 "process/kill_posix.cc", |
619 "process/kill_win.cc", | 612 "process/kill_win.cc", |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 } | 1062 } |
1070 | 1063 |
1071 # Allow more direct string conversions on platforms with native utf8 | 1064 # Allow more direct string conversions on platforms with native utf8 |
1072 # strings | 1065 # strings |
1073 if (is_mac || is_ios || is_chromeos || is_chromecast) { | 1066 if (is_mac || is_ios || is_chromeos || is_chromecast) { |
1074 defines += [ "SYSTEM_NATIVE_UTF8" ] | 1067 defines += [ "SYSTEM_NATIVE_UTF8" ] |
1075 } | 1068 } |
1076 | 1069 |
1077 # Android. | 1070 # Android. |
1078 if (is_android) { | 1071 if (is_android) { |
1079 sources -= [ | 1072 sources -= [ "debug/stack_trace_posix.cc" ] |
1080 "debug/stack_trace_posix.cc", | |
1081 "power_monitor/power_monitor_device_source_posix.cc", | |
1082 ] | |
1083 | 1073 |
1084 # Android uses some Linux sources, put those back. | 1074 # Android uses some Linux sources, put those back. |
1085 set_sources_assignment_filter([]) | 1075 set_sources_assignment_filter([]) |
1086 sources += [ | 1076 sources += [ |
1087 "debug/proc_maps_linux.cc", | 1077 "debug/proc_maps_linux.cc", |
1088 "files/file_path_watcher_linux.cc", | 1078 "files/file_path_watcher_linux.cc", |
1089 "posix/unix_domain_socket_linux.cc", | 1079 "posix/unix_domain_socket_linux.cc", |
| 1080 "power_monitor/power_monitor_device_source_android.cc", |
| 1081 "power_monitor/power_monitor_device_source_android.h", |
1090 "process/internal_linux.cc", | 1082 "process/internal_linux.cc", |
1091 "process/memory_linux.cc", | 1083 "process/memory_linux.cc", |
1092 "process/process_handle_linux.cc", | 1084 "process/process_handle_linux.cc", |
1093 "process/process_iterator_linux.cc", | 1085 "process/process_iterator_linux.cc", |
1094 "process/process_metrics_linux.cc", | 1086 "process/process_metrics_linux.cc", |
1095 "sys_info_linux.cc", | 1087 "sys_info_linux.cc", |
1096 ] | 1088 ] |
1097 set_sources_assignment_filter(sources_assignment_filter) | 1089 set_sources_assignment_filter(sources_assignment_filter) |
1098 | 1090 |
1099 deps += [ | 1091 deps += [ |
1100 ":base_jni_headers", | 1092 ":base_jni_headers", |
1101 "//third_party/android_tools:cpu_features", | 1093 "//third_party/android_tools:cpu_features", |
1102 "//third_party/ashmem", | 1094 "//third_party/ashmem", |
1103 ] | 1095 ] |
1104 | 1096 |
1105 # Needs to be a public config so that dependent targets link against it as | 1097 # Needs to be a public config so that dependent targets link against it as |
1106 # well when doing a component build. | 1098 # well when doing a component build. |
1107 public_configs = [ ":android_system_libs" ] | 1099 public_configs = [ ":android_system_libs" ] |
1108 } | 1100 } |
1109 | 1101 |
1110 # Chromeos. | 1102 # Chromeos. |
1111 if (is_chromeos) { | 1103 if (is_chromeos) { |
1112 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | 1104 sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ] |
1113 } | 1105 } |
1114 | 1106 |
1115 # NaCl. | 1107 # NaCl. |
1116 if (is_nacl) { | 1108 if (is_nacl) { |
1117 # We reset sources_assignment_filter in order to explicitly include | 1109 # We reset sources_assignment_filter in order to explicitly include |
1118 # the linux file (which would otherwise be filtered out). | 1110 # the linux file (which would otherwise be filtered out). |
1119 set_sources_assignment_filter([]) | 1111 set_sources_assignment_filter([]) |
1120 sources += [ | 1112 sources += [ |
1121 "files/file_path_watcher_stub.cc", | 1113 "files/file_path_watcher_stub.cc", |
1122 "process/process_metrics_nacl.cc", | 1114 "process/process_metrics_nacl.cc", |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 "os_compat_nacl.cc", | 1187 "os_compat_nacl.cc", |
1196 "os_compat_nacl.h", | 1188 "os_compat_nacl.h", |
1197 "rand_util_nacl.cc", | 1189 "rand_util_nacl.cc", |
1198 "synchronization/read_write_lock_nacl.cc", | 1190 "synchronization/read_write_lock_nacl.cc", |
1199 ] | 1191 ] |
1200 } | 1192 } |
1201 | 1193 |
1202 # Windows. | 1194 # Windows. |
1203 if (is_win) { | 1195 if (is_win) { |
1204 sources += [ | 1196 sources += [ |
| 1197 "power_monitor/power_monitor_device_source_win.cc", |
1205 "profiler/win32_stack_frame_unwinder.cc", | 1198 "profiler/win32_stack_frame_unwinder.cc", |
1206 "profiler/win32_stack_frame_unwinder.h", | 1199 "profiler/win32_stack_frame_unwinder.h", |
1207 ] | 1200 ] |
1208 | 1201 |
1209 sources -= [ | 1202 sources -= [ |
1210 "message_loop/message_pump_libevent.cc", | 1203 "message_loop/message_pump_libevent.cc", |
1211 "strings/string16.cc", | 1204 "strings/string16.cc", |
1212 ] | 1205 ] |
1213 | 1206 |
1214 deps += [ | 1207 deps += [ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 "winmm.lib", | 1296 "winmm.lib", |
1304 ] | 1297 ] |
1305 all_dependent_configs = [ ":base_win_linker_flags" ] | 1298 all_dependent_configs = [ ":base_win_linker_flags" ] |
1306 } else if (!is_nacl || is_nacl_nonsfi) { | 1299 } else if (!is_nacl || is_nacl_nonsfi) { |
1307 # Non-Windows. | 1300 # Non-Windows. |
1308 deps += [ "//base/third_party/libevent" ] | 1301 deps += [ "//base/third_party/libevent" ] |
1309 } | 1302 } |
1310 | 1303 |
1311 # Desktop Mac. | 1304 # Desktop Mac. |
1312 if (is_mac) { | 1305 if (is_mac) { |
| 1306 sources += [ "power_monitor/power_monitor_device_source_mac.mm" ] |
| 1307 |
1313 libs = [ | 1308 libs = [ |
1314 "ApplicationServices.framework", | 1309 "ApplicationServices.framework", |
1315 "AppKit.framework", | 1310 "AppKit.framework", |
1316 "bsm", | 1311 "bsm", |
1317 "CoreFoundation.framework", | 1312 "CoreFoundation.framework", |
1318 "IOKit.framework", | 1313 "IOKit.framework", |
1319 "Security.framework", | 1314 "Security.framework", |
1320 ] | 1315 ] |
1321 } | 1316 } |
1322 | 1317 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 "mac/scoped_nsautorelease_pool.h", | 1431 "mac/scoped_nsautorelease_pool.h", |
1437 "mac/scoped_nsautorelease_pool.mm", | 1432 "mac/scoped_nsautorelease_pool.mm", |
1438 "mac/scoped_nsobject.h", | 1433 "mac/scoped_nsobject.h", |
1439 "mac/scoped_nsobject.mm", | 1434 "mac/scoped_nsobject.mm", |
1440 "mac/scoped_objc_class_swizzler.h", | 1435 "mac/scoped_objc_class_swizzler.h", |
1441 "mac/scoped_objc_class_swizzler.mm", | 1436 "mac/scoped_objc_class_swizzler.mm", |
1442 "mac/scoped_typeref.h", | 1437 "mac/scoped_typeref.h", |
1443 "memory/shared_memory_posix.cc", | 1438 "memory/shared_memory_posix.cc", |
1444 "message_loop/message_pump_mac.h", | 1439 "message_loop/message_pump_mac.h", |
1445 "message_loop/message_pump_mac.mm", | 1440 "message_loop/message_pump_mac.mm", |
| 1441 "power_monitor/power_monitor_device_source_ios.mm", |
1446 "process/memory_stubs.cc", | 1442 "process/memory_stubs.cc", |
1447 "strings/sys_string_conversions_mac.mm", | 1443 "strings/sys_string_conversions_mac.mm", |
1448 "threading/platform_thread_mac.mm", | 1444 "threading/platform_thread_mac.mm", |
1449 "time/time_mac.cc", | 1445 "time/time_mac.cc", |
1450 ] | 1446 ] |
1451 | 1447 |
1452 set_sources_assignment_filter(sources_assignment_filter) | 1448 set_sources_assignment_filter(sources_assignment_filter) |
1453 } | 1449 } |
1454 | 1450 |
| 1451 if (is_posix && !is_mac && !is_ios && !is_android && !is_chromeos) { |
| 1452 sources += [ "power_monitor/power_monitor_device_source_posix.cc" ] |
| 1453 } |
| 1454 |
1455 if (!use_glib) { | 1455 if (!use_glib) { |
1456 sources -= [ | 1456 sources -= [ |
1457 "message_loop/message_pump_glib.cc", | 1457 "message_loop/message_pump_glib.cc", |
1458 "message_loop/message_pump_glib.h", | 1458 "message_loop/message_pump_glib.h", |
1459 ] | 1459 ] |
1460 } | 1460 } |
1461 | 1461 |
1462 if (using_sanitizer) { | 1462 if (using_sanitizer) { |
1463 data += [ "//tools/valgrind/asan/" ] | 1463 data += [ "//tools/valgrind/asan/" ] |
1464 if (is_win) { | 1464 if (is_win) { |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2459 testonly = true | 2459 testonly = true |
2460 deps = [ | 2460 deps = [ |
2461 ":base_java", | 2461 ":base_java", |
2462 ] | 2462 ] |
2463 java_files = [ | 2463 java_files = [ |
2464 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java", | 2464 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java", |
2465 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java", | 2465 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java", |
2466 ] | 2466 ] |
2467 } | 2467 } |
2468 } | 2468 } |
OLD | NEW |