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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 "mac/scoped_nsautorelease_pool.h", | 303 "mac/scoped_nsautorelease_pool.h", |
304 "mac/scoped_nsautorelease_pool.mm", | 304 "mac/scoped_nsautorelease_pool.mm", |
305 "mac/scoped_nsexception_enabler.h", | 305 "mac/scoped_nsexception_enabler.h", |
306 "mac/scoped_nsexception_enabler.mm", | 306 "mac/scoped_nsexception_enabler.mm", |
307 "mac/scoped_nsobject.h", | 307 "mac/scoped_nsobject.h", |
308 "mac/scoped_objc_class_swizzler.h", | 308 "mac/scoped_objc_class_swizzler.h", |
309 "mac/scoped_objc_class_swizzler.mm", | 309 "mac/scoped_objc_class_swizzler.mm", |
310 "mac/scoped_sending_event.h", | 310 "mac/scoped_sending_event.h", |
311 "mac/scoped_sending_event.mm", | 311 "mac/scoped_sending_event.mm", |
312 "mac/sdk_forward_declarations.h", | 312 "mac/sdk_forward_declarations.h", |
| 313 "mac/sdk_forward_declarations.mm", |
313 "macros.h", | 314 "macros.h", |
314 "md5.cc", | 315 "md5.cc", |
315 "md5.h", | 316 "md5.h", |
316 "memory/aligned_memory.cc", | 317 "memory/aligned_memory.cc", |
317 "memory/aligned_memory.h", | 318 "memory/aligned_memory.h", |
318 "memory/discardable_memory.cc", | 319 "memory/discardable_memory.cc", |
319 "memory/discardable_memory.h", | 320 "memory/discardable_memory.h", |
320 "memory/discardable_memory_android.cc", | 321 "memory/discardable_memory_android.cc", |
321 "memory/discardable_memory_emulated.cc", | 322 "memory/discardable_memory_emulated.cc", |
322 "memory/discardable_memory_emulated.h", | 323 "memory/discardable_memory_emulated.h", |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 "timer/hi_res_timer_manager_win.cc", | 669 "timer/hi_res_timer_manager_win.cc", |
669 "timer/mock_timer.cc", | 670 "timer/mock_timer.cc", |
670 "timer/mock_timer.h", | 671 "timer/mock_timer.h", |
671 "timer/timer.cc", | 672 "timer/timer.cc", |
672 "timer/timer.h", | 673 "timer/timer.h", |
673 "trace_event/memory_dump_manager.cc", | 674 "trace_event/memory_dump_manager.cc", |
674 "trace_event/memory_dump_manager.h", | 675 "trace_event/memory_dump_manager.h", |
675 "trace_event/memory_dump_provider.h", | 676 "trace_event/memory_dump_provider.h", |
676 "trace_event/process_memory_dump.cc", | 677 "trace_event/process_memory_dump.cc", |
677 "trace_event/process_memory_dump.h", | 678 "trace_event/process_memory_dump.h", |
| 679 "trace_event/process_memory_maps.cc", |
| 680 "trace_event/process_memory_maps.h", |
| 681 "trace_event/process_memory_maps_dump_provider.cc", |
| 682 "trace_event/process_memory_maps_dump_provider.h", |
678 "trace_event/process_memory_totals.cc", | 683 "trace_event/process_memory_totals.cc", |
679 "trace_event/process_memory_totals.h", | 684 "trace_event/process_memory_totals.h", |
680 "trace_event/process_memory_totals_dump_provider.cc", | 685 "trace_event/process_memory_totals_dump_provider.cc", |
681 "trace_event/process_memory_totals_dump_provider.h", | 686 "trace_event/process_memory_totals_dump_provider.h", |
682 "trace_event/trace_event.h", | 687 "trace_event/trace_event.h", |
683 "trace_event/trace_event_android.cc", | 688 "trace_event/trace_event_android.cc", |
684 "trace_event/trace_event_argument.cc", | 689 "trace_event/trace_event_argument.cc", |
685 "trace_event/trace_event_argument.h", | 690 "trace_event/trace_event_argument.h", |
686 "trace_event/trace_event_impl.cc", | 691 "trace_event/trace_event_impl.cc", |
687 "trace_event/trace_event_impl.h", | 692 "trace_event/trace_event_impl.h", |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 "win/startup_information.h", | 757 "win/startup_information.h", |
753 "win/win_util.cc", | 758 "win/win_util.cc", |
754 "win/win_util.h", | 759 "win/win_util.h", |
755 "win/windows_version.cc", | 760 "win/windows_version.cc", |
756 "win/windows_version.h", | 761 "win/windows_version.h", |
757 "win/wrapped_window_proc.cc", | 762 "win/wrapped_window_proc.cc", |
758 "win/wrapped_window_proc.h", | 763 "win/wrapped_window_proc.h", |
759 ] | 764 ] |
760 | 765 |
761 if (is_nacl) { | 766 if (is_nacl) { |
762 sources += [ "files/file_path_watcher_stub.cc" ] | 767 # We reset sources_assignment_filter in order to explicitly include |
| 768 # the linux file (which would otherwise be filtered out). |
| 769 set_sources_assignment_filter([]) |
| 770 sources += [ |
| 771 "files/file_path_watcher_stub.cc", |
| 772 "sync_socket_nacl.cc", |
| 773 "threading/platform_thread_linux.cc", |
| 774 ] |
| 775 set_sources_assignment_filter(sources_assignment_filter) |
| 776 |
| 777 sources -= [ |
| 778 "allocator/type_profiler_control.cc", |
| 779 "allocator/type_profiler_control.h", |
| 780 "async_socket_io_handler_posix.cc", |
| 781 "base_paths.cc", |
| 782 "cpu.cc", |
| 783 "files/file_proxy.cc", |
| 784 "files/file_util.cc", |
| 785 "files/file_util_proxy.cc", |
| 786 "path_service.cc", |
| 787 "scoped_native_library.cc", |
| 788 "files/scoped_temp_dir.cc", |
| 789 ] |
763 } | 790 } |
764 | 791 |
765 sources -= [ | 792 sources -= [ |
766 "process/process_handle_freebsd.cc", | 793 "process/process_handle_freebsd.cc", |
767 "process/process_handle_openbsd.cc", | 794 "process/process_handle_openbsd.cc", |
768 "process/process_iterator_freebsd.cc", | 795 "process/process_iterator_freebsd.cc", |
769 "process/process_iterator_openbsd.cc", | 796 "process/process_iterator_openbsd.cc", |
770 "process/process_metrics_freebsd.cc", | 797 "process/process_metrics_freebsd.cc", |
771 "process/process_metrics_openbsd.cc", | 798 "process/process_metrics_openbsd.cc", |
772 "sys_info_freebsd.cc", | 799 "sys_info_freebsd.cc", |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 "files/file_enumerator_posix.cc", | 867 "files/file_enumerator_posix.cc", |
841 "files/file_util_posix.cc", | 868 "files/file_util_posix.cc", |
842 "memory/shared_memory_posix.cc", | 869 "memory/shared_memory_posix.cc", |
843 "message_loop/message_pump_libevent.cc", | 870 "message_loop/message_pump_libevent.cc", |
844 "metrics/field_trial.cc", | 871 "metrics/field_trial.cc", |
845 "native_library_posix.cc", | 872 "native_library_posix.cc", |
846 "process/kill_posix.cc", | 873 "process/kill_posix.cc", |
847 "process/launch_posix.cc", | 874 "process/launch_posix.cc", |
848 "process/process_metrics_posix.cc", | 875 "process/process_metrics_posix.cc", |
849 "process/process_posix.cc", | 876 "process/process_posix.cc", |
| 877 "rand_util_posix.cc", |
850 "sync_socket_posix.cc", | 878 "sync_socket_posix.cc", |
851 "sys_info_posix.cc", | 879 "sys_info_posix.cc", |
852 ] | 880 ] |
853 } else { | 881 } else { |
854 # Remove nacl stuff. | 882 # Remove NaCl stuff. |
855 sources -= [ | 883 sources -= [ |
856 "memory/shared_memory_nacl.cc", | 884 "memory/shared_memory_nacl.cc", |
857 "os_compat_nacl.cc", | 885 "os_compat_nacl.cc", |
858 "os_compat_nacl.h", | 886 "os_compat_nacl.h", |
859 "rand_util_nacl.cc", | 887 "rand_util_nacl.cc", |
860 ] | 888 ] |
861 } | 889 } |
862 | 890 |
863 # Windows. | 891 # Windows. |
864 if (is_win) { | 892 if (is_win) { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 source_set("protect_file_posix") { | 1155 source_set("protect_file_posix") { |
1128 sources = [ | 1156 sources = [ |
1129 "files/protect_file_posix.cc", | 1157 "files/protect_file_posix.cc", |
1130 ] | 1158 ] |
1131 | 1159 |
1132 deps = [ | 1160 deps = [ |
1133 "//base", | 1161 "//base", |
1134 ] | 1162 ] |
1135 } | 1163 } |
1136 | 1164 |
| 1165 if (is_win) { |
| 1166 shared_library("pe_image_test") { |
| 1167 sources = [ |
| 1168 "win/pe_image_test.cc", |
| 1169 ] |
| 1170 ldflags = [ |
| 1171 "/DELAYLOAD:cfgmgr32.dll", |
| 1172 "/DELAYLOAD:shell32.dll", |
| 1173 "/SUBSYSTEM:WINDOWS", |
| 1174 ] |
| 1175 libs = [ |
| 1176 "cfgmgr32.lib", |
| 1177 "shell32.lib", |
| 1178 ] |
| 1179 } |
| 1180 } |
| 1181 |
1137 test("base_unittests") { | 1182 test("base_unittests") { |
1138 sources = [ | 1183 sources = [ |
1139 "android/application_status_listener_unittest.cc", | 1184 "android/application_status_listener_unittest.cc", |
1140 "android/content_uri_utils_unittest.cc", | 1185 "android/content_uri_utils_unittest.cc", |
1141 "android/jni_android_unittest.cc", | 1186 "android/jni_android_unittest.cc", |
1142 "android/jni_array_unittest.cc", | 1187 "android/jni_array_unittest.cc", |
1143 "android/jni_string_unittest.cc", | 1188 "android/jni_string_unittest.cc", |
1144 "android/path_utils_unittest.cc", | 1189 "android/path_utils_unittest.cc", |
1145 "android/scoped_java_ref_unittest.cc", | 1190 "android/scoped_java_ref_unittest.cc", |
1146 "android/sys_utils_unittest.cc", | 1191 "android/sys_utils_unittest.cc", |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 "threading/worker_pool_posix_unittest.cc", | 1374 "threading/worker_pool_posix_unittest.cc", |
1330 "threading/worker_pool_unittest.cc", | 1375 "threading/worker_pool_unittest.cc", |
1331 "time/pr_time_unittest.cc", | 1376 "time/pr_time_unittest.cc", |
1332 "time/time_unittest.cc", | 1377 "time/time_unittest.cc", |
1333 "time/time_win_unittest.cc", | 1378 "time/time_win_unittest.cc", |
1334 "timer/hi_res_timer_manager_unittest.cc", | 1379 "timer/hi_res_timer_manager_unittest.cc", |
1335 "timer/mock_timer_unittest.cc", | 1380 "timer/mock_timer_unittest.cc", |
1336 "timer/timer_unittest.cc", | 1381 "timer/timer_unittest.cc", |
1337 "tools_sanity_unittest.cc", | 1382 "tools_sanity_unittest.cc", |
1338 "trace_event/memory_dump_manager_unittest.cc", | 1383 "trace_event/memory_dump_manager_unittest.cc", |
| 1384 "trace_event/process_memory_maps_dump_provider_unittest.cc", |
1339 "trace_event/process_memory_totals_dump_provider_unittest.cc", | 1385 "trace_event/process_memory_totals_dump_provider_unittest.cc", |
1340 "trace_event/trace_event_argument_unittest.cc", | 1386 "trace_event/trace_event_argument_unittest.cc", |
1341 "trace_event/trace_event_memory_unittest.cc", | 1387 "trace_event/trace_event_memory_unittest.cc", |
1342 "trace_event/trace_event_synthetic_delay_unittest.cc", | 1388 "trace_event/trace_event_synthetic_delay_unittest.cc", |
1343 "trace_event/trace_event_system_stats_monitor_unittest.cc", | 1389 "trace_event/trace_event_system_stats_monitor_unittest.cc", |
1344 "trace_event/trace_event_unittest.cc", | 1390 "trace_event/trace_event_unittest.cc", |
1345 "trace_event/trace_event_win_unittest.cc", | 1391 "trace_event/trace_event_win_unittest.cc", |
1346 "tracked_objects_unittest.cc", | 1392 "tracked_objects_unittest.cc", |
1347 "tuple_unittest.cc", | 1393 "tuple_unittest.cc", |
1348 "values_unittest.cc", | 1394 "values_unittest.cc", |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1434 deps += [ "//third_party/libevent" ] | 1480 deps += [ "//third_party/libevent" ] |
1435 } | 1481 } |
1436 | 1482 |
1437 if (is_android) { | 1483 if (is_android) { |
1438 deps += [ "//testing/android:native_test_native_code" ] | 1484 deps += [ "//testing/android:native_test_native_code" ] |
1439 set_sources_assignment_filter([]) | 1485 set_sources_assignment_filter([]) |
1440 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1486 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
1441 set_sources_assignment_filter(sources_assignment_filter) | 1487 set_sources_assignment_filter(sources_assignment_filter) |
1442 } | 1488 } |
1443 | 1489 |
| 1490 if (is_win) { |
| 1491 deps += [ ":pe_image_test" ] |
| 1492 } |
| 1493 |
1444 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1494 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1445 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1495 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1446 } | 1496 } |
1447 | 1497 |
1448 if (is_android) { | 1498 if (is_android) { |
1449 # GYP: //base.gyp:base_jni_headers | 1499 # GYP: //base.gyp:base_jni_headers |
1450 generate_jni("base_jni_headers") { | 1500 generate_jni("base_jni_headers") { |
1451 sources = [ | 1501 sources = [ |
1452 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1502 "android/java/src/org/chromium/base/ApplicationStatus.java", |
1453 "android/java/src/org/chromium/base/BuildInfo.java", | 1503 "android/java/src/org/chromium/base/BuildInfo.java", |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1541 | 1591 |
1542 # GYP: //base.gyp:base_java_unittest_support | 1592 # GYP: //base.gyp:base_java_unittest_support |
1543 android_library("base_java_unittest_support") { | 1593 android_library("base_java_unittest_support") { |
1544 deps = [ | 1594 deps = [ |
1545 ":base_java", | 1595 ":base_java", |
1546 ] | 1596 ] |
1547 java_files = | 1597 java_files = |
1548 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1598 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1549 } | 1599 } |
1550 } | 1600 } |
OLD | NEW |