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 } |
11 | 11 |
12 config("base_implementation") { | 12 config("base_implementation") { |
13 defines = [ "BASE_IMPLEMENTATION" ] | 13 defines = [ "BASE_IMPLEMENTATION" ] |
14 } | 14 } |
15 | 15 |
| 16 if (is_win) { |
| 17 # This is in a separate config so the flags can be applied to dependents. |
| 18 # ldflags in GN aren't automatically inherited. |
| 19 config("base_win_linker_flags") { |
| 20 ldflags = [ |
| 21 "/DELAYLOAD:cfgmgr32.dll", |
| 22 "/DELAYLOAD:powrprof.dll", |
| 23 "/DELAYLOAD:setupapi.dll", |
| 24 ] |
| 25 } |
| 26 } |
| 27 |
16 source_set("base_paths") { | 28 source_set("base_paths") { |
17 sources = [ | 29 sources = [ |
18 "base_paths.cc", | 30 "base_paths.cc", |
19 "base_paths.h", | 31 "base_paths.h", |
20 "base_paths_android.cc", | 32 "base_paths_android.cc", |
21 "base_paths_android.h", | 33 "base_paths_android.h", |
22 "base_paths_mac.h", | 34 "base_paths_mac.h", |
23 "base_paths_mac.mm", | 35 "base_paths_mac.mm", |
24 "base_paths_posix.cc", | 36 "base_paths_posix.cc", |
25 "base_paths_posix.h", | 37 "base_paths_posix.h", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 "android/event_log.cc", | 84 "android/event_log.cc", |
73 "android/event_log.h", | 85 "android/event_log.h", |
74 "android/field_trial_list.cc", | 86 "android/field_trial_list.cc", |
75 "android/field_trial_list.h", | 87 "android/field_trial_list.h", |
76 "android/fifo_utils.cc", | 88 "android/fifo_utils.cc", |
77 "android/fifo_utils.h", | 89 "android/fifo_utils.h", |
78 "android/important_file_writer_android.cc", | 90 "android/important_file_writer_android.cc", |
79 "android/important_file_writer_android.h", | 91 "android/important_file_writer_android.h", |
80 "android/java_handler_thread.cc", | 92 "android/java_handler_thread.cc", |
81 "android/java_handler_thread.h", | 93 "android/java_handler_thread.h", |
| 94 "android/java_runtime.cc", |
| 95 "android/java_runtime.h", |
82 "android/jni_android.cc", | 96 "android/jni_android.cc", |
83 "android/jni_android.h", | 97 "android/jni_android.h", |
84 "android/jni_array.cc", | 98 "android/jni_array.cc", |
85 "android/jni_array.h", | 99 "android/jni_array.h", |
86 "android/jni_registrar.cc", | 100 "android/jni_registrar.cc", |
87 "android/jni_registrar.h", | 101 "android/jni_registrar.h", |
88 "android/jni_string.cc", | 102 "android/jni_string.cc", |
89 "android/jni_string.h", | 103 "android/jni_string.h", |
90 "android/jni_utils.cc", | 104 "android/jni_utils.cc", |
91 "android/jni_utils.h", | 105 "android/jni_utils.h", |
92 "android/jni_weak_ref.cc", | 106 "android/jni_weak_ref.cc", |
93 "android/jni_weak_ref.h", | 107 "android/jni_weak_ref.h", |
94 "android/library_loader/library_load_from_apk_status_codes.h", | 108 "android/library_loader/library_load_from_apk_status_codes.h", |
95 "android/library_loader/library_loader_hooks.cc", | 109 "android/library_loader/library_loader_hooks.cc", |
96 "android/library_loader/library_loader_hooks.h", | 110 "android/library_loader/library_loader_hooks.h", |
97 "android/locale_utils.cc", | 111 "android/locale_utils.cc", |
98 "android/locale_utils.h", | 112 "android/locale_utils.h", |
99 "android/memory_pressure_listener_android.cc", | 113 "android/memory_pressure_listener_android.cc", |
100 "android/memory_pressure_listener_android.h", | 114 "android/memory_pressure_listener_android.h", |
101 "android/path_service_android.cc", | 115 "android/path_service_android.cc", |
102 "android/path_service_android.h", | 116 "android/path_service_android.h", |
103 "android/path_utils.cc", | 117 "android/path_utils.cc", |
104 "android/path_utils.h", | 118 "android/path_utils.h", |
105 "android/record_histogram.cc", | 119 "android/record_histogram.cc", |
106 "android/record_histogram.h", | 120 "android/record_histogram.h", |
| 121 "android/record_user_action.cc", |
| 122 "android/record_user_action.h", |
107 "android/scoped_java_ref.cc", | 123 "android/scoped_java_ref.cc", |
108 "android/scoped_java_ref.h", | 124 "android/scoped_java_ref.h", |
109 "android/sys_utils.cc", | 125 "android/sys_utils.cc", |
110 "android/sys_utils.h", | 126 "android/sys_utils.h", |
111 "android/thread_utils.h", | 127 "android/thread_utils.h", |
112 "android/trace_event_binding.cc", | 128 "android/trace_event_binding.cc", |
113 "android/trace_event_binding.h", | 129 "android/trace_event_binding.h", |
114 "async_socket_io_handler.h", | 130 "async_socket_io_handler.h", |
115 "async_socket_io_handler_posix.cc", | 131 "async_socket_io_handler_posix.cc", |
116 "async_socket_io_handler_win.cc", | 132 "async_socket_io_handler_win.cc", |
(...skipping 25 matching lines...) Expand all Loading... |
142 "bind_internal_win.h", | 158 "bind_internal_win.h", |
143 "bits.h", | 159 "bits.h", |
144 "build_time.cc", | 160 "build_time.cc", |
145 "build_time.h", | 161 "build_time.h", |
146 "callback.h", | 162 "callback.h", |
147 "callback_helpers.cc", | 163 "callback_helpers.cc", |
148 "callback_helpers.h", | 164 "callback_helpers.h", |
149 "callback_internal.cc", | 165 "callback_internal.cc", |
150 "callback_internal.h", | 166 "callback_internal.h", |
151 "cancelable_callback.h", | 167 "cancelable_callback.h", |
152 "chromeos/memory_pressure_observer_chromeos.cc", | 168 "chromeos/memory_pressure_monitor_chromeos.cc", |
153 "chromeos/memory_pressure_observer_chromeos.h", | 169 "chromeos/memory_pressure_monitor_chromeos.h", |
154 "command_line.cc", | 170 "command_line.cc", |
155 "command_line.h", | 171 "command_line.h", |
156 "compiler_specific.h", | 172 "compiler_specific.h", |
157 "containers/adapters.h", | 173 "containers/adapters.h", |
158 "containers/hash_tables.h", | 174 "containers/hash_tables.h", |
159 "containers/linked_list.h", | 175 "containers/linked_list.h", |
160 "containers/mru_cache.h", | 176 "containers/mru_cache.h", |
161 "containers/small_map.h", | 177 "containers/small_map.h", |
162 "containers/stack_container.h", | 178 "containers/stack_container.h", |
163 "cpu.cc", | 179 "cpu.cc", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 "files/important_file_writer.cc", | 226 "files/important_file_writer.cc", |
211 "files/important_file_writer.h", | 227 "files/important_file_writer.h", |
212 "files/memory_mapped_file.cc", | 228 "files/memory_mapped_file.cc", |
213 "files/memory_mapped_file.h", | 229 "files/memory_mapped_file.h", |
214 "files/memory_mapped_file_posix.cc", | 230 "files/memory_mapped_file_posix.cc", |
215 "files/memory_mapped_file_win.cc", | 231 "files/memory_mapped_file_win.cc", |
216 "files/scoped_file.cc", | 232 "files/scoped_file.cc", |
217 "files/scoped_file.h", | 233 "files/scoped_file.h", |
218 "files/scoped_temp_dir.cc", | 234 "files/scoped_temp_dir.cc", |
219 "files/scoped_temp_dir.h", | 235 "files/scoped_temp_dir.h", |
220 "float_util.h", | |
221 "format_macros.h", | 236 "format_macros.h", |
222 "gtest_prod_util.h", | 237 "gtest_prod_util.h", |
223 "guid.cc", | 238 "guid.cc", |
224 "guid.h", | 239 "guid.h", |
225 "guid_posix.cc", | 240 "guid_posix.cc", |
226 "guid_win.cc", | 241 "guid_win.cc", |
227 "hash.cc", | 242 "hash.cc", |
228 "hash.h", | 243 "hash.h", |
229 "id_map.h", | 244 "id_map.h", |
230 "ios/device_util.h", | 245 "ios/device_util.h", |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 "message_loop/message_pump_io_ios.cc", | 328 "message_loop/message_pump_io_ios.cc", |
314 "message_loop/message_pump_io_ios.h", | 329 "message_loop/message_pump_io_ios.h", |
315 "message_loop/message_pump_libevent.cc", | 330 "message_loop/message_pump_libevent.cc", |
316 "message_loop/message_pump_libevent.h", | 331 "message_loop/message_pump_libevent.h", |
317 "message_loop/message_pump_mac.h", | 332 "message_loop/message_pump_mac.h", |
318 "message_loop/message_pump_mac.mm", | 333 "message_loop/message_pump_mac.mm", |
319 "message_loop/message_pump_win.cc", | 334 "message_loop/message_pump_win.cc", |
320 "message_loop/message_pump_win.h", | 335 "message_loop/message_pump_win.h", |
321 "move.h", | 336 "move.h", |
322 "native_library.h", | 337 "native_library.h", |
| 338 "native_library_ios.mm", |
323 "native_library_mac.mm", | 339 "native_library_mac.mm", |
324 "native_library_posix.cc", | 340 "native_library_posix.cc", |
325 "native_library_win.cc", | 341 "native_library_win.cc", |
326 "nix/mime_util_xdg.cc", | 342 "nix/mime_util_xdg.cc", |
327 "nix/mime_util_xdg.h", | 343 "nix/mime_util_xdg.h", |
328 "nix/xdg_util.cc", | 344 "nix/xdg_util.cc", |
329 "nix/xdg_util.h", | 345 "nix/xdg_util.h", |
330 "numerics/safe_conversions.h", | 346 "numerics/safe_conversions.h", |
331 "numerics/safe_conversions_impl.h", | 347 "numerics/safe_conversions_impl.h", |
332 "numerics/safe_math.h", | 348 "numerics/safe_math.h", |
(...skipping 26 matching lines...) Expand all Loading... |
359 "power_monitor/power_monitor_device_source_chromeos.cc", | 375 "power_monitor/power_monitor_device_source_chromeos.cc", |
360 "power_monitor/power_monitor_device_source_ios.mm", | 376 "power_monitor/power_monitor_device_source_ios.mm", |
361 "power_monitor/power_monitor_device_source_mac.mm", | 377 "power_monitor/power_monitor_device_source_mac.mm", |
362 "power_monitor/power_monitor_device_source_posix.cc", | 378 "power_monitor/power_monitor_device_source_posix.cc", |
363 "power_monitor/power_monitor_device_source_win.cc", | 379 "power_monitor/power_monitor_device_source_win.cc", |
364 "power_monitor/power_monitor_source.cc", | 380 "power_monitor/power_monitor_source.cc", |
365 "power_monitor/power_monitor_source.h", | 381 "power_monitor/power_monitor_source.h", |
366 "power_monitor/power_observer.h", | 382 "power_monitor/power_observer.h", |
367 "profiler/alternate_timer.cc", | 383 "profiler/alternate_timer.cc", |
368 "profiler/alternate_timer.h", | 384 "profiler/alternate_timer.h", |
| 385 "profiler/native_stack_sampler.cc", |
| 386 "profiler/native_stack_sampler.h", |
369 "profiler/scoped_profile.cc", | 387 "profiler/scoped_profile.cc", |
370 "profiler/scoped_profile.h", | 388 "profiler/scoped_profile.h", |
371 "profiler/scoped_tracker.cc", | 389 "profiler/scoped_tracker.cc", |
372 "profiler/scoped_tracker.h", | 390 "profiler/scoped_tracker.h", |
373 "profiler/stack_sampling_profiler.cc", | 391 "profiler/stack_sampling_profiler.cc", |
374 "profiler/stack_sampling_profiler.h", | 392 "profiler/stack_sampling_profiler.h", |
375 "profiler/stack_sampling_profiler_posix.cc", | 393 "profiler/stack_sampling_profiler_posix.cc", |
376 "profiler/stack_sampling_profiler_win.cc", | 394 "profiler/stack_sampling_profiler_win.cc", |
377 "profiler/tracked_time.cc", | 395 "profiler/tracked_time.cc", |
378 "profiler/tracked_time.h", | 396 "profiler/tracked_time.h", |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 "task/cancelable_task_tracker.h", | 491 "task/cancelable_task_tracker.h", |
474 "task_runner.cc", | 492 "task_runner.cc", |
475 "task_runner.h", | 493 "task_runner.h", |
476 "task_runner_util.h", | 494 "task_runner_util.h", |
477 "template_util.h", | 495 "template_util.h", |
478 "third_party/dmg_fp/dmg_fp.h", | 496 "third_party/dmg_fp/dmg_fp.h", |
479 "third_party/dmg_fp/dtoa_wrapper.cc", | 497 "third_party/dmg_fp/dtoa_wrapper.cc", |
480 "third_party/dmg_fp/g_fmt.cc", | 498 "third_party/dmg_fp/g_fmt.cc", |
481 "third_party/icu/icu_utf.cc", | 499 "third_party/icu/icu_utf.cc", |
482 "third_party/icu/icu_utf.h", | 500 "third_party/icu/icu_utf.h", |
| 501 "third_party/nspr/prtime.cc", |
| 502 "third_party/nspr/prtime.h", |
483 "third_party/superfasthash/superfasthash.c", | 503 "third_party/superfasthash/superfasthash.c", |
484 "thread_task_runner_handle.cc", | 504 "thread_task_runner_handle.cc", |
485 "thread_task_runner_handle.h", | 505 "thread_task_runner_handle.h", |
486 "threading/non_thread_safe.h", | 506 "threading/non_thread_safe.h", |
487 "threading/non_thread_safe_impl.cc", | 507 "threading/non_thread_safe_impl.cc", |
488 "threading/non_thread_safe_impl.h", | 508 "threading/non_thread_safe_impl.h", |
489 "threading/platform_thread.h", | 509 "threading/platform_thread.h", |
490 "threading/platform_thread_android.cc", | 510 "threading/platform_thread_android.cc", |
491 "threading/platform_thread_internal_posix.cc", | 511 "threading/platform_thread_internal_posix.cc", |
492 "threading/platform_thread_internal_posix.h", | 512 "threading/platform_thread_internal_posix.h", |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 "sys_info_freebsd.cc", | 636 "sys_info_freebsd.cc", |
617 "sys_info_openbsd.cc", | 637 "sys_info_openbsd.cc", |
618 ] | 638 ] |
619 | 639 |
620 configs += [ ":base_implementation" ] | 640 configs += [ ":base_implementation" ] |
621 | 641 |
622 deps = [ | 642 deps = [ |
623 ":base_static", | 643 ":base_static", |
624 "//base/allocator:allocator_extension_thunks", | 644 "//base/allocator:allocator_extension_thunks", |
625 "//base/third_party/dynamic_annotations", | 645 "//base/third_party/dynamic_annotations", |
626 "//base/third_party/nspr", | |
627 "//third_party/modp_b64", | 646 "//third_party/modp_b64", |
628 ] | 647 ] |
629 | 648 |
630 public_deps = [ | 649 public_deps = [ |
631 ":base_paths", | 650 ":base_paths", |
632 "//base/debug", | 651 "//base/debug", |
633 "//base/json", | 652 "//base/json", |
634 "//base/memory", | 653 "//base/memory", |
635 "//base/metrics", | 654 "//base/metrics", |
636 "//base/process", | 655 "//base/process", |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 | 743 |
725 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 744 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
726 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 745 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
727 | 746 |
728 libs = [ | 747 libs = [ |
729 "cfgmgr32.lib", | 748 "cfgmgr32.lib", |
730 "netapi32.lib", | 749 "netapi32.lib", |
731 "powrprof.lib", | 750 "powrprof.lib", |
732 "setupapi.lib", | 751 "setupapi.lib", |
733 ] | 752 ] |
734 ldflags = [ | 753 all_dependent_configs = [ ":base_win_linker_flags" ] |
735 "/DELAYLOAD:cfgmgr32.dll", | |
736 "/DELAYLOAD:powrprof.dll", | |
737 "/DELAYLOAD:setupapi.dll", | |
738 ] | |
739 } else if (!is_nacl) { | 754 } else if (!is_nacl) { |
740 # Non-Windows. | 755 # Non-Windows. |
741 deps += [ "//third_party/libevent" ] | 756 deps += [ "//third_party/libevent" ] |
742 } | 757 } |
743 | 758 |
744 # Mac. | 759 # Mac. |
745 if (is_mac) { | 760 if (is_mac) { |
746 sources -= [ | 761 sources -= [ |
747 "native_library_posix.cc", | 762 "native_library_posix.cc", |
748 "strings/sys_string_conversions_posix.cc", | 763 "strings/sys_string_conversions_posix.cc", |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 | 889 |
875 if (is_android && !is_debug) { | 890 if (is_android && !is_debug) { |
876 configs -= [ "//build/config/compiler:optimize" ] | 891 configs -= [ "//build/config/compiler:optimize" ] |
877 configs += [ "//build/config/compiler:optimize_max" ] | 892 configs += [ "//build/config/compiler:optimize_max" ] |
878 } | 893 } |
879 | 894 |
880 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 895 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
881 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 896 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
882 } | 897 } |
883 | 898 |
884 if (is_linux && !is_chromeos) { | 899 if (is_win || (is_linux && !is_chromeos)) { |
885 # TODO(GYP): Figure out which of these work and are needed on other platforms. | 900 # TODO(GYP): Figure out which of these work and are needed on other platforms. |
886 test("base_perftests") { | 901 test("base_perftests") { |
887 sources = [ | 902 sources = [ |
888 "message_loop/message_pump_perftest.cc", | 903 "message_loop/message_pump_perftest.cc", |
889 | 904 |
890 # "test/run_all_unittests.cc", | 905 # "test/run_all_unittests.cc", |
891 "threading/thread_perftest.cc", | 906 "threading/thread_perftest.cc", |
892 ] | 907 ] |
893 deps = [ | 908 deps = [ |
894 ":base", | 909 ":base", |
895 "//base/test:test_support", | 910 "//base/test:test_support", |
896 "//base/test:test_support_perf", | 911 "//base/test:test_support_perf", |
897 "//testing/perf", | 912 "//testing/perf", |
898 "//testing/gtest", | 913 "//testing/gtest", |
899 ] | 914 ] |
900 | 915 |
901 if (is_android) { | 916 if (is_android) { |
902 deps += [ "//testing/android:native_test_native_code" ] | 917 deps += [ "//testing/android/native_test:native_test_native_code" ] |
903 } | 918 } |
904 } | 919 } |
905 | 920 |
906 test("base_i18n_perftests") { | 921 test("base_i18n_perftests") { |
907 sources = [ | 922 sources = [ |
908 "i18n/streaming_utf8_validator_perftest.cc", | 923 "i18n/streaming_utf8_validator_perftest.cc", |
909 ] | 924 ] |
910 deps = [ | 925 deps = [ |
911 ":base", | 926 ":base", |
912 ":i18n", | 927 ":i18n", |
(...skipping 18 matching lines...) Expand all Loading... |
931 sources = [ | 946 sources = [ |
932 "check_example.cc", | 947 "check_example.cc", |
933 ] | 948 ] |
934 deps = [ | 949 deps = [ |
935 ":base", | 950 ":base", |
936 ] | 951 ] |
937 } | 952 } |
938 } | 953 } |
939 } | 954 } |
940 | 955 |
941 source_set("prefs") { | 956 component("prefs") { |
942 sources = [ | 957 sources = [ |
943 "prefs/base_prefs_export.h", | 958 "prefs/base_prefs_export.h", |
944 "prefs/default_pref_store.cc", | 959 "prefs/default_pref_store.cc", |
945 "prefs/default_pref_store.h", | 960 "prefs/default_pref_store.h", |
946 "prefs/json_pref_store.cc", | 961 "prefs/json_pref_store.cc", |
947 "prefs/json_pref_store.h", | 962 "prefs/json_pref_store.h", |
948 "prefs/overlay_user_pref_store.cc", | 963 "prefs/overlay_user_pref_store.cc", |
949 "prefs/overlay_user_pref_store.h", | 964 "prefs/overlay_user_pref_store.h", |
950 "prefs/persistent_pref_store.h", | 965 "prefs/persistent_pref_store.h", |
951 "prefs/pref_change_registrar.cc", | 966 "prefs/pref_change_registrar.cc", |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 "message_loop/message_loop_test.cc", | 1034 "message_loop/message_loop_test.cc", |
1020 "message_loop/message_loop_test.h", | 1035 "message_loop/message_loop_test.h", |
1021 ] | 1036 ] |
1022 | 1037 |
1023 deps = [ | 1038 deps = [ |
1024 ":base", | 1039 ":base", |
1025 "//testing/gtest", | 1040 "//testing/gtest", |
1026 ] | 1041 ] |
1027 } | 1042 } |
1028 | 1043 |
1029 # TODO(pasko): Remove this target when crbug.com/424562 is fixed. | |
1030 source_set("protect_file_posix") { | |
1031 sources = [ | |
1032 "files/protect_file_posix.cc", | |
1033 ] | |
1034 | |
1035 deps = [ | |
1036 "//base", | |
1037 ] | |
1038 } | |
1039 | |
1040 if (is_win) { | 1044 if (is_win) { |
1041 # Target to manually rebuild pe_image_test.dll which is checked into | 1045 # Target to manually rebuild pe_image_test.dll which is checked into |
1042 # base/test/data/pe_image. | 1046 # base/test/data/pe_image. |
1043 shared_library("pe_image_test") { | 1047 shared_library("pe_image_test") { |
1044 sources = [ | 1048 sources = [ |
1045 "win/pe_image_test.cc", | 1049 "win/pe_image_test.cc", |
1046 ] | 1050 ] |
1047 ldflags = [ | 1051 ldflags = [ |
1048 "/DELAYLOAD:cfgmgr32.dll", | 1052 "/DELAYLOAD:cfgmgr32.dll", |
1049 "/DELAYLOAD:shell32.dll", | 1053 "/DELAYLOAD:shell32.dll", |
(...skipping 25 matching lines...) Expand all Loading... |
1075 "bind_unittest.cc", | 1079 "bind_unittest.cc", |
1076 "bind_unittest.nc", | 1080 "bind_unittest.nc", |
1077 "bits_unittest.cc", | 1081 "bits_unittest.cc", |
1078 "build_time_unittest.cc", | 1082 "build_time_unittest.cc", |
1079 "callback_helpers_unittest.cc", | 1083 "callback_helpers_unittest.cc", |
1080 "callback_list_unittest.cc", | 1084 "callback_list_unittest.cc", |
1081 "callback_list_unittest.nc", | 1085 "callback_list_unittest.nc", |
1082 "callback_unittest.cc", | 1086 "callback_unittest.cc", |
1083 "callback_unittest.nc", | 1087 "callback_unittest.nc", |
1084 "cancelable_callback_unittest.cc", | 1088 "cancelable_callback_unittest.cc", |
1085 "chromeos/memory_pressure_observer_chromeos_unittest.cc", | 1089 "chromeos/memory_pressure_monitor_chromeos_unittest.cc", |
1086 "command_line_unittest.cc", | 1090 "command_line_unittest.cc", |
1087 "containers/adapters_unittest.cc", | 1091 "containers/adapters_unittest.cc", |
1088 "containers/hash_tables_unittest.cc", | 1092 "containers/hash_tables_unittest.cc", |
1089 "containers/linked_list_unittest.cc", | 1093 "containers/linked_list_unittest.cc", |
1090 "containers/mru_cache_unittest.cc", | 1094 "containers/mru_cache_unittest.cc", |
1091 "containers/small_map_unittest.cc", | 1095 "containers/small_map_unittest.cc", |
1092 "containers/stack_container_unittest.cc", | 1096 "containers/stack_container_unittest.cc", |
1093 "cpu_unittest.cc", | 1097 "cpu_unittest.cc", |
1094 "debug/crash_logging_unittest.cc", | 1098 "debug/crash_logging_unittest.cc", |
1095 "debug/debugger_unittest.cc", | 1099 "debug/debugger_unittest.cc", |
1096 "debug/leak_tracker_unittest.cc", | 1100 "debug/leak_tracker_unittest.cc", |
1097 "debug/proc_maps_linux_unittest.cc", | 1101 "debug/proc_maps_linux_unittest.cc", |
1098 "debug/stack_trace_unittest.cc", | 1102 "debug/stack_trace_unittest.cc", |
1099 "debug/task_annotator_unittest.cc", | 1103 "debug/task_annotator_unittest.cc", |
1100 "deferred_sequenced_task_runner_unittest.cc", | 1104 "deferred_sequenced_task_runner_unittest.cc", |
1101 "environment_unittest.cc", | 1105 "environment_unittest.cc", |
1102 "file_version_info_unittest.cc", | 1106 "file_version_info_unittest.cc", |
1103 "files/dir_reader_posix_unittest.cc", | 1107 "files/dir_reader_posix_unittest.cc", |
1104 "files/file_path_unittest.cc", | 1108 "files/file_path_unittest.cc", |
| 1109 "files/file_path_watcher_unittest.cc", |
1105 "files/file_proxy_unittest.cc", | 1110 "files/file_proxy_unittest.cc", |
1106 "files/file_unittest.cc", | 1111 "files/file_unittest.cc", |
1107 "files/file_util_proxy_unittest.cc", | 1112 "files/file_util_proxy_unittest.cc", |
1108 "files/file_util_unittest.cc", | 1113 "files/file_util_unittest.cc", |
1109 "files/important_file_writer_unittest.cc", | 1114 "files/important_file_writer_unittest.cc", |
1110 "files/scoped_temp_dir_unittest.cc", | 1115 "files/scoped_temp_dir_unittest.cc", |
1111 "gmock_unittest.cc", | 1116 "gmock_unittest.cc", |
1112 "guid_unittest.cc", | 1117 "guid_unittest.cc", |
1113 "hash_unittest.cc", | 1118 "hash_unittest.cc", |
1114 "i18n/break_iterator_unittest.cc", | 1119 "i18n/break_iterator_unittest.cc", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1162 "metrics/bucket_ranges_unittest.cc", | 1167 "metrics/bucket_ranges_unittest.cc", |
1163 "metrics/field_trial_unittest.cc", | 1168 "metrics/field_trial_unittest.cc", |
1164 "metrics/histogram_base_unittest.cc", | 1169 "metrics/histogram_base_unittest.cc", |
1165 "metrics/histogram_delta_serialization_unittest.cc", | 1170 "metrics/histogram_delta_serialization_unittest.cc", |
1166 "metrics/histogram_snapshot_manager_unittest.cc", | 1171 "metrics/histogram_snapshot_manager_unittest.cc", |
1167 "metrics/histogram_unittest.cc", | 1172 "metrics/histogram_unittest.cc", |
1168 "metrics/sample_map_unittest.cc", | 1173 "metrics/sample_map_unittest.cc", |
1169 "metrics/sample_vector_unittest.cc", | 1174 "metrics/sample_vector_unittest.cc", |
1170 "metrics/sparse_histogram_unittest.cc", | 1175 "metrics/sparse_histogram_unittest.cc", |
1171 "metrics/statistics_recorder_unittest.cc", | 1176 "metrics/statistics_recorder_unittest.cc", |
| 1177 "move_unittest.cc", |
1172 "numerics/safe_numerics_unittest.cc", | 1178 "numerics/safe_numerics_unittest.cc", |
1173 "observer_list_unittest.cc", | 1179 "observer_list_unittest.cc", |
1174 "os_compat_android_unittest.cc", | 1180 "os_compat_android_unittest.cc", |
1175 "path_service_unittest.cc", | 1181 "path_service_unittest.cc", |
1176 "pickle_unittest.cc", | 1182 "pickle_unittest.cc", |
1177 "posix/file_descriptor_shuffle_unittest.cc", | 1183 "posix/file_descriptor_shuffle_unittest.cc", |
1178 "posix/unix_domain_socket_linux_unittest.cc", | 1184 "posix/unix_domain_socket_linux_unittest.cc", |
1179 "power_monitor/power_monitor_unittest.cc", | 1185 "power_monitor/power_monitor_unittest.cc", |
1180 "prefs/default_pref_store_unittest.cc", | 1186 "prefs/default_pref_store_unittest.cc", |
1181 "prefs/json_pref_store_unittest.cc", | 1187 "prefs/json_pref_store_unittest.cc", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 "sys_info_unittest.cc", | 1235 "sys_info_unittest.cc", |
1230 "system_monitor/system_monitor_unittest.cc", | 1236 "system_monitor/system_monitor_unittest.cc", |
1231 "task/cancelable_task_tracker_unittest.cc", | 1237 "task/cancelable_task_tracker_unittest.cc", |
1232 "task_runner_util_unittest.cc", | 1238 "task_runner_util_unittest.cc", |
1233 "template_util_unittest.cc", | 1239 "template_util_unittest.cc", |
1234 "test/expectations/expectation_unittest.cc", | 1240 "test/expectations/expectation_unittest.cc", |
1235 "test/expectations/parser_unittest.cc", | 1241 "test/expectations/parser_unittest.cc", |
1236 "test/histogram_tester_unittest.cc", | 1242 "test/histogram_tester_unittest.cc", |
1237 "test/test_reg_util_win_unittest.cc", | 1243 "test/test_reg_util_win_unittest.cc", |
1238 "test/trace_event_analyzer_unittest.cc", | 1244 "test/trace_event_analyzer_unittest.cc", |
| 1245 "test/user_action_tester_unittest.cc", |
1239 "threading/non_thread_safe_unittest.cc", | 1246 "threading/non_thread_safe_unittest.cc", |
1240 "threading/platform_thread_unittest.cc", | 1247 "threading/platform_thread_unittest.cc", |
1241 "threading/sequenced_worker_pool_unittest.cc", | 1248 "threading/sequenced_worker_pool_unittest.cc", |
1242 "threading/simple_thread_unittest.cc", | 1249 "threading/simple_thread_unittest.cc", |
1243 "threading/thread_checker_unittest.cc", | 1250 "threading/thread_checker_unittest.cc", |
1244 "threading/thread_collision_warner_unittest.cc", | 1251 "threading/thread_collision_warner_unittest.cc", |
1245 "threading/thread_id_name_manager_unittest.cc", | 1252 "threading/thread_id_name_manager_unittest.cc", |
1246 "threading/thread_local_storage_unittest.cc", | 1253 "threading/thread_local_storage_unittest.cc", |
1247 "threading/thread_local_unittest.cc", | 1254 "threading/thread_local_unittest.cc", |
1248 "threading/thread_unittest.cc", | 1255 "threading/thread_unittest.cc", |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 deps = [ | 1292 deps = [ |
1286 ":base", | 1293 ":base", |
1287 ":i18n", | 1294 ":i18n", |
1288 ":message_loop_tests", | 1295 ":message_loop_tests", |
1289 ":prefs", | 1296 ":prefs", |
1290 ":prefs_test_support", | 1297 ":prefs_test_support", |
1291 "//base/allocator", | 1298 "//base/allocator", |
1292 "//base/test:run_all_unittests", | 1299 "//base/test:run_all_unittests", |
1293 "//base/test:test_support", | 1300 "//base/test:test_support", |
1294 "//base/third_party/dynamic_annotations", | 1301 "//base/third_party/dynamic_annotations", |
1295 "//base/third_party/nspr", | |
1296 "//base/trace_event:trace_event_unittests", | 1302 "//base/trace_event:trace_event_unittests", |
1297 "//testing/gmock", | 1303 "//testing/gmock", |
1298 "//testing/gtest", | 1304 "//testing/gtest", |
1299 "//third_party/icu", | 1305 "//third_party/icu", |
1300 ] | 1306 ] |
1301 | 1307 |
1302 # Allow more direct string conversions on platforms with native utf8 | 1308 # Allow more direct string conversions on platforms with native utf8 |
1303 # strings | 1309 # strings |
1304 if (is_mac || is_ios || is_chromeos) { | 1310 if (is_mac || is_ios || is_chromeos) { |
1305 defines = [ "SYSTEM_NATIVE_UTF8" ] | 1311 defines = [ "SYSTEM_NATIVE_UTF8" ] |
(...skipping 26 matching lines...) Expand all Loading... |
1332 "sys_string_conversions_mac_unittest.mm", | 1338 "sys_string_conversions_mac_unittest.mm", |
1333 ] | 1339 ] |
1334 set_sources_assignment_filter(sources_assignment_filter) | 1340 set_sources_assignment_filter(sources_assignment_filter) |
1335 | 1341 |
1336 # TODO(GYP): dep on copy_test_data_ios action. | 1342 # TODO(GYP): dep on copy_test_data_ios action. |
1337 } | 1343 } |
1338 | 1344 |
1339 if (is_linux) { | 1345 if (is_linux) { |
1340 sources -= [ "file_version_info_unittest.cc" ] | 1346 sources -= [ "file_version_info_unittest.cc" ] |
1341 sources += [ "nix/xdg_util_unittest.cc" ] | 1347 sources += [ "nix/xdg_util_unittest.cc" ] |
| 1348 deps += [ "//base/test:malloc_wrapper" ] |
| 1349 |
1342 if (use_glib) { | 1350 if (use_glib) { |
1343 configs += [ "//build/config/linux:glib" ] | 1351 configs += [ "//build/config/linux:glib" ] |
1344 } | 1352 } |
1345 } | 1353 } |
1346 | 1354 |
1347 if (!is_linux || use_ozone) { | 1355 if (!is_linux || use_ozone) { |
1348 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 1356 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] |
1349 } | 1357 } |
1350 | 1358 |
1351 if (is_posix || is_ios) { | 1359 if (is_posix || is_ios) { |
1352 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 1360 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] |
1353 deps += [ "//third_party/libevent" ] | 1361 deps += [ "//third_party/libevent" ] |
1354 } | 1362 } |
1355 | 1363 |
1356 if (is_android) { | 1364 if (is_android) { |
1357 deps += [ "//testing/android:native_test_native_code" ] | 1365 deps += [ "//testing/android/native_test:native_test_native_code" ] |
1358 set_sources_assignment_filter([]) | 1366 set_sources_assignment_filter([]) |
1359 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1367 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
1360 set_sources_assignment_filter(sources_assignment_filter) | 1368 set_sources_assignment_filter(sources_assignment_filter) |
1361 } | 1369 } |
1362 | 1370 |
1363 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1371 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1364 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1372 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1365 } | 1373 } |
1366 | 1374 |
1367 if (is_android) { | 1375 if (is_android) { |
(...skipping 15 matching lines...) Expand all Loading... |
1383 "android/java/src/org/chromium/base/MemoryPressureListener.java", | 1391 "android/java/src/org/chromium/base/MemoryPressureListener.java", |
1384 "android/java/src/org/chromium/base/PathService.java", | 1392 "android/java/src/org/chromium/base/PathService.java", |
1385 "android/java/src/org/chromium/base/PathUtils.java", | 1393 "android/java/src/org/chromium/base/PathUtils.java", |
1386 "android/java/src/org/chromium/base/PowerMonitor.java", | 1394 "android/java/src/org/chromium/base/PowerMonitor.java", |
1387 "android/java/src/org/chromium/base/SysUtils.java", | 1395 "android/java/src/org/chromium/base/SysUtils.java", |
1388 "android/java/src/org/chromium/base/SystemMessageHandler.java", | 1396 "android/java/src/org/chromium/base/SystemMessageHandler.java", |
1389 "android/java/src/org/chromium/base/ThreadUtils.java", | 1397 "android/java/src/org/chromium/base/ThreadUtils.java", |
1390 "android/java/src/org/chromium/base/TraceEvent.java", | 1398 "android/java/src/org/chromium/base/TraceEvent.java", |
1391 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java", | 1399 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java", |
1392 "android/java/src/org/chromium/base/metrics/RecordHistogram.java", | 1400 "android/java/src/org/chromium/base/metrics/RecordHistogram.java", |
| 1401 "android/java/src/org/chromium/base/metrics/RecordUserAction.java", |
1393 ] | 1402 ] |
| 1403 |
| 1404 deps = [ |
| 1405 ":android_runtime_jni_headers", |
| 1406 ] |
| 1407 |
1394 jni_package = "base" | 1408 jni_package = "base" |
1395 } | 1409 } |
1396 | 1410 |
| 1411 # GYP: //base.gyp:android_runtime_jni_headers |
| 1412 generate_jar_jni("android_runtime_jni_headers") { |
| 1413 jni_package = "base" |
| 1414 classes = [ "java/lang/Runtime.class" ] |
| 1415 } |
| 1416 |
1397 # GYP: //base.gyp:base_java | 1417 # GYP: //base.gyp:base_java |
1398 android_library("base_java") { | 1418 android_library("base_java") { |
1399 srcjar_deps = [ | 1419 srcjar_deps = [ |
1400 ":base_android_java_enums_srcjar", | 1420 ":base_android_java_enums_srcjar", |
1401 ":base_native_libraries_gen", | 1421 ":base_native_libraries_gen", |
1402 ] | 1422 ] |
1403 | 1423 |
1404 deps = [ | 1424 deps = [ |
1405 "//third_party/jsr-305:jsr_305_javalib", | 1425 "//third_party/jsr-305:jsr_305_javalib", |
1406 ] | 1426 ] |
(...skipping 18 matching lines...) Expand all Loading... |
1425 } | 1445 } |
1426 | 1446 |
1427 # GYP: //base.gyp:base_java_test_support | 1447 # GYP: //base.gyp:base_java_test_support |
1428 android_library("base_java_test_support") { | 1448 android_library("base_java_test_support") { |
1429 deps = [ | 1449 deps = [ |
1430 ":base_java", | 1450 ":base_java", |
1431 ] | 1451 ] |
1432 DEPRECATED_java_in_dir = "test/android/javatests/src" | 1452 DEPRECATED_java_in_dir = "test/android/javatests/src" |
1433 } | 1453 } |
1434 | 1454 |
| 1455 # GYP: //base.gyp:base_junit_tests |
| 1456 junit_binary("base_junit_tests") { |
| 1457 java_files = [ "android/junit/src/org/chromium/base/LogTest.java" ] |
| 1458 deps = [ |
| 1459 ":base_java", |
| 1460 ":base_java_test_support", |
| 1461 ] |
| 1462 } |
| 1463 |
1435 # GYP: //base.gyp:base_java_application_state | 1464 # GYP: //base.gyp:base_java_application_state |
1436 # GYP: //base.gyp:base_java_library_load_from_apk_status_codes | 1465 # GYP: //base.gyp:base_java_library_load_from_apk_status_codes |
1437 # GYP: //base.gyp:base_java_library_process_type | 1466 # GYP: //base.gyp:base_java_library_process_type |
1438 # GYP: //base.gyp:base_java_memory_pressure_level | 1467 # GYP: //base.gyp:base_java_memory_pressure_level |
1439 java_cpp_enum("base_android_java_enums_srcjar") { | 1468 java_cpp_enum("base_android_java_enums_srcjar") { |
1440 sources = [ | 1469 sources = [ |
1441 "android/application_status_listener.h", | 1470 "android/application_status_listener.h", |
1442 "android/library_loader/library_load_from_apk_status_codes.h", | 1471 "android/library_loader/library_load_from_apk_status_codes.h", |
1443 "android/library_loader/library_loader_hooks.h", | 1472 "android/library_loader/library_loader_hooks.h", |
1444 "memory/memory_pressure_listener.h", | 1473 "memory/memory_pressure_listener.h", |
(...skipping 16 matching lines...) Expand all Loading... |
1461 | 1490 |
1462 # GYP: //base.gyp:base_java_unittest_support | 1491 # GYP: //base.gyp:base_java_unittest_support |
1463 android_library("base_java_unittest_support") { | 1492 android_library("base_java_unittest_support") { |
1464 deps = [ | 1493 deps = [ |
1465 ":base_java", | 1494 ":base_java", |
1466 ] | 1495 ] |
1467 java_files = | 1496 java_files = |
1468 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1497 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1469 } | 1498 } |
1470 } | 1499 } |
OLD | NEW |