| 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 21 matching lines...) Expand all Loading... |
| 32 "base_paths_android.cc", | 32 "base_paths_android.cc", |
| 33 "base_paths_android.h", | 33 "base_paths_android.h", |
| 34 "base_paths_mac.h", | 34 "base_paths_mac.h", |
| 35 "base_paths_mac.mm", | 35 "base_paths_mac.mm", |
| 36 "base_paths_posix.cc", | 36 "base_paths_posix.cc", |
| 37 "base_paths_posix.h", | 37 "base_paths_posix.h", |
| 38 "base_paths_win.cc", | 38 "base_paths_win.cc", |
| 39 "base_paths_win.h", | 39 "base_paths_win.h", |
| 40 ] | 40 ] |
| 41 | 41 |
| 42 if (is_android || is_mac) { | 42 if (is_android || is_mac || is_ios) { |
| 43 sources -= [ "base_paths_posix.cc" ] | 43 sources -= [ "base_paths_posix.cc" ] |
| 44 } | 44 } |
| 45 | 45 |
| 46 if (is_nacl) { | 46 if (is_nacl) { |
| 47 sources -= [ | 47 sources -= [ |
| 48 "base_paths.cc", | 48 "base_paths.cc", |
| 49 "base_paths_posix.cc", | 49 "base_paths_posix.cc", |
| 50 ] | 50 ] |
| 51 } | 51 } |
| 52 | 52 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 76 "android/base_jni_onload.h", | 76 "android/base_jni_onload.h", |
| 77 "android/base_jni_registrar.cc", | 77 "android/base_jni_registrar.cc", |
| 78 "android/base_jni_registrar.h", | 78 "android/base_jni_registrar.h", |
| 79 "android/build_info.cc", | 79 "android/build_info.cc", |
| 80 "android/build_info.h", | 80 "android/build_info.h", |
| 81 "android/command_line_android.cc", | 81 "android/command_line_android.cc", |
| 82 "android/command_line_android.h", | 82 "android/command_line_android.h", |
| 83 "android/content_uri_utils.cc", | 83 "android/content_uri_utils.cc", |
| 84 "android/content_uri_utils.h", | 84 "android/content_uri_utils.h", |
| 85 "android/cpu_features.cc", | 85 "android/cpu_features.cc", |
| 86 "android/cxa_demangle_stub.cc", |
| 86 "android/event_log.cc", | 87 "android/event_log.cc", |
| 87 "android/event_log.h", | 88 "android/event_log.h", |
| 88 "android/field_trial_list.cc", | 89 "android/field_trial_list.cc", |
| 89 "android/field_trial_list.h", | 90 "android/field_trial_list.h", |
| 90 "android/fifo_utils.cc", | 91 "android/fifo_utils.cc", |
| 91 "android/fifo_utils.h", | 92 "android/fifo_utils.h", |
| 92 "android/important_file_writer_android.cc", | 93 "android/important_file_writer_android.cc", |
| 93 "android/important_file_writer_android.h", | 94 "android/important_file_writer_android.h", |
| 94 "android/java_handler_thread.cc", | 95 "android/java_handler_thread.cc", |
| 95 "android/java_handler_thread.h", | 96 "android/java_handler_thread.h", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 "android/trace_event_binding.cc", | 133 "android/trace_event_binding.cc", |
| 133 "android/trace_event_binding.h", | 134 "android/trace_event_binding.h", |
| 134 "async_socket_io_handler.h", | 135 "async_socket_io_handler.h", |
| 135 "async_socket_io_handler_posix.cc", | 136 "async_socket_io_handler_posix.cc", |
| 136 "async_socket_io_handler_win.cc", | 137 "async_socket_io_handler_win.cc", |
| 137 "at_exit.cc", | 138 "at_exit.cc", |
| 138 "at_exit.h", | 139 "at_exit.h", |
| 139 "atomic_ref_count.h", | 140 "atomic_ref_count.h", |
| 140 "atomic_sequence_num.h", | 141 "atomic_sequence_num.h", |
| 141 "atomicops.h", | 142 "atomicops.h", |
| 142 "atomicops_internals_gcc.h", | |
| 143 "atomicops_internals_mac.h", | 143 "atomicops_internals_mac.h", |
| 144 "atomicops_internals_portable.h", | 144 "atomicops_internals_portable.h", |
| 145 "atomicops_internals_x86_gcc.cc", | |
| 146 "atomicops_internals_x86_gcc.h", | |
| 147 "atomicops_internals_x86_msvc.h", | 145 "atomicops_internals_x86_msvc.h", |
| 148 "auto_reset.h", | 146 "auto_reset.h", |
| 149 "barrier_closure.cc", | 147 "barrier_closure.cc", |
| 150 "barrier_closure.h", | 148 "barrier_closure.h", |
| 151 "base64.cc", | 149 "base64.cc", |
| 152 "base64.h", | 150 "base64.h", |
| 153 "base_export.h", | 151 "base_export.h", |
| 154 "base_switches.h", | 152 "base_switches.h", |
| 155 "basictypes.h", | 153 "basictypes.h", |
| 156 "big_endian.cc", | 154 "big_endian.cc", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 170 "callback_internal.h", | 168 "callback_internal.h", |
| 171 "cancelable_callback.h", | 169 "cancelable_callback.h", |
| 172 "command_line.cc", | 170 "command_line.cc", |
| 173 "command_line.h", | 171 "command_line.h", |
| 174 "compiler_specific.h", | 172 "compiler_specific.h", |
| 175 "containers/adapters.h", | 173 "containers/adapters.h", |
| 176 "containers/hash_tables.h", | 174 "containers/hash_tables.h", |
| 177 "containers/linked_list.h", | 175 "containers/linked_list.h", |
| 178 "containers/mru_cache.h", | 176 "containers/mru_cache.h", |
| 179 "containers/scoped_ptr_hash_map.h", | 177 "containers/scoped_ptr_hash_map.h", |
| 178 "containers/scoped_ptr_map.h", |
| 180 "containers/small_map.h", | 179 "containers/small_map.h", |
| 181 "containers/stack_container.h", | 180 "containers/stack_container.h", |
| 182 "cpu.cc", | 181 "cpu.cc", |
| 183 "cpu.h", | 182 "cpu.h", |
| 184 "critical_closure.h", | 183 "critical_closure.h", |
| 185 "critical_closure_internal_ios.mm", | 184 "critical_closure_internal_ios.mm", |
| 186 "deferred_sequenced_task_runner.cc", | 185 "deferred_sequenced_task_runner.cc", |
| 187 "deferred_sequenced_task_runner.h", | 186 "deferred_sequenced_task_runner.h", |
| 188 "environment.cc", | 187 "environment.cc", |
| 189 "environment.h", | 188 "environment.h", |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 "location.h", | 262 "location.h", |
| 264 "logging.cc", | 263 "logging.cc", |
| 265 "logging.h", | 264 "logging.h", |
| 266 "logging_win.cc", | 265 "logging_win.cc", |
| 267 "logging_win.h", | 266 "logging_win.h", |
| 268 "mac/authorization_util.h", | 267 "mac/authorization_util.h", |
| 269 "mac/authorization_util.mm", | 268 "mac/authorization_util.mm", |
| 270 "mac/bind_objc_block.h", | 269 "mac/bind_objc_block.h", |
| 271 "mac/bundle_locations.h", | 270 "mac/bundle_locations.h", |
| 272 "mac/bundle_locations.mm", | 271 "mac/bundle_locations.mm", |
| 272 "mac/call_with_eh_frame.cc", |
| 273 "mac/call_with_eh_frame.h", |
| 274 "mac/call_with_eh_frame_asm.S", |
| 273 "mac/cocoa_protocols.h", | 275 "mac/cocoa_protocols.h", |
| 274 "mac/dispatch_source_mach.cc", | 276 "mac/dispatch_source_mach.cc", |
| 275 "mac/dispatch_source_mach.h", | 277 "mac/dispatch_source_mach.h", |
| 276 "mac/foundation_util.h", | 278 "mac/foundation_util.h", |
| 277 "mac/foundation_util.mm", | 279 "mac/foundation_util.mm", |
| 278 "mac/launch_services_util.cc", | 280 "mac/launch_services_util.cc", |
| 279 "mac/launch_services_util.h", | 281 "mac/launch_services_util.h", |
| 280 "mac/launchd.cc", | 282 "mac/launchd.cc", |
| 281 "mac/launchd.h", | 283 "mac/launchd.h", |
| 282 "mac/libdispatch_task_runner.cc", | 284 "mac/libdispatch_task_runner.cc", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 313 "mac/scoped_sending_event.mm", | 315 "mac/scoped_sending_event.mm", |
| 314 "mac/sdk_forward_declarations.h", | 316 "mac/sdk_forward_declarations.h", |
| 315 "mac/sdk_forward_declarations.mm", | 317 "mac/sdk_forward_declarations.mm", |
| 316 "macros.h", | 318 "macros.h", |
| 317 "md5.cc", | 319 "md5.cc", |
| 318 "md5.h", | 320 "md5.h", |
| 319 "message_loop/incoming_task_queue.cc", | 321 "message_loop/incoming_task_queue.cc", |
| 320 "message_loop/incoming_task_queue.h", | 322 "message_loop/incoming_task_queue.h", |
| 321 "message_loop/message_loop.cc", | 323 "message_loop/message_loop.cc", |
| 322 "message_loop/message_loop.h", | 324 "message_loop/message_loop.h", |
| 323 "message_loop/message_loop_proxy.cc", | 325 "message_loop/message_loop_task_runner.cc", |
| 324 "message_loop/message_loop_proxy.h", | 326 "message_loop/message_loop_task_runner.h", |
| 325 "message_loop/message_loop_proxy_impl.cc", | |
| 326 "message_loop/message_loop_proxy_impl.h", | |
| 327 "message_loop/message_pump.cc", | 327 "message_loop/message_pump.cc", |
| 328 "message_loop/message_pump.h", | 328 "message_loop/message_pump.h", |
| 329 "message_loop/message_pump_android.cc", | 329 "message_loop/message_pump_android.cc", |
| 330 "message_loop/message_pump_android.h", | 330 "message_loop/message_pump_android.h", |
| 331 "message_loop/message_pump_default.cc", | 331 "message_loop/message_pump_default.cc", |
| 332 "message_loop/message_pump_default.h", | 332 "message_loop/message_pump_default.h", |
| 333 "message_loop/message_pump_io_ios.cc", | 333 "message_loop/message_pump_io_ios.cc", |
| 334 "message_loop/message_pump_io_ios.h", | 334 "message_loop/message_pump_io_ios.h", |
| 335 "message_loop/message_pump_libevent.cc", | 335 "message_loop/message_pump_libevent.cc", |
| 336 "message_loop/message_pump_libevent.h", | 336 "message_loop/message_pump_libevent.h", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 357 "os_compat_android.cc", | 357 "os_compat_android.cc", |
| 358 "os_compat_android.h", | 358 "os_compat_android.h", |
| 359 "os_compat_nacl.cc", | 359 "os_compat_nacl.cc", |
| 360 "os_compat_nacl.h", | 360 "os_compat_nacl.h", |
| 361 "path_service.cc", | 361 "path_service.cc", |
| 362 "path_service.h", | 362 "path_service.h", |
| 363 "pending_task.cc", | 363 "pending_task.cc", |
| 364 "pending_task.h", | 364 "pending_task.h", |
| 365 "pickle.cc", | 365 "pickle.cc", |
| 366 "pickle.h", | 366 "pickle.h", |
| 367 "port.h", | |
| 368 "posix/eintr_wrapper.h", | 367 "posix/eintr_wrapper.h", |
| 369 "posix/file_descriptor_shuffle.cc", | 368 "posix/file_descriptor_shuffle.cc", |
| 370 "posix/global_descriptors.cc", | 369 "posix/global_descriptors.cc", |
| 371 "posix/global_descriptors.h", | 370 "posix/global_descriptors.h", |
| 372 "posix/safe_strerror.cc", | 371 "posix/safe_strerror.cc", |
| 373 "posix/safe_strerror.h", | 372 "posix/safe_strerror.h", |
| 374 "posix/unix_domain_socket_linux.cc", | 373 "posix/unix_domain_socket_linux.cc", |
| 375 "posix/unix_domain_socket_linux.h", | 374 "posix/unix_domain_socket_linux.h", |
| 376 "power_monitor/power_monitor.cc", | 375 "power_monitor/power_monitor.cc", |
| 377 "power_monitor/power_monitor.h", | 376 "power_monitor/power_monitor.h", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 "sequenced_task_runner_helpers.h", | 419 "sequenced_task_runner_helpers.h", |
| 421 "sha1.h", | 420 "sha1.h", |
| 422 "sha1_portable.cc", | 421 "sha1_portable.cc", |
| 423 "sha1_win.cc", | 422 "sha1_win.cc", |
| 424 "single_thread_task_runner.h", | 423 "single_thread_task_runner.h", |
| 425 "stl_util.h", | 424 "stl_util.h", |
| 426 "strings/latin1_string_conversions.cc", | 425 "strings/latin1_string_conversions.cc", |
| 427 "strings/latin1_string_conversions.h", | 426 "strings/latin1_string_conversions.h", |
| 428 "strings/nullable_string16.cc", | 427 "strings/nullable_string16.cc", |
| 429 "strings/nullable_string16.h", | 428 "strings/nullable_string16.h", |
| 429 "strings/pattern.cc", |
| 430 "strings/pattern.h", |
| 430 "strings/safe_sprintf.cc", | 431 "strings/safe_sprintf.cc", |
| 431 "strings/safe_sprintf.h", | 432 "strings/safe_sprintf.h", |
| 432 "strings/string16.cc", | 433 "strings/string16.cc", |
| 433 "strings/string16.h", | 434 "strings/string16.h", |
| 434 "strings/string_number_conversions.cc", | 435 "strings/string_number_conversions.cc", |
| 435 "strings/string_number_conversions.h", | 436 "strings/string_number_conversions.h", |
| 436 "strings/string_piece.cc", | 437 "strings/string_piece.cc", |
| 437 "strings/string_piece.h", | 438 "strings/string_piece.h", |
| 438 "strings/string_split.cc", | 439 "strings/string_split.cc", |
| 439 "strings/string_split.h", | 440 "strings/string_split.h", |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 "win/windows_version.h", | 636 "win/windows_version.h", |
| 636 "win/wrapped_window_proc.cc", | 637 "win/wrapped_window_proc.cc", |
| 637 "win/wrapped_window_proc.h", | 638 "win/wrapped_window_proc.h", |
| 638 ] | 639 ] |
| 639 | 640 |
| 640 sources -= [ | 641 sources -= [ |
| 641 "sys_info_freebsd.cc", | 642 "sys_info_freebsd.cc", |
| 642 "sys_info_openbsd.cc", | 643 "sys_info_openbsd.cc", |
| 643 ] | 644 ] |
| 644 | 645 |
| 646 data = [] |
| 647 |
| 645 configs += [ ":base_implementation" ] | 648 configs += [ ":base_implementation" ] |
| 646 | 649 |
| 647 deps = [ | 650 deps = [ |
| 648 ":base_static", | 651 ":base_static", |
| 649 "//base/allocator:allocator_extension_thunks", | 652 "//base/allocator:allocator_extension_thunks", |
| 650 "//base/third_party/dynamic_annotations", | 653 "//base/third_party/dynamic_annotations", |
| 651 "//third_party/modp_b64", | 654 "//third_party/modp_b64", |
| 652 ] | 655 ] |
| 653 | 656 |
| 654 public_deps = [ | 657 public_deps = [ |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 "files/scoped_temp_dir.cc", | 718 "files/scoped_temp_dir.cc", |
| 716 "message_loop/message_pump_libevent.cc", | 719 "message_loop/message_pump_libevent.cc", |
| 717 "native_library_posix.cc", | 720 "native_library_posix.cc", |
| 718 "path_service.cc", | 721 "path_service.cc", |
| 719 "rand_util_posix.cc", | 722 "rand_util_posix.cc", |
| 720 "scoped_native_library.cc", | 723 "scoped_native_library.cc", |
| 721 "sync_socket_posix.cc", | 724 "sync_socket_posix.cc", |
| 722 "sys_info.cc", | 725 "sys_info.cc", |
| 723 "sys_info_posix.cc", | 726 "sys_info_posix.cc", |
| 724 ] | 727 ] |
| 728 |
| 729 # We build with a 10.9 min sdk version but lots of code in this directory is |
| 730 # written to target a 10.6 min sdk version and thus depends on declarations |
| 731 # marked as deprecated on 10.9+. Suppress these warnings for now. |
| 732 cflags = [ "-Wno-deprecated-declarations" ] |
| 725 } else { | 733 } else { |
| 726 # Remove NaCl stuff. | 734 # Remove NaCl stuff. |
| 727 sources -= [ | 735 sources -= [ |
| 728 "os_compat_nacl.cc", | 736 "os_compat_nacl.cc", |
| 729 "os_compat_nacl.h", | 737 "os_compat_nacl.h", |
| 730 "rand_util_nacl.cc", | 738 "rand_util_nacl.cc", |
| 731 ] | 739 ] |
| 732 } | 740 } |
| 733 | 741 |
| 734 # Windows. | 742 # Windows. |
| 735 if (is_win) { | 743 if (is_win) { |
| 736 sources -= [ | 744 sources -= [ |
| 737 "message_loop/message_pump_libevent.cc", | 745 "message_loop/message_pump_libevent.cc", |
| 738 "strings/string16.cc", | 746 "strings/string16.cc", |
| 739 | 747 |
| 740 # Not using sha1_win.cc because it may have caused a | 748 # Not using sha1_win.cc because it may have caused a |
| 741 # regression to page cycler moz. | 749 # regression to page cycler moz. |
| 742 "sha1_win.cc", | 750 "sha1_win.cc", |
| 743 ] | 751 ] |
| 744 | 752 |
| 753 # Required for base/stack_trace_win.cc to symbolize correctly. |
| 754 data += [ "$root_build_dir/dbghelp.dll" ] |
| 755 |
| 756 if (is_component_build) { |
| 757 # Copy the VS runtime DLLs into the isolate so that they don't have to be |
| 758 # preinstalled on the target machine. The debug runtimes have a "d" at |
| 759 # the end. |
| 760 if (is_debug) { |
| 761 vcrt_suffix = "d" |
| 762 } else { |
| 763 vcrt_suffix = "" |
| 764 } |
| 765 |
| 766 # These runtime files are copied to the output directory by the |
| 767 # vs_toolchain script that runs as part of toolchain configuration. |
| 768 data += [ |
| 769 "$root_out_dir/msvcp120${vcrt_suffix}.dll", |
| 770 "$root_out_dir/msvcr120${vcrt_suffix}.dll", |
| 771 ] |
| 772 if (is_asan) { |
| 773 data += [ "//third_party/llvm-build/Release+Asserts/lib/clang/3.7.0/lib/
windows/clang_rt.asan_dynamic-i386.dll" ] |
| 774 } |
| 775 } |
| 776 |
| 745 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 777 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 746 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 778 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 747 | 779 |
| 748 libs = [ | 780 libs = [ |
| 749 "cfgmgr32.lib", | 781 "cfgmgr32.lib", |
| 750 "netapi32.lib", | 782 "netapi32.lib", |
| 751 "powrprof.lib", | 783 "powrprof.lib", |
| 752 "setupapi.lib", | 784 "setupapi.lib", |
| 753 ] | 785 ] |
| 754 all_dependent_configs = [ ":base_win_linker_flags" ] | 786 all_dependent_configs = [ ":base_win_linker_flags" ] |
| 755 } else if (!is_nacl) { | 787 } else if (!is_nacl) { |
| 756 # Non-Windows. | 788 # Non-Windows. |
| 757 deps += [ "//third_party/libevent" ] | 789 deps += [ "//third_party/libevent" ] |
| 758 } | 790 } |
| 759 | 791 |
| 760 # Mac. | 792 # Mac. |
| 761 if (is_mac) { | 793 if (is_mac || is_ios) { |
| 794 # Common Desktop / iOS excludes |
| 762 sources -= [ | 795 sources -= [ |
| 763 "native_library_posix.cc", | 796 "native_library_posix.cc", |
| 764 "strings/sys_string_conversions_posix.cc", | 797 "strings/sys_string_conversions_posix.cc", |
| 765 "threading/platform_thread_internal_posix.cc", | 798 "threading/platform_thread_internal_posix.cc", |
| 766 ] | 799 ] |
| 767 | 800 |
| 768 # We build with a 10.9 min sdk version but lots of code in this directory is | 801 if (is_asan) { |
| 769 # written to target a 10.6 min sdk version and thus depends on declarations | 802 # TODO(GYP) hook up asan on Mac. GYP has this extra dylib: |
| 770 # marked as deprecated on 10.9+. Suppress these warnings for now. | 803 #data += [ "$root_out_dir/libclang_rt.asan_osx_dynamic.dylib" ] |
| 771 cflags = [ "-Wno-deprecated-declarations" ] | 804 } |
| 805 |
| 806 if (is_ios) { |
| 807 sources -= [ |
| 808 "files/file_path_watcher_fsevents.cc", |
| 809 "files/file_path_watcher_fsevents.h", |
| 810 ] |
| 811 } |
| 772 } else { | 812 } else { |
| 773 # Non-Mac. | 813 # Non-Mac. |
| 774 sources -= [ | 814 sources -= [ |
| 775 "files/file_path_watcher_fsevents.cc", | 815 "files/file_path_watcher_fsevents.cc", |
| 776 "files/file_path_watcher_fsevents.h", | 816 "files/file_path_watcher_fsevents.h", |
| 777 "files/file_path_watcher_kqueue.cc", | 817 "files/file_path_watcher_kqueue.cc", |
| 778 "files/file_path_watcher_kqueue.h", | 818 "files/file_path_watcher_kqueue.h", |
| 779 ] | 819 ] |
| 780 } | 820 } |
| 781 | 821 |
| 782 # Linux. | 822 # Linux. |
| 783 if (is_linux) { | 823 if (is_linux) { |
| 824 if (is_asan || is_lsan || is_msan || is_tsan) { |
| 825 # For llvm-sanitizer. |
| 826 data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ] |
| 827 } |
| 828 |
| 784 # TODO(brettw) this will need to be parameterized at some point. | 829 # TODO(brettw) this will need to be parameterized at some point. |
| 785 linux_configs = [] | 830 linux_configs = [] |
| 786 | 831 |
| 787 configs += linux_configs | 832 configs += linux_configs |
| 788 all_dependent_configs = linux_configs | 833 all_dependent_configs = linux_configs |
| 789 | 834 |
| 790 # These dependencies are not required on Android, and in the case | 835 # These dependencies are not required on Android, and in the case |
| 791 # of xdg_mime must be excluded due to licensing restrictions. | 836 # of xdg_mime must be excluded due to licensing restrictions. |
| 792 deps += [ | 837 deps += [ |
| 793 "//base/third_party/xdg_mime", | 838 "//base/third_party/xdg_mime", |
| 794 "//base/third_party/xdg_user_dirs", | 839 "//base/third_party/xdg_user_dirs", |
| 795 ] | 840 ] |
| 796 } else { | 841 } else { |
| 797 # Non-Linux. | 842 # Non-Linux. |
| 798 sources -= [ | 843 sources -= [ |
| 799 "nix/mime_util_xdg.cc", | 844 "nix/mime_util_xdg.cc", |
| 800 "nix/mime_util_xdg.h", | 845 "nix/mime_util_xdg.h", |
| 801 "nix/xdg_util.cc", | 846 "nix/xdg_util.cc", |
| 802 "nix/xdg_util.h", | 847 "nix/xdg_util.h", |
| 803 ] | 848 ] |
| 804 | 849 |
| 805 if (!is_android) { | 850 if (!is_android) { |
| 806 sources -= [ | 851 sources -= [ |
| 807 "linux_util.cc", | 852 "linux_util.cc", |
| 808 "linux_util.h", | 853 "linux_util.h", |
| 809 ] | 854 ] |
| 810 } | 855 } |
| 811 } | 856 } |
| 812 | 857 |
| 858 # iOS |
| 859 if (is_ios) { |
| 860 set_sources_assignment_filter([]) |
| 861 |
| 862 sources += [ |
| 863 "atomicops_internals_mac.h", |
| 864 "base_paths_mac.h", |
| 865 "base_paths_mac.mm", |
| 866 "file_version_info_mac.h", |
| 867 "file_version_info_mac.mm", |
| 868 "files/file_util_mac.mm", |
| 869 "mac/bundle_locations.h", |
| 870 "mac/bundle_locations.mm", |
| 871 "mac/call_with_eh_frame.cc", |
| 872 "mac/call_with_eh_frame.h", |
| 873 "mac/foundation_util.h", |
| 874 "mac/foundation_util.mm", |
| 875 "mac/mac_logging.cc", |
| 876 "mac/mac_logging.h", |
| 877 "mac/mach_logging.cc", |
| 878 "mac/mach_logging.h", |
| 879 "mac/objc_property_releaser.h", |
| 880 "mac/objc_property_releaser.mm", |
| 881 "mac/scoped_mach_port.cc", |
| 882 "mac/scoped_mach_port.h", |
| 883 "mac/scoped_mach_vm.cc", |
| 884 "mac/scoped_mach_vm.h", |
| 885 "mac/scoped_nsautorelease_pool.h", |
| 886 "mac/scoped_nsautorelease_pool.mm", |
| 887 "mac/scoped_nsobject.h", |
| 888 "mac/scoped_objc_class_swizzler.h", |
| 889 "mac/scoped_objc_class_swizzler.mm", |
| 890 "message_loop/message_pump_mac.h", |
| 891 "message_loop/message_pump_mac.mm", |
| 892 "strings/sys_string_conversions_mac.mm", |
| 893 "threading/platform_thread_mac.mm", |
| 894 "time/time_mac.cc", |
| 895 ] |
| 896 |
| 897 set_sources_assignment_filter(sources_assignment_filter) |
| 898 } |
| 899 |
| 900 if (is_asan || is_lsan || is_msan || is_tsan) { |
| 901 data += [ "//tools/valgrind/asan/" ] |
| 902 if (is_win) { |
| 903 data += |
| 904 [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ] |
| 905 } else { |
| 906 data += [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ] |
| 907 } |
| 908 } |
| 909 |
| 813 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 910 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 814 if (is_android && !is_debug) { | 911 if (!is_debug) { |
| 815 configs -= [ "//build/config/compiler:optimize" ] | 912 configs -= [ "//build/config/compiler:optimize" ] |
| 816 configs += [ "//build/config/compiler:optimize_max" ] | 913 configs += [ "//build/config/compiler:optimize_max" ] |
| 817 } | 914 } |
| 818 | 915 |
| 819 allow_circular_includes_from = public_deps | 916 allow_circular_includes_from = public_deps |
| 820 } | 917 } |
| 821 | 918 |
| 822 # This is the subset of files from base that should not be used with a dynamic | 919 # This is the subset of files from base that should not be used with a dynamic |
| 823 # library. Note that this library cannot depend on base because base depends on | 920 # library. Note that this library cannot depend on base because base depends on |
| 824 # base_static. | 921 # base_static. |
| 825 source_set("base_static") { | 922 source_set("base_static") { |
| 826 sources = [ | 923 sources = [ |
| 827 "base_switches.cc", | 924 "base_switches.cc", |
| 828 "base_switches.h", | 925 "base_switches.h", |
| 829 "win/pe_image.cc", | 926 "win/pe_image.cc", |
| 830 "win/pe_image.h", | 927 "win/pe_image.h", |
| 831 ] | 928 ] |
| 832 | 929 |
| 833 if (is_android && !is_debug) { | 930 if (!is_debug) { |
| 834 configs -= [ "//build/config/compiler:optimize" ] | 931 configs -= [ "//build/config/compiler:optimize" ] |
| 835 configs += [ "//build/config/compiler:optimize_max" ] | 932 configs += [ "//build/config/compiler:optimize_max" ] |
| 836 } | 933 } |
| 837 } | 934 } |
| 838 | 935 |
| 839 component("i18n") { | 936 component("i18n") { |
| 840 output_name = "base_i18n" | 937 output_name = "base_i18n" |
| 841 sources = [ | 938 sources = [ |
| 842 "i18n/base_i18n_export.h", | 939 "i18n/base_i18n_export.h", |
| 843 "i18n/bidi_line_iterator.cc", | 940 "i18n/bidi_line_iterator.cc", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 "i18n/utf8_validator_tables.h", | 973 "i18n/utf8_validator_tables.h", |
| 877 ] | 974 ] |
| 878 defines = [ "BASE_I18N_IMPLEMENTATION" ] | 975 defines = [ "BASE_I18N_IMPLEMENTATION" ] |
| 879 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 976 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 880 deps = [ | 977 deps = [ |
| 881 ":base", | 978 ":base", |
| 882 "//base/third_party/dynamic_annotations", | 979 "//base/third_party/dynamic_annotations", |
| 883 "//third_party/icu", | 980 "//third_party/icu", |
| 884 ] | 981 ] |
| 885 | 982 |
| 886 if (is_android && !is_debug) { | 983 if (!is_debug) { |
| 887 configs -= [ "//build/config/compiler:optimize" ] | 984 configs -= [ "//build/config/compiler:optimize" ] |
| 888 configs += [ "//build/config/compiler:optimize_max" ] | 985 configs += [ "//build/config/compiler:optimize_max" ] |
| 889 } | 986 } |
| 890 | 987 |
| 891 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 988 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 892 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 989 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 893 } | 990 } |
| 894 | 991 |
| 895 if (is_win || is_linux) { | 992 if (is_win || is_linux) { |
| 896 # TODO(GYP): Figure out which of these work and are needed on other platforms. | 993 # TODO(GYP): Figure out which of these work and are needed on other platforms. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 "prefs/value_map_pref_store.h", | 1085 "prefs/value_map_pref_store.h", |
| 989 "prefs/writeable_pref_store.h", | 1086 "prefs/writeable_pref_store.h", |
| 990 ] | 1087 ] |
| 991 | 1088 |
| 992 defines = [ "BASE_PREFS_IMPLEMENTATION" ] | 1089 defines = [ "BASE_PREFS_IMPLEMENTATION" ] |
| 993 | 1090 |
| 994 deps = [ | 1091 deps = [ |
| 995 ":base", | 1092 ":base", |
| 996 ] | 1093 ] |
| 997 | 1094 |
| 998 if (is_android && !is_debug) { | 1095 if (!is_debug) { |
| 999 configs -= [ "//build/config/compiler:optimize" ] | 1096 configs -= [ "//build/config/compiler:optimize" ] |
| 1000 configs += [ "//build/config/compiler:optimize_max" ] | 1097 configs += [ "//build/config/compiler:optimize_max" ] |
| 1001 } | 1098 } |
| 1002 } | 1099 } |
| 1003 | 1100 |
| 1004 source_set("prefs_test_support") { | 1101 source_set("prefs_test_support") { |
| 1005 testonly = true | 1102 testonly = true |
| 1006 sources = [ | 1103 sources = [ |
| 1007 "prefs/mock_pref_change_callback.cc", | 1104 "prefs/mock_pref_change_callback.cc", |
| 1008 "prefs/mock_pref_change_callback.h", | 1105 "prefs/mock_pref_change_callback.h", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 "/DELAYLOAD:shell32.dll", | 1146 "/DELAYLOAD:shell32.dll", |
| 1050 "/SUBSYSTEM:WINDOWS", | 1147 "/SUBSYSTEM:WINDOWS", |
| 1051 ] | 1148 ] |
| 1052 libs = [ | 1149 libs = [ |
| 1053 "cfgmgr32.lib", | 1150 "cfgmgr32.lib", |
| 1054 "shell32.lib", | 1151 "shell32.lib", |
| 1055 ] | 1152 ] |
| 1056 } | 1153 } |
| 1057 } | 1154 } |
| 1058 | 1155 |
| 1156 # TODO(GYP): Delete this after we've converted everything to GN. |
| 1157 # The _run targets exist only for compatibility w/ GYP. |
| 1158 group("base_unittests_run") { |
| 1159 testonly = true |
| 1160 deps = [ |
| 1161 ":base_unittests", |
| 1162 ] |
| 1163 } |
| 1164 |
| 1059 test("base_unittests") { | 1165 test("base_unittests") { |
| 1060 sources = [ | 1166 sources = [ |
| 1061 "android/application_status_listener_unittest.cc", | 1167 "android/application_status_listener_unittest.cc", |
| 1062 "android/content_uri_utils_unittest.cc", | 1168 "android/content_uri_utils_unittest.cc", |
| 1063 "android/jni_android_unittest.cc", | 1169 "android/jni_android_unittest.cc", |
| 1064 "android/jni_array_unittest.cc", | 1170 "android/jni_array_unittest.cc", |
| 1065 "android/jni_string_unittest.cc", | 1171 "android/jni_string_unittest.cc", |
| 1066 "android/library_loader/library_prefetcher_unittest.cc", | 1172 "android/library_loader/library_prefetcher_unittest.cc", |
| 1067 "android/path_utils_unittest.cc", | 1173 "android/path_utils_unittest.cc", |
| 1068 "android/scoped_java_ref_unittest.cc", | 1174 "android/scoped_java_ref_unittest.cc", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1082 "callback_list_unittest.nc", | 1188 "callback_list_unittest.nc", |
| 1083 "callback_unittest.cc", | 1189 "callback_unittest.cc", |
| 1084 "callback_unittest.nc", | 1190 "callback_unittest.nc", |
| 1085 "cancelable_callback_unittest.cc", | 1191 "cancelable_callback_unittest.cc", |
| 1086 "command_line_unittest.cc", | 1192 "command_line_unittest.cc", |
| 1087 "containers/adapters_unittest.cc", | 1193 "containers/adapters_unittest.cc", |
| 1088 "containers/hash_tables_unittest.cc", | 1194 "containers/hash_tables_unittest.cc", |
| 1089 "containers/linked_list_unittest.cc", | 1195 "containers/linked_list_unittest.cc", |
| 1090 "containers/mru_cache_unittest.cc", | 1196 "containers/mru_cache_unittest.cc", |
| 1091 "containers/scoped_ptr_hash_map_unittest.cc", | 1197 "containers/scoped_ptr_hash_map_unittest.cc", |
| 1198 "containers/scoped_ptr_map_unittest.cc", |
| 1092 "containers/small_map_unittest.cc", | 1199 "containers/small_map_unittest.cc", |
| 1093 "containers/stack_container_unittest.cc", | 1200 "containers/stack_container_unittest.cc", |
| 1094 "cpu_unittest.cc", | 1201 "cpu_unittest.cc", |
| 1095 "debug/crash_logging_unittest.cc", | 1202 "debug/crash_logging_unittest.cc", |
| 1096 "debug/debugger_unittest.cc", | 1203 "debug/debugger_unittest.cc", |
| 1097 "debug/leak_tracker_unittest.cc", | 1204 "debug/leak_tracker_unittest.cc", |
| 1098 "debug/proc_maps_linux_unittest.cc", | 1205 "debug/proc_maps_linux_unittest.cc", |
| 1099 "debug/stack_trace_unittest.cc", | 1206 "debug/stack_trace_unittest.cc", |
| 1100 "debug/task_annotator_unittest.cc", | 1207 "debug/task_annotator_unittest.cc", |
| 1101 "deferred_sequenced_task_runner_unittest.cc", | 1208 "deferred_sequenced_task_runner_unittest.cc", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1129 "ios/weak_nsobject_unittest.mm", | 1236 "ios/weak_nsobject_unittest.mm", |
| 1130 "json/json_parser_unittest.cc", | 1237 "json/json_parser_unittest.cc", |
| 1131 "json/json_reader_unittest.cc", | 1238 "json/json_reader_unittest.cc", |
| 1132 "json/json_value_converter_unittest.cc", | 1239 "json/json_value_converter_unittest.cc", |
| 1133 "json/json_value_serializer_unittest.cc", | 1240 "json/json_value_serializer_unittest.cc", |
| 1134 "json/json_writer_unittest.cc", | 1241 "json/json_writer_unittest.cc", |
| 1135 "json/string_escape_unittest.cc", | 1242 "json/string_escape_unittest.cc", |
| 1136 "lazy_instance_unittest.cc", | 1243 "lazy_instance_unittest.cc", |
| 1137 "logging_unittest.cc", | 1244 "logging_unittest.cc", |
| 1138 "mac/bind_objc_block_unittest.mm", | 1245 "mac/bind_objc_block_unittest.mm", |
| 1246 "mac/call_with_eh_frame_unittest.mm", |
| 1139 "mac/dispatch_source_mach_unittest.cc", | 1247 "mac/dispatch_source_mach_unittest.cc", |
| 1140 "mac/foundation_util_unittest.mm", | 1248 "mac/foundation_util_unittest.mm", |
| 1141 "mac/libdispatch_task_runner_unittest.cc", | 1249 "mac/libdispatch_task_runner_unittest.cc", |
| 1142 "mac/mac_util_unittest.mm", | 1250 "mac/mac_util_unittest.mm", |
| 1143 "mac/objc_property_releaser_unittest.mm", | 1251 "mac/objc_property_releaser_unittest.mm", |
| 1144 "mac/scoped_nsobject_unittest.mm", | 1252 "mac/scoped_nsobject_unittest.mm", |
| 1145 "mac/scoped_objc_class_swizzler_unittest.mm", | 1253 "mac/scoped_objc_class_swizzler_unittest.mm", |
| 1146 "mac/scoped_sending_event_unittest.mm", | 1254 "mac/scoped_sending_event_unittest.mm", |
| 1147 "md5_unittest.cc", | 1255 "md5_unittest.cc", |
| 1148 "memory/aligned_memory_unittest.cc", | 1256 "memory/aligned_memory_unittest.cc", |
| 1149 "memory/discardable_shared_memory_unittest.cc", | 1257 "memory/discardable_shared_memory_unittest.cc", |
| 1150 "memory/linked_ptr_unittest.cc", | 1258 "memory/linked_ptr_unittest.cc", |
| 1151 "memory/memory_pressure_monitor_chromeos_unittest.cc", | 1259 "memory/memory_pressure_monitor_chromeos_unittest.cc", |
| 1152 "memory/memory_pressure_monitor_win_unittest.cc", | 1260 "memory/memory_pressure_monitor_win_unittest.cc", |
| 1153 "memory/ref_counted_memory_unittest.cc", | 1261 "memory/ref_counted_memory_unittest.cc", |
| 1154 "memory/ref_counted_unittest.cc", | 1262 "memory/ref_counted_unittest.cc", |
| 1155 "memory/scoped_ptr_unittest.cc", | 1263 "memory/scoped_ptr_unittest.cc", |
| 1156 "memory/scoped_ptr_unittest.nc", | 1264 "memory/scoped_ptr_unittest.nc", |
| 1157 "memory/scoped_vector_unittest.cc", | 1265 "memory/scoped_vector_unittest.cc", |
| 1158 "memory/shared_memory_unittest.cc", | 1266 "memory/shared_memory_unittest.cc", |
| 1159 "memory/singleton_unittest.cc", | 1267 "memory/singleton_unittest.cc", |
| 1160 "memory/weak_ptr_unittest.cc", | 1268 "memory/weak_ptr_unittest.cc", |
| 1161 "memory/weak_ptr_unittest.nc", | 1269 "memory/weak_ptr_unittest.nc", |
| 1162 "message_loop/message_loop_proxy_impl_unittest.cc", | 1270 "message_loop/message_loop_task_runner_unittest.cc", |
| 1163 "message_loop/message_loop_proxy_unittest.cc", | |
| 1164 "message_loop/message_loop_unittest.cc", | 1271 "message_loop/message_loop_unittest.cc", |
| 1165 "message_loop/message_pump_io_ios_unittest.cc", | 1272 "message_loop/message_pump_io_ios_unittest.cc", |
| 1166 "metrics/bucket_ranges_unittest.cc", | 1273 "metrics/bucket_ranges_unittest.cc", |
| 1167 "metrics/field_trial_unittest.cc", | 1274 "metrics/field_trial_unittest.cc", |
| 1168 "metrics/histogram_base_unittest.cc", | 1275 "metrics/histogram_base_unittest.cc", |
| 1169 "metrics/histogram_delta_serialization_unittest.cc", | 1276 "metrics/histogram_delta_serialization_unittest.cc", |
| 1170 "metrics/histogram_snapshot_manager_unittest.cc", | 1277 "metrics/histogram_snapshot_manager_unittest.cc", |
| 1171 "metrics/histogram_unittest.cc", | 1278 "metrics/histogram_unittest.cc", |
| 1172 "metrics/sample_map_unittest.cc", | 1279 "metrics/sample_map_unittest.cc", |
| 1173 "metrics/sample_vector_unittest.cc", | 1280 "metrics/sample_vector_unittest.cc", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1204 "profiler/tracked_time_unittest.cc", | 1311 "profiler/tracked_time_unittest.cc", |
| 1205 "rand_util_unittest.cc", | 1312 "rand_util_unittest.cc", |
| 1206 "scoped_clear_errno_unittest.cc", | 1313 "scoped_clear_errno_unittest.cc", |
| 1207 "scoped_generic_unittest.cc", | 1314 "scoped_generic_unittest.cc", |
| 1208 "scoped_native_library_unittest.cc", | 1315 "scoped_native_library_unittest.cc", |
| 1209 "security_unittest.cc", | 1316 "security_unittest.cc", |
| 1210 "sequence_checker_unittest.cc", | 1317 "sequence_checker_unittest.cc", |
| 1211 "sha1_unittest.cc", | 1318 "sha1_unittest.cc", |
| 1212 "stl_util_unittest.cc", | 1319 "stl_util_unittest.cc", |
| 1213 "strings/nullable_string16_unittest.cc", | 1320 "strings/nullable_string16_unittest.cc", |
| 1321 "strings/pattern_unittest.cc", |
| 1214 "strings/safe_sprintf_unittest.cc", | 1322 "strings/safe_sprintf_unittest.cc", |
| 1215 "strings/string16_unittest.cc", | 1323 "strings/string16_unittest.cc", |
| 1216 "strings/string_number_conversions_unittest.cc", | 1324 "strings/string_number_conversions_unittest.cc", |
| 1217 "strings/string_piece_unittest.cc", | 1325 "strings/string_piece_unittest.cc", |
| 1218 "strings/string_split_unittest.cc", | 1326 "strings/string_split_unittest.cc", |
| 1219 "strings/string_tokenizer_unittest.cc", | 1327 "strings/string_tokenizer_unittest.cc", |
| 1220 "strings/string_util_unittest.cc", | 1328 "strings/string_util_unittest.cc", |
| 1221 "strings/stringize_macros_unittest.cc", | 1329 "strings/stringize_macros_unittest.cc", |
| 1222 "strings/stringprintf_unittest.cc", | 1330 "strings/stringprintf_unittest.cc", |
| 1223 "strings/sys_string_conversions_mac_unittest.mm", | 1331 "strings/sys_string_conversions_mac_unittest.mm", |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 "//base/test:test_support", | 1409 "//base/test:test_support", |
| 1302 "//base/third_party/dynamic_annotations", | 1410 "//base/third_party/dynamic_annotations", |
| 1303 "//base/trace_event:trace_event_unittests", | 1411 "//base/trace_event:trace_event_unittests", |
| 1304 "//testing/gmock", | 1412 "//testing/gmock", |
| 1305 "//testing/gtest", | 1413 "//testing/gtest", |
| 1306 "//third_party/icu", | 1414 "//third_party/icu", |
| 1307 ] | 1415 ] |
| 1308 | 1416 |
| 1309 data = [ | 1417 data = [ |
| 1310 "test/data/", | 1418 "test/data/", |
| 1311 | |
| 1312 # TODO(dpranke): Remove when icu declares this directly. | |
| 1313 "$root_out_dir/icudtl.dat", | |
| 1314 ] | 1419 ] |
| 1315 | 1420 |
| 1316 # Allow more direct string conversions on platforms with native utf8 | 1421 # Allow more direct string conversions on platforms with native utf8 |
| 1317 # strings | 1422 # strings |
| 1318 if (is_mac || is_ios) { | 1423 if (is_mac || is_ios) { |
| 1319 defines = [ "SYSTEM_NATIVE_UTF8" ] | 1424 defines = [ "SYSTEM_NATIVE_UTF8" ] |
| 1320 } | 1425 } |
| 1321 | 1426 |
| 1322 if (is_android) { | 1427 if (is_android) { |
| 1323 apk_deps = [ | 1428 apk_deps = [ |
| 1324 ":base_java", | 1429 ":base_java", |
| 1325 ":base_java_unittest_support", | 1430 ":base_java_unittest_support", |
| 1326 ] | 1431 ] |
| 1432 |
| 1433 # TODO(brettw) I think this should not be here, we should not be using |
| 1434 # isolate files. |
| 1327 isolate_file = "base_unittests.isolate" | 1435 isolate_file = "base_unittests.isolate" |
| 1328 } | 1436 } |
| 1329 | 1437 |
| 1330 if (is_ios) { | 1438 if (is_ios) { |
| 1331 sources -= [ | 1439 sources -= [ |
| 1332 "process/memory_unittest.cc", | 1440 "process/memory_unittest.cc", |
| 1333 "process/memory_unittest_mac.h", | |
| 1334 "process/memory_unittest_mac.mm", | |
| 1335 "process/process_unittest.cc", | 1441 "process/process_unittest.cc", |
| 1336 "process/process_util_unittest.cc", | 1442 "process/process_util_unittest.cc", |
| 1337 ] | 1443 ] |
| 1338 | 1444 |
| 1339 # Pull in specific Mac files for iOS (which have been filtered out by file | 1445 # Pull in specific Mac files for iOS (which have been filtered out by file |
| 1340 # name rules). | 1446 # name rules). |
| 1341 set_sources_assignment_filter([]) | 1447 set_sources_assignment_filter([]) |
| 1342 sources += [ | 1448 sources += [ |
| 1343 "mac/bind_objc_block_unittest.mm", | 1449 "mac/bind_objc_block_unittest.mm", |
| 1344 "mac/foundation_util_unittest.mm", | 1450 "mac/foundation_util_unittest.mm", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1364 | 1470 |
| 1365 if (is_android) { | 1471 if (is_android) { |
| 1366 deps += [ "//testing/android/native_test:native_test_native_code" ] | 1472 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 1367 set_sources_assignment_filter([]) | 1473 set_sources_assignment_filter([]) |
| 1368 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1474 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
| 1369 set_sources_assignment_filter(sources_assignment_filter) | 1475 set_sources_assignment_filter(sources_assignment_filter) |
| 1370 } | 1476 } |
| 1371 | 1477 |
| 1372 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1478 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1373 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1479 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1480 |
| 1481 # Symbols for crashes when running tests on swarming. |
| 1482 if (symbol_level > 0) { |
| 1483 if (is_win) { |
| 1484 data += [ "$root_out_dir/base_unittests.exe.pdb" ] |
| 1485 } else if (is_mac) { |
| 1486 data += [ "$root_out_dir/base_unittests.dSYM/" ] |
| 1487 } |
| 1488 } |
| 1374 } | 1489 } |
| 1375 | 1490 |
| 1376 if (is_android) { | 1491 if (is_android) { |
| 1377 # GYP: //base.gyp:base_jni_headers | 1492 # GYP: //base.gyp:base_jni_headers |
| 1378 generate_jni("base_jni_headers") { | 1493 generate_jni("base_jni_headers") { |
| 1379 sources = [ | 1494 sources = [ |
| 1380 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", | 1495 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", |
| 1381 "android/java/src/org/chromium/base/ApkAssets.java", | 1496 "android/java/src/org/chromium/base/ApkAssets.java", |
| 1382 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1497 "android/java/src/org/chromium/base/ApplicationStatus.java", |
| 1383 "android/java/src/org/chromium/base/BuildInfo.java", | 1498 "android/java/src/org/chromium/base/BuildInfo.java", |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1493 | 1608 |
| 1494 # GYP: //base.gyp:base_java_unittest_support | 1609 # GYP: //base.gyp:base_java_unittest_support |
| 1495 android_library("base_java_unittest_support") { | 1610 android_library("base_java_unittest_support") { |
| 1496 deps = [ | 1611 deps = [ |
| 1497 ":base_java", | 1612 ":base_java", |
| 1498 ] | 1613 ] |
| 1499 java_files = | 1614 java_files = |
| 1500 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1615 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1501 } | 1616 } |
| 1502 } | 1617 } |
| OLD | NEW |