| 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 source_set("base_paths") { |
| 13 sources = [ |
| 14 "base_paths.cc", |
| 15 "base_paths.h", |
| 16 "base_paths_android.cc", |
| 17 "base_paths_android.h", |
| 18 "base_paths_mac.h", |
| 19 "base_paths_mac.mm", |
| 20 "base_paths_posix.cc", |
| 21 "base_paths_posix.h", |
| 22 "base_paths_win.cc", |
| 23 "base_paths_win.h", |
| 24 ] |
| 25 |
| 26 if (is_android || is_mac) { |
| 27 sources -= [ "base_paths_posix.cc" ] |
| 28 } |
| 29 |
| 30 if (is_nacl) { |
| 31 sources -= [ |
| 32 "base_paths.cc", |
| 33 "base_paths_posix.cc", |
| 34 ] |
| 35 } |
| 36 |
| 37 defines = [ "BASE_IMPLEMENTATION" ] |
| 38 |
| 39 deps = [ |
| 40 "//base/memory", |
| 41 "//base/process", |
| 42 ] |
| 43 |
| 44 visibility = [ ":base" ] |
| 45 } |
| 46 |
| 12 component("base") { | 47 component("base") { |
| 13 sources = [ | 48 sources = [ |
| 14 "allocator/allocator_extension.cc", | 49 "allocator/allocator_extension.cc", |
| 15 "allocator/allocator_extension.h", | 50 "allocator/allocator_extension.h", |
| 16 "allocator/type_profiler_control.cc", | 51 "allocator/type_profiler_control.cc", |
| 17 "allocator/type_profiler_control.h", | 52 "allocator/type_profiler_control.h", |
| 18 "android/animation_frame_time_histogram.cc", | 53 "android/animation_frame_time_histogram.cc", |
| 19 "android/animation_frame_time_histogram.h", | 54 "android/animation_frame_time_histogram.h", |
| 20 "android/application_status_listener.cc", | 55 "android/application_status_listener.cc", |
| 21 "android/application_status_listener.h", | 56 "android/application_status_listener.h", |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 "atomicops_internals_portable.h", | 120 "atomicops_internals_portable.h", |
| 86 "atomicops_internals_x86_gcc.cc", | 121 "atomicops_internals_x86_gcc.cc", |
| 87 "atomicops_internals_x86_gcc.h", | 122 "atomicops_internals_x86_gcc.h", |
| 88 "atomicops_internals_x86_msvc.h", | 123 "atomicops_internals_x86_msvc.h", |
| 89 "auto_reset.h", | 124 "auto_reset.h", |
| 90 "barrier_closure.cc", | 125 "barrier_closure.cc", |
| 91 "barrier_closure.h", | 126 "barrier_closure.h", |
| 92 "base64.cc", | 127 "base64.cc", |
| 93 "base64.h", | 128 "base64.h", |
| 94 "base_export.h", | 129 "base_export.h", |
| 95 "base_paths.cc", | |
| 96 "base_paths.h", | |
| 97 "base_paths_android.cc", | |
| 98 "base_paths_android.h", | |
| 99 "base_paths_mac.h", | |
| 100 "base_paths_mac.mm", | |
| 101 "base_paths_posix.cc", | |
| 102 "base_paths_posix.h", | |
| 103 "base_paths_win.cc", | |
| 104 "base_paths_win.h", | |
| 105 "base_switches.h", | 130 "base_switches.h", |
| 106 "basictypes.h", | 131 "basictypes.h", |
| 107 "big_endian.cc", | 132 "big_endian.cc", |
| 108 "big_endian.h", | 133 "big_endian.h", |
| 109 "bind.h", | 134 "bind.h", |
| 110 "bind_helpers.cc", | 135 "bind_helpers.cc", |
| 111 "bind_helpers.h", | 136 "bind_helpers.h", |
| 112 "bind_internal.h", | 137 "bind_internal.h", |
| 113 "bind_internal_win.h", | 138 "bind_internal_win.h", |
| 114 "bits.h", | 139 "bits.h", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 128 "containers/adapters.h", | 153 "containers/adapters.h", |
| 129 "containers/hash_tables.h", | 154 "containers/hash_tables.h", |
| 130 "containers/linked_list.h", | 155 "containers/linked_list.h", |
| 131 "containers/mru_cache.h", | 156 "containers/mru_cache.h", |
| 132 "containers/small_map.h", | 157 "containers/small_map.h", |
| 133 "containers/stack_container.h", | 158 "containers/stack_container.h", |
| 134 "cpu.cc", | 159 "cpu.cc", |
| 135 "cpu.h", | 160 "cpu.h", |
| 136 "critical_closure.h", | 161 "critical_closure.h", |
| 137 "critical_closure_internal_ios.mm", | 162 "critical_closure_internal_ios.mm", |
| 138 "debug/alias.cc", | |
| 139 "debug/alias.h", | |
| 140 "debug/asan_invalid_access.cc", | |
| 141 "debug/asan_invalid_access.h", | |
| 142 "debug/crash_logging.cc", | |
| 143 "debug/crash_logging.h", | |
| 144 "debug/debugger.cc", | |
| 145 "debug/debugger.h", | |
| 146 "debug/debugger_posix.cc", | |
| 147 "debug/debugger_win.cc", | |
| 148 "debug/dump_without_crashing.cc", | |
| 149 "debug/dump_without_crashing.h", | |
| 150 "debug/gdi_debug_util_win.cc", | |
| 151 "debug/gdi_debug_util_win.h", | |
| 152 "third_party/dmg_fp/dmg_fp.h", | |
| 153 "third_party/dmg_fp/dtoa_wrapper.cc", | |
| 154 "third_party/dmg_fp/g_fmt.cc", | |
| 155 "third_party/icu/icu_utf.cc", | |
| 156 "third_party/icu/icu_utf.h", | |
| 157 "third_party/superfasthash/superfasthash.c", | |
| 158 | |
| 159 # This file depends on files from the "allocator" target, | |
| 160 # but this target does not depend on "allocator" (see | |
| 161 # allocator.gyp for details). | |
| 162 "debug/leak_annotations.h", | |
| 163 "debug/leak_tracker.h", | |
| 164 "debug/proc_maps_linux.cc", | |
| 165 "debug/proc_maps_linux.h", | |
| 166 "debug/profiler.cc", | |
| 167 "debug/profiler.h", | |
| 168 "debug/stack_trace.cc", | |
| 169 "debug/stack_trace.h", | |
| 170 "debug/stack_trace_android.cc", | |
| 171 "debug/stack_trace_posix.cc", | |
| 172 "debug/stack_trace_win.cc", | |
| 173 "debug/task_annotator.cc", | |
| 174 "debug/task_annotator.h", | |
| 175 "deferred_sequenced_task_runner.cc", | 163 "deferred_sequenced_task_runner.cc", |
| 176 "deferred_sequenced_task_runner.h", | 164 "deferred_sequenced_task_runner.h", |
| 177 "environment.cc", | 165 "environment.cc", |
| 178 "environment.h", | 166 "environment.h", |
| 179 "file_descriptor_posix.h", | 167 "file_descriptor_posix.h", |
| 180 "file_version_info.h", | 168 "file_version_info.h", |
| 181 "file_version_info_mac.h", | 169 "file_version_info_mac.h", |
| 182 "file_version_info_mac.mm", | 170 "file_version_info_mac.mm", |
| 183 "file_version_info_win.cc", | 171 "file_version_info_win.cc", |
| 184 "file_version_info_win.h", | 172 "file_version_info_win.h", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 "hash.h", | 224 "hash.h", |
| 237 "id_map.h", | 225 "id_map.h", |
| 238 "ios/device_util.h", | 226 "ios/device_util.h", |
| 239 "ios/device_util.mm", | 227 "ios/device_util.mm", |
| 240 "ios/ios_util.h", | 228 "ios/ios_util.h", |
| 241 "ios/ios_util.mm", | 229 "ios/ios_util.mm", |
| 242 "ios/scoped_critical_action.h", | 230 "ios/scoped_critical_action.h", |
| 243 "ios/scoped_critical_action.mm", | 231 "ios/scoped_critical_action.mm", |
| 244 "ios/weak_nsobject.h", | 232 "ios/weak_nsobject.h", |
| 245 "ios/weak_nsobject.mm", | 233 "ios/weak_nsobject.mm", |
| 246 "json/json_file_value_serializer.cc", | |
| 247 "json/json_file_value_serializer.h", | |
| 248 "json/json_parser.cc", | |
| 249 "json/json_parser.h", | |
| 250 "json/json_reader.cc", | |
| 251 "json/json_reader.h", | |
| 252 "json/json_string_value_serializer.cc", | |
| 253 "json/json_string_value_serializer.h", | |
| 254 "json/json_value_converter.cc", | |
| 255 "json/json_value_converter.h", | |
| 256 "json/json_writer.cc", | |
| 257 "json/json_writer.h", | |
| 258 "json/string_escape.cc", | |
| 259 "json/string_escape.h", | |
| 260 "lazy_instance.cc", | 234 "lazy_instance.cc", |
| 261 "lazy_instance.h", | 235 "lazy_instance.h", |
| 262 "linux_util.cc", | 236 "linux_util.cc", |
| 263 "linux_util.h", | 237 "linux_util.h", |
| 264 "location.cc", | 238 "location.cc", |
| 265 "location.h", | 239 "location.h", |
| 266 "logging.cc", | 240 "logging.cc", |
| 267 "logging.h", | 241 "logging.h", |
| 268 "logging_win.cc", | 242 "logging_win.cc", |
| 269 "logging_win.h", | 243 "logging_win.h", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 "mac/scoped_nsobject.h", | 283 "mac/scoped_nsobject.h", |
| 310 "mac/scoped_objc_class_swizzler.h", | 284 "mac/scoped_objc_class_swizzler.h", |
| 311 "mac/scoped_objc_class_swizzler.mm", | 285 "mac/scoped_objc_class_swizzler.mm", |
| 312 "mac/scoped_sending_event.h", | 286 "mac/scoped_sending_event.h", |
| 313 "mac/scoped_sending_event.mm", | 287 "mac/scoped_sending_event.mm", |
| 314 "mac/sdk_forward_declarations.h", | 288 "mac/sdk_forward_declarations.h", |
| 315 "mac/sdk_forward_declarations.mm", | 289 "mac/sdk_forward_declarations.mm", |
| 316 "macros.h", | 290 "macros.h", |
| 317 "md5.cc", | 291 "md5.cc", |
| 318 "md5.h", | 292 "md5.h", |
| 319 "memory/aligned_memory.cc", | |
| 320 "memory/aligned_memory.h", | |
| 321 "memory/discardable_memory.cc", | |
| 322 "memory/discardable_memory.h", | |
| 323 "memory/discardable_memory_android.cc", | |
| 324 "memory/discardable_memory_emulated.cc", | |
| 325 "memory/discardable_memory_emulated.h", | |
| 326 "memory/discardable_memory_linux.cc", | |
| 327 "memory/discardable_memory_mac.cc", | |
| 328 "memory/discardable_memory_manager.cc", | |
| 329 "memory/discardable_memory_manager.h", | |
| 330 "memory/discardable_memory_shmem.cc", | |
| 331 "memory/discardable_memory_shmem.h", | |
| 332 "memory/discardable_memory_shmem_allocator.cc", | |
| 333 "memory/discardable_memory_shmem_allocator.h", | |
| 334 "memory/discardable_memory_win.cc", | |
| 335 "memory/discardable_shared_memory.cc", | |
| 336 "memory/discardable_shared_memory.h", | |
| 337 "memory/linked_ptr.h", | |
| 338 "memory/manual_constructor.h", | |
| 339 "memory/memory_pressure_listener.cc", | |
| 340 "memory/memory_pressure_listener.h", | |
| 341 "memory/raw_scoped_refptr_mismatch_checker.h", | |
| 342 "memory/ref_counted.cc", | |
| 343 "memory/ref_counted.h", | |
| 344 "memory/ref_counted_delete_on_message_loop.h", | |
| 345 "memory/ref_counted_memory.cc", | |
| 346 "memory/ref_counted_memory.h", | |
| 347 "memory/scoped_policy.h", | |
| 348 "memory/scoped_ptr.h", | |
| 349 "memory/scoped_vector.h", | |
| 350 "memory/shared_memory.h", | |
| 351 "memory/shared_memory_android.cc", | |
| 352 "memory/shared_memory_nacl.cc", | |
| 353 "memory/shared_memory_posix.cc", | |
| 354 "memory/shared_memory_win.cc", | |
| 355 "memory/singleton.cc", | |
| 356 "memory/singleton.h", | |
| 357 "memory/weak_ptr.cc", | |
| 358 "memory/weak_ptr.h", | |
| 359 "message_loop/incoming_task_queue.cc", | 293 "message_loop/incoming_task_queue.cc", |
| 360 "message_loop/incoming_task_queue.h", | 294 "message_loop/incoming_task_queue.h", |
| 361 "message_loop/message_loop.cc", | 295 "message_loop/message_loop.cc", |
| 362 "message_loop/message_loop.h", | 296 "message_loop/message_loop.h", |
| 363 "message_loop/message_loop_proxy.cc", | 297 "message_loop/message_loop_proxy.cc", |
| 364 "message_loop/message_loop_proxy.h", | 298 "message_loop/message_loop_proxy.h", |
| 365 "message_loop/message_loop_proxy_impl.cc", | 299 "message_loop/message_loop_proxy_impl.cc", |
| 366 "message_loop/message_loop_proxy_impl.h", | 300 "message_loop/message_loop_proxy_impl.h", |
| 367 "message_loop/message_pump.cc", | 301 "message_loop/message_pump.cc", |
| 368 "message_loop/message_pump.h", | 302 "message_loop/message_pump.h", |
| 369 "message_loop/message_pump_android.cc", | 303 "message_loop/message_pump_android.cc", |
| 370 "message_loop/message_pump_android.h", | 304 "message_loop/message_pump_android.h", |
| 371 "message_loop/message_pump_default.cc", | 305 "message_loop/message_pump_default.cc", |
| 372 "message_loop/message_pump_default.h", | 306 "message_loop/message_pump_default.h", |
| 373 "message_loop/message_pump_glib.cc", | 307 "message_loop/message_pump_glib.cc", |
| 374 "message_loop/message_pump_glib.h", | 308 "message_loop/message_pump_glib.h", |
| 375 "message_loop/message_pump_io_ios.cc", | 309 "message_loop/message_pump_io_ios.cc", |
| 376 "message_loop/message_pump_io_ios.h", | 310 "message_loop/message_pump_io_ios.h", |
| 377 "message_loop/message_pump_libevent.cc", | 311 "message_loop/message_pump_libevent.cc", |
| 378 "message_loop/message_pump_libevent.h", | 312 "message_loop/message_pump_libevent.h", |
| 379 "message_loop/message_pump_mac.h", | 313 "message_loop/message_pump_mac.h", |
| 380 "message_loop/message_pump_mac.mm", | 314 "message_loop/message_pump_mac.mm", |
| 381 "message_loop/message_pump_win.cc", | 315 "message_loop/message_pump_win.cc", |
| 382 "message_loop/message_pump_win.h", | 316 "message_loop/message_pump_win.h", |
| 383 "metrics/bucket_ranges.cc", | |
| 384 "metrics/bucket_ranges.h", | |
| 385 "metrics/field_trial.cc", | |
| 386 "metrics/field_trial.h", | |
| 387 "metrics/histogram.cc", | |
| 388 "metrics/histogram.h", | |
| 389 "metrics/histogram_base.cc", | |
| 390 "metrics/histogram_base.h", | |
| 391 "metrics/histogram_delta_serialization.", | |
| 392 "metrics/histogram_delta_serialization.cc", | |
| 393 "metrics/histogram_flattener.h", | |
| 394 "metrics/histogram_macros.h", | |
| 395 "metrics/histogram_samples.cc", | |
| 396 "metrics/histogram_samples.h", | |
| 397 "metrics/histogram_snapshot_manager.cc", | |
| 398 "metrics/histogram_snapshot_manager.h", | |
| 399 "metrics/sample_map.cc", | |
| 400 "metrics/sample_map.h", | |
| 401 "metrics/sample_vector.cc", | |
| 402 "metrics/sample_vector.h", | |
| 403 "metrics/sparse_histogram.cc", | |
| 404 "metrics/sparse_histogram.h", | |
| 405 "metrics/statistics_recorder.cc", | |
| 406 "metrics/statistics_recorder.h", | |
| 407 "metrics/user_metrics.cc", | |
| 408 "metrics/user_metrics.h", | |
| 409 "metrics/user_metrics_action.h", | |
| 410 "move.h", | 317 "move.h", |
| 411 "native_library.h", | 318 "native_library.h", |
| 412 "native_library_mac.mm", | 319 "native_library_mac.mm", |
| 413 "native_library_posix.cc", | 320 "native_library_posix.cc", |
| 414 "native_library_win.cc", | 321 "native_library_win.cc", |
| 415 "nix/mime_util_xdg.cc", | 322 "nix/mime_util_xdg.cc", |
| 416 "nix/mime_util_xdg.h", | 323 "nix/mime_util_xdg.h", |
| 417 "nix/xdg_util.cc", | 324 "nix/xdg_util.cc", |
| 418 "nix/xdg_util.h", | 325 "nix/xdg_util.h", |
| 419 "numerics/safe_conversions.h", | 326 "numerics/safe_conversions.h", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 446 "power_monitor/power_monitor_device_source_android.cc", | 353 "power_monitor/power_monitor_device_source_android.cc", |
| 447 "power_monitor/power_monitor_device_source_android.h", | 354 "power_monitor/power_monitor_device_source_android.h", |
| 448 "power_monitor/power_monitor_device_source_chromeos.cc", | 355 "power_monitor/power_monitor_device_source_chromeos.cc", |
| 449 "power_monitor/power_monitor_device_source_ios.mm", | 356 "power_monitor/power_monitor_device_source_ios.mm", |
| 450 "power_monitor/power_monitor_device_source_mac.mm", | 357 "power_monitor/power_monitor_device_source_mac.mm", |
| 451 "power_monitor/power_monitor_device_source_posix.cc", | 358 "power_monitor/power_monitor_device_source_posix.cc", |
| 452 "power_monitor/power_monitor_device_source_win.cc", | 359 "power_monitor/power_monitor_device_source_win.cc", |
| 453 "power_monitor/power_monitor_source.cc", | 360 "power_monitor/power_monitor_source.cc", |
| 454 "power_monitor/power_monitor_source.h", | 361 "power_monitor/power_monitor_source.h", |
| 455 "power_monitor/power_observer.h", | 362 "power_monitor/power_observer.h", |
| 456 "process/internal_linux.cc", | |
| 457 "process/internal_linux.h", | |
| 458 "process/kill.cc", | |
| 459 "process/kill.h", | |
| 460 "process/kill_mac.cc", | |
| 461 "process/kill_posix.cc", | |
| 462 "process/kill_win.cc", | |
| 463 "process/launch.cc", | |
| 464 "process/launch.h", | |
| 465 "process/launch_ios.cc", | |
| 466 "process/launch_mac.cc", | |
| 467 "process/launch_posix.cc", | |
| 468 "process/launch_win.cc", | |
| 469 "process/memory.cc", | |
| 470 "process/memory.h", | |
| 471 "process/memory_linux.cc", | |
| 472 "process/memory_mac.mm", | |
| 473 "process/memory_win.cc", | |
| 474 "process/process.h", | |
| 475 "process/process_handle_freebsd.cc", | |
| 476 "process/process_handle_linux.cc", | |
| 477 "process/process_handle_mac.cc", | |
| 478 "process/process_handle_openbsd.cc", | |
| 479 "process/process_handle_posix.cc", | |
| 480 "process/process_handle_win.cc", | |
| 481 "process/process_info.h", | |
| 482 "process/process_info_linux.cc", | |
| 483 "process/process_info_mac.cc", | |
| 484 "process/process_info_win.cc", | |
| 485 "process/process_iterator.cc", | |
| 486 "process/process_iterator.h", | |
| 487 "process/process_iterator_freebsd.cc", | |
| 488 "process/process_iterator_linux.cc", | |
| 489 "process/process_iterator_mac.cc", | |
| 490 "process/process_iterator_openbsd.cc", | |
| 491 "process/process_iterator_win.cc", | |
| 492 "process/process_linux.cc", | |
| 493 "process/process_metrics.cc", | |
| 494 "process/process_metrics.h", | |
| 495 "process/process_metrics_freebsd.cc", | |
| 496 "process/process_metrics_ios.cc", | |
| 497 "process/process_metrics_linux.cc", | |
| 498 "process/process_metrics_mac.cc", | |
| 499 "process/process_metrics_openbsd.cc", | |
| 500 "process/process_metrics_posix.cc", | |
| 501 "process/process_metrics_win.cc", | |
| 502 "process/process_posix.cc", | |
| 503 "process/process_win.cc", | |
| 504 "profiler/alternate_timer.cc", | 363 "profiler/alternate_timer.cc", |
| 505 "profiler/alternate_timer.h", | 364 "profiler/alternate_timer.h", |
| 506 "profiler/scoped_profile.cc", | 365 "profiler/scoped_profile.cc", |
| 507 "profiler/scoped_profile.h", | 366 "profiler/scoped_profile.h", |
| 508 "profiler/scoped_tracker.cc", | 367 "profiler/scoped_tracker.cc", |
| 509 "profiler/scoped_tracker.h", | 368 "profiler/scoped_tracker.h", |
| 510 "profiler/tracked_time.cc", | 369 "profiler/tracked_time.cc", |
| 511 "profiler/tracked_time.h", | 370 "profiler/tracked_time.h", |
| 512 "rand_util.cc", | 371 "rand_util.cc", |
| 513 "rand_util.h", | 372 "rand_util.h", |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 "sys_info_posix.cc", | 460 "sys_info_posix.cc", |
| 602 "sys_info_win.cc", | 461 "sys_info_win.cc", |
| 603 "system_monitor/system_monitor.cc", | 462 "system_monitor/system_monitor.cc", |
| 604 "system_monitor/system_monitor.h", | 463 "system_monitor/system_monitor.h", |
| 605 "task/cancelable_task_tracker.cc", | 464 "task/cancelable_task_tracker.cc", |
| 606 "task/cancelable_task_tracker.h", | 465 "task/cancelable_task_tracker.h", |
| 607 "task_runner.cc", | 466 "task_runner.cc", |
| 608 "task_runner.h", | 467 "task_runner.h", |
| 609 "task_runner_util.h", | 468 "task_runner_util.h", |
| 610 "template_util.h", | 469 "template_util.h", |
| 470 "third_party/dmg_fp/dmg_fp.h", |
| 471 "third_party/dmg_fp/dtoa_wrapper.cc", |
| 472 "third_party/dmg_fp/g_fmt.cc", |
| 473 "third_party/icu/icu_utf.cc", |
| 474 "third_party/icu/icu_utf.h", |
| 475 "third_party/superfasthash/superfasthash.c", |
| 611 "thread_task_runner_handle.cc", | 476 "thread_task_runner_handle.cc", |
| 612 "thread_task_runner_handle.h", | 477 "thread_task_runner_handle.h", |
| 613 "threading/non_thread_safe.h", | 478 "threading/non_thread_safe.h", |
| 614 "threading/non_thread_safe_impl.cc", | 479 "threading/non_thread_safe_impl.cc", |
| 615 "threading/non_thread_safe_impl.h", | 480 "threading/non_thread_safe_impl.h", |
| 616 "threading/platform_thread.h", | 481 "threading/platform_thread.h", |
| 617 "threading/platform_thread_android.cc", | 482 "threading/platform_thread_android.cc", |
| 618 "threading/platform_thread_linux.cc", | 483 "threading/platform_thread_linux.cc", |
| 619 "threading/platform_thread_mac.mm", | 484 "threading/platform_thread_mac.mm", |
| 620 "threading/platform_thread_posix.cc", | 485 "threading/platform_thread_posix.cc", |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 "time/time_win.cc", | 531 "time/time_win.cc", |
| 667 "timer/elapsed_timer.cc", | 532 "timer/elapsed_timer.cc", |
| 668 "timer/elapsed_timer.h", | 533 "timer/elapsed_timer.h", |
| 669 "timer/hi_res_timer_manager.h", | 534 "timer/hi_res_timer_manager.h", |
| 670 "timer/hi_res_timer_manager_posix.cc", | 535 "timer/hi_res_timer_manager_posix.cc", |
| 671 "timer/hi_res_timer_manager_win.cc", | 536 "timer/hi_res_timer_manager_win.cc", |
| 672 "timer/mock_timer.cc", | 537 "timer/mock_timer.cc", |
| 673 "timer/mock_timer.h", | 538 "timer/mock_timer.h", |
| 674 "timer/timer.cc", | 539 "timer/timer.cc", |
| 675 "timer/timer.h", | 540 "timer/timer.h", |
| 676 "trace_event/memory_dump_manager.cc", | |
| 677 "trace_event/memory_dump_manager.h", | |
| 678 "trace_event/memory_dump_provider.h", | |
| 679 "trace_event/process_memory_dump.cc", | |
| 680 "trace_event/process_memory_dump.h", | |
| 681 "trace_event/process_memory_maps.cc", | |
| 682 "trace_event/process_memory_maps.h", | |
| 683 "trace_event/process_memory_maps_dump_provider.cc", | |
| 684 "trace_event/process_memory_maps_dump_provider.h", | |
| 685 "trace_event/process_memory_totals.cc", | |
| 686 "trace_event/process_memory_totals.h", | |
| 687 "trace_event/process_memory_totals_dump_provider.cc", | |
| 688 "trace_event/process_memory_totals_dump_provider.h", | |
| 689 "trace_event/trace_event.h", | |
| 690 "trace_event/trace_event_android.cc", | |
| 691 "trace_event/trace_event_argument.cc", | |
| 692 "trace_event/trace_event_argument.h", | |
| 693 "trace_event/trace_event_impl.cc", | |
| 694 "trace_event/trace_event_impl.h", | |
| 695 "trace_event/trace_event_impl_constants.cc", | |
| 696 "trace_event/trace_event_memory.cc", | |
| 697 "trace_event/trace_event_memory.h", | |
| 698 "trace_event/trace_event_synthetic_delay.cc", | |
| 699 "trace_event/trace_event_synthetic_delay.h", | |
| 700 "trace_event/trace_event_system_stats_monitor.cc", | |
| 701 "trace_event/trace_event_system_stats_monitor.h", | |
| 702 "trace_event/trace_event_win.cc", | |
| 703 "trace_event/trace_event_win.h", | |
| 704 "tracked_objects.cc", | 541 "tracked_objects.cc", |
| 705 "tracked_objects.h", | 542 "tracked_objects.h", |
| 706 "tracking_info.cc", | 543 "tracking_info.cc", |
| 707 "tracking_info.h", | 544 "tracking_info.h", |
| 708 "tuple.h", | 545 "tuple.h", |
| 709 "value_conversions.cc", | 546 "value_conversions.cc", |
| 710 "value_conversions.h", | 547 "value_conversions.h", |
| 711 "values.cc", | 548 "values.cc", |
| 712 "values.h", | 549 "values.h", |
| 713 "version.cc", | 550 "version.cc", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 "win/startup_information.cc", | 595 "win/startup_information.cc", |
| 759 "win/startup_information.h", | 596 "win/startup_information.h", |
| 760 "win/win_util.cc", | 597 "win/win_util.cc", |
| 761 "win/win_util.h", | 598 "win/win_util.h", |
| 762 "win/windows_version.cc", | 599 "win/windows_version.cc", |
| 763 "win/windows_version.h", | 600 "win/windows_version.h", |
| 764 "win/wrapped_window_proc.cc", | 601 "win/wrapped_window_proc.cc", |
| 765 "win/wrapped_window_proc.h", | 602 "win/wrapped_window_proc.h", |
| 766 ] | 603 ] |
| 767 | 604 |
| 768 if (is_nacl) { | |
| 769 # We reset sources_assignment_filter in order to explicitly include | |
| 770 # the linux file (which would otherwise be filtered out). | |
| 771 set_sources_assignment_filter([]) | |
| 772 sources += [ | |
| 773 "files/file_path_watcher_stub.cc", | |
| 774 "sync_socket_nacl.cc", | |
| 775 "threading/platform_thread_linux.cc", | |
| 776 ] | |
| 777 set_sources_assignment_filter(sources_assignment_filter) | |
| 778 | |
| 779 sources -= [ | |
| 780 "allocator/type_profiler_control.cc", | |
| 781 "allocator/type_profiler_control.h", | |
| 782 "async_socket_io_handler_posix.cc", | |
| 783 "base_paths.cc", | |
| 784 "cpu.cc", | |
| 785 "files/file_proxy.cc", | |
| 786 "files/file_util.cc", | |
| 787 "files/file_util_proxy.cc", | |
| 788 "files/scoped_temp_dir.cc", | |
| 789 "path_service.cc", | |
| 790 "scoped_native_library.cc", | |
| 791 ] | |
| 792 } | |
| 793 | |
| 794 sources -= [ | 605 sources -= [ |
| 795 "process/process_handle_freebsd.cc", | |
| 796 "process/process_handle_openbsd.cc", | |
| 797 "process/process_iterator_freebsd.cc", | |
| 798 "process/process_iterator_openbsd.cc", | |
| 799 "process/process_metrics_freebsd.cc", | |
| 800 "process/process_metrics_openbsd.cc", | |
| 801 "sys_info_freebsd.cc", | 606 "sys_info_freebsd.cc", |
| 802 "sys_info_openbsd.cc", | 607 "sys_info_openbsd.cc", |
| 803 ] | 608 ] |
| 804 | 609 |
| 805 defines = [ "BASE_IMPLEMENTATION" ] | 610 defines = [ "BASE_IMPLEMENTATION" ] |
| 806 | 611 |
| 807 deps = [ | 612 deps = [ |
| 808 ":base_static", | 613 ":base_static", |
| 809 "//base/allocator:allocator_extension_thunks", | 614 "//base/allocator:allocator_extension_thunks", |
| 810 "//base/third_party/dynamic_annotations", | 615 "//base/third_party/dynamic_annotations", |
| 811 "//base/third_party/nspr", | 616 "//base/third_party/nspr", |
| 812 "//third_party/modp_b64", | 617 "//third_party/modp_b64", |
| 813 ] | 618 ] |
| 814 | 619 |
| 620 public_deps = [ |
| 621 ":base_paths", |
| 622 "//base/debug", |
| 623 "//base/json", |
| 624 "//base/memory", |
| 625 "//base/metrics", |
| 626 "//base/process", |
| 627 "//base/trace_event", |
| 628 ] |
| 629 |
| 815 # Allow more direct string conversions on platforms with native utf8 | 630 # Allow more direct string conversions on platforms with native utf8 |
| 816 # strings | 631 # strings |
| 817 if (is_mac || is_ios || is_chromeos) { | 632 if (is_mac || is_ios || is_chromeos) { |
| 818 defines += [ "SYSTEM_NATIVE_UTF8" ] | 633 defines += [ "SYSTEM_NATIVE_UTF8" ] |
| 819 } | 634 } |
| 820 | 635 |
| 821 if (is_android) { | 636 if (is_android) { |
| 822 sources += [ | 637 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] |
| 823 "memory/discardable_memory_ashmem.cc", | |
| 824 "memory/discardable_memory_ashmem.h", | |
| 825 "memory/discardable_memory_ashmem_allocator.cc", | |
| 826 "memory/discardable_memory_ashmem_allocator.h", | |
| 827 ] | |
| 828 sources -= [ | |
| 829 "base_paths_posix.cc", | |
| 830 "power_monitor/power_monitor_device_source_posix.cc", | |
| 831 ] | |
| 832 | 638 |
| 833 # Android uses some Linux sources, put those back. | 639 # Android uses some Linux sources, put those back. |
| 834 set_sources_assignment_filter([]) | 640 set_sources_assignment_filter([]) |
| 835 sources += [ | 641 sources += [ |
| 836 "debug/proc_maps_linux.cc", | |
| 837 "files/file_path_watcher_linux.cc", | 642 "files/file_path_watcher_linux.cc", |
| 838 "posix/unix_domain_socket_linux.cc", | 643 "posix/unix_domain_socket_linux.cc", |
| 839 "process/internal_linux.cc", | |
| 840 "process/memory_linux.cc", | |
| 841 "process/process_handle_linux.cc", | |
| 842 "process/process_iterator_linux.cc", | |
| 843 "process/process_metrics_linux.cc", | |
| 844 "sys_info_linux.cc", | 644 "sys_info_linux.cc", |
| 845 ] | 645 ] |
| 846 set_sources_assignment_filter(sources_assignment_filter) | 646 set_sources_assignment_filter(sources_assignment_filter) |
| 847 | 647 |
| 848 deps += [ | 648 deps += [ |
| 849 ":base_jni_headers", | 649 ":base_jni_headers", |
| 850 "//third_party/ashmem", | 650 "//third_party/ashmem", |
| 851 "//third_party/android_tools:cpu_features", | 651 "//third_party/android_tools:cpu_features", |
| 852 ] | 652 ] |
| 853 | 653 |
| 854 # logging.cc uses the Android logging library. | 654 # logging.cc uses the Android logging library. |
| 855 libs = [ "log" ] | 655 libs = [ "log" ] |
| 856 | |
| 857 sources -= [ "debug/stack_trace_posix.cc" ] | |
| 858 } | 656 } |
| 859 | 657 |
| 860 if (is_chromeos) { | 658 if (is_chromeos) { |
| 861 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | 659 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] |
| 862 } | 660 } |
| 863 | 661 |
| 864 if (is_nacl) { | 662 if (is_nacl) { |
| 865 # These things would otherwise be built on a Posix build but aren't | 663 # We reset sources_assignment_filter in order to explicitly include |
| 866 # supported on NaCl. | 664 # the linux file (which would otherwise be filtered out). |
| 665 set_sources_assignment_filter([]) |
| 666 sources += [ |
| 667 "files/file_path_watcher_stub.cc", |
| 668 "sync_socket_nacl.cc", |
| 669 "threading/platform_thread_linux.cc", |
| 670 ] |
| 671 set_sources_assignment_filter(sources_assignment_filter) |
| 672 |
| 867 sources -= [ | 673 sources -= [ |
| 868 "debug/stack_trace_posix.cc", | 674 "allocator/type_profiler_control.cc", |
| 675 "allocator/type_profiler_control.h", |
| 676 "async_socket_io_handler_posix.cc", |
| 677 "cpu.cc", |
| 869 "files/file_enumerator_posix.cc", | 678 "files/file_enumerator_posix.cc", |
| 679 "files/file_proxy.cc", |
| 680 "files/file_util.cc", |
| 870 "files/file_util_posix.cc", | 681 "files/file_util_posix.cc", |
| 871 "memory/shared_memory_posix.cc", | 682 "files/file_util_proxy.cc", |
| 683 "files/important_file_writer.cc", |
| 684 "files/important_file_writer.h", |
| 685 "files/scoped_temp_dir.cc", |
| 872 "message_loop/message_pump_libevent.cc", | 686 "message_loop/message_pump_libevent.cc", |
| 873 "metrics/field_trial.cc", | |
| 874 "native_library_posix.cc", | 687 "native_library_posix.cc", |
| 875 "process/kill_posix.cc", | 688 "path_service.cc", |
| 876 "process/launch_posix.cc", | |
| 877 "process/process_metrics_posix.cc", | |
| 878 "process/process_posix.cc", | |
| 879 "rand_util_posix.cc", | 689 "rand_util_posix.cc", |
| 690 "scoped_native_library.cc", |
| 880 "sync_socket_posix.cc", | 691 "sync_socket_posix.cc", |
| 692 "sys_info.cc", |
| 881 "sys_info_posix.cc", | 693 "sys_info_posix.cc", |
| 882 ] | 694 ] |
| 883 } else { | 695 } else { |
| 884 # Remove NaCl stuff. | 696 # Remove NaCl stuff. |
| 885 sources -= [ | 697 sources -= [ |
| 886 "memory/shared_memory_nacl.cc", | |
| 887 "os_compat_nacl.cc", | 698 "os_compat_nacl.cc", |
| 888 "os_compat_nacl.h", | 699 "os_compat_nacl.h", |
| 889 "rand_util_nacl.cc", | 700 "rand_util_nacl.cc", |
| 890 ] | 701 ] |
| 891 } | 702 } |
| 892 | 703 |
| 893 # Windows. | 704 # Windows. |
| 894 if (is_win) { | 705 if (is_win) { |
| 895 sources -= [ | 706 sources -= [ |
| 896 "message_loop/message_pump_libevent.cc", | 707 "message_loop/message_pump_libevent.cc", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 915 "/DELAYLOAD:powrprof.dll", | 726 "/DELAYLOAD:powrprof.dll", |
| 916 "/DELAYLOAD:setupapi.dll", | 727 "/DELAYLOAD:setupapi.dll", |
| 917 ] | 728 ] |
| 918 } else if (!is_nacl) { | 729 } else if (!is_nacl) { |
| 919 # Non-Windows. | 730 # Non-Windows. |
| 920 deps += [ "//third_party/libevent" ] | 731 deps += [ "//third_party/libevent" ] |
| 921 } | 732 } |
| 922 | 733 |
| 923 # Mac. | 734 # Mac. |
| 924 if (is_mac) { | 735 if (is_mac) { |
| 925 sources += [ | |
| 926 "memory/discardable_memory_mach.cc", | |
| 927 "memory/discardable_memory_mach.h", | |
| 928 ] | |
| 929 sources -= [ | 736 sources -= [ |
| 930 "base_paths_posix.cc", | |
| 931 "native_library_posix.cc", | 737 "native_library_posix.cc", |
| 932 "strings/sys_string_conversions_posix.cc", | 738 "strings/sys_string_conversions_posix.cc", |
| 933 ] | 739 ] |
| 934 } else { | 740 } else { |
| 935 # Non-Mac. | 741 # Non-Mac. |
| 936 sources -= [ | 742 sources -= [ |
| 937 "files/file_path_watcher_fsevents.cc", | 743 "files/file_path_watcher_fsevents.cc", |
| 938 "files/file_path_watcher_fsevents.h", | 744 "files/file_path_watcher_fsevents.h", |
| 939 "files/file_path_watcher_kqueue.cc", | 745 "files/file_path_watcher_kqueue.cc", |
| 940 "files/file_path_watcher_kqueue.h", | 746 "files/file_path_watcher_kqueue.h", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 "message_loop/message_pump_glib.cc", | 789 "message_loop/message_pump_glib.cc", |
| 984 "message_loop/message_pump_glib.h", | 790 "message_loop/message_pump_glib.h", |
| 985 ] | 791 ] |
| 986 } | 792 } |
| 987 | 793 |
| 988 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 794 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 989 if (is_android && !is_debug) { | 795 if (is_android && !is_debug) { |
| 990 configs -= [ "//build/config/compiler:optimize" ] | 796 configs -= [ "//build/config/compiler:optimize" ] |
| 991 configs += [ "//build/config/compiler:optimize_max" ] | 797 configs += [ "//build/config/compiler:optimize_max" ] |
| 992 } | 798 } |
| 799 |
| 800 allow_circular_includes_from = public_deps |
| 993 } | 801 } |
| 994 | 802 |
| 995 # This is the subset of files from base that should not be used with a dynamic | 803 # This is the subset of files from base that should not be used with a dynamic |
| 996 # library. Note that this library cannot depend on base because base depends on | 804 # library. Note that this library cannot depend on base because base depends on |
| 997 # base_static. | 805 # base_static. |
| 998 source_set("base_static") { | 806 source_set("base_static") { |
| 999 sources = [ | 807 sources = [ |
| 1000 "base_switches.cc", | 808 "base_switches.cc", |
| 1001 "base_switches.h", | 809 "base_switches.h", |
| 1002 "win/pe_image.cc", | 810 "win/pe_image.cc", |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 | 866 |
| 1059 if (is_android && !is_debug) { | 867 if (is_android && !is_debug) { |
| 1060 configs -= [ "//build/config/compiler:optimize" ] | 868 configs -= [ "//build/config/compiler:optimize" ] |
| 1061 configs += [ "//build/config/compiler:optimize_max" ] | 869 configs += [ "//build/config/compiler:optimize_max" ] |
| 1062 } | 870 } |
| 1063 | 871 |
| 1064 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 872 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1065 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 873 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1066 } | 874 } |
| 1067 | 875 |
| 876 if (is_linux && !is_chromeos) { |
| 877 # TODO(GYP): Figure out which of these work and are needed on other platforms. |
| 878 test("base_perftests") { |
| 879 sources = [ |
| 880 "message_loop/message_pump_perftest.cc", |
| 881 |
| 882 # "test/run_all_unittests.cc", |
| 883 "threading/thread_perftest.cc", |
| 884 ] |
| 885 deps = [ |
| 886 ":base", |
| 887 "//base/test:test_support", |
| 888 "//base/test:test_support_perf", |
| 889 "//testing/perf", |
| 890 "//testing/gtest", |
| 891 ] |
| 892 |
| 893 if (is_android) { |
| 894 deps += [ "//testing/android:native_test_native_code" ] |
| 895 } |
| 896 } |
| 897 |
| 898 test("base_i18n_perftests") { |
| 899 sources = [ |
| 900 "i18n/streaming_utf8_validator_perftest.cc", |
| 901 ] |
| 902 deps = [ |
| 903 ":base", |
| 904 ":i18n", |
| 905 "//base/test:test_support", |
| 906 "//base/test:test_support_perf", |
| 907 "//testing/gtest", |
| 908 ] |
| 909 } |
| 910 |
| 911 if (!is_ios) { |
| 912 executable("build_utf8_validator_tables") { |
| 913 sources = [ |
| 914 "i18n/build_utf8_validator_tables.cc", |
| 915 ] |
| 916 deps = [ |
| 917 ":base", |
| 918 "//third_party/icu:icuuc", |
| 919 ] |
| 920 } |
| 921 |
| 922 executable("check_example") { |
| 923 sources = [ |
| 924 "check_example.cc", |
| 925 ] |
| 926 deps = [ |
| 927 ":base", |
| 928 ] |
| 929 } |
| 930 } |
| 931 } |
| 932 |
| 1068 source_set("prefs") { | 933 source_set("prefs") { |
| 1069 sources = [ | 934 sources = [ |
| 1070 "prefs/base_prefs_export.h", | 935 "prefs/base_prefs_export.h", |
| 1071 "prefs/base_prefs_switches.cc", | |
| 1072 "prefs/base_prefs_switches.h", | |
| 1073 "prefs/default_pref_store.cc", | 936 "prefs/default_pref_store.cc", |
| 1074 "prefs/default_pref_store.h", | 937 "prefs/default_pref_store.h", |
| 1075 "prefs/json_pref_store.cc", | 938 "prefs/json_pref_store.cc", |
| 1076 "prefs/json_pref_store.h", | 939 "prefs/json_pref_store.h", |
| 1077 "prefs/overlay_user_pref_store.cc", | 940 "prefs/overlay_user_pref_store.cc", |
| 1078 "prefs/overlay_user_pref_store.h", | 941 "prefs/overlay_user_pref_store.h", |
| 1079 "prefs/persistent_pref_store.h", | 942 "prefs/persistent_pref_store.h", |
| 1080 "prefs/pref_change_registrar.cc", | 943 "prefs/pref_change_registrar.cc", |
| 1081 "prefs/pref_change_registrar.h", | 944 "prefs/pref_change_registrar.h", |
| 1082 "prefs/pref_filter.h", | 945 "prefs/pref_filter.h", |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 "mac/bind_objc_block_unittest.mm", | 1128 "mac/bind_objc_block_unittest.mm", |
| 1266 "mac/foundation_util_unittest.mm", | 1129 "mac/foundation_util_unittest.mm", |
| 1267 "mac/libdispatch_task_runner_unittest.cc", | 1130 "mac/libdispatch_task_runner_unittest.cc", |
| 1268 "mac/mac_util_unittest.mm", | 1131 "mac/mac_util_unittest.mm", |
| 1269 "mac/objc_property_releaser_unittest.mm", | 1132 "mac/objc_property_releaser_unittest.mm", |
| 1270 "mac/scoped_nsobject_unittest.mm", | 1133 "mac/scoped_nsobject_unittest.mm", |
| 1271 "mac/scoped_objc_class_swizzler_unittest.mm", | 1134 "mac/scoped_objc_class_swizzler_unittest.mm", |
| 1272 "mac/scoped_sending_event_unittest.mm", | 1135 "mac/scoped_sending_event_unittest.mm", |
| 1273 "md5_unittest.cc", | 1136 "md5_unittest.cc", |
| 1274 "memory/aligned_memory_unittest.cc", | 1137 "memory/aligned_memory_unittest.cc", |
| 1275 "memory/discardable_memory_manager_unittest.cc", | |
| 1276 "memory/discardable_memory_unittest.cc", | 1138 "memory/discardable_memory_unittest.cc", |
| 1277 "memory/discardable_shared_memory_unittest.cc", | 1139 "memory/discardable_shared_memory_unittest.cc", |
| 1278 "memory/linked_ptr_unittest.cc", | 1140 "memory/linked_ptr_unittest.cc", |
| 1279 "memory/ref_counted_memory_unittest.cc", | 1141 "memory/ref_counted_memory_unittest.cc", |
| 1280 "memory/ref_counted_unittest.cc", | 1142 "memory/ref_counted_unittest.cc", |
| 1281 "memory/scoped_ptr_unittest.cc", | 1143 "memory/scoped_ptr_unittest.cc", |
| 1282 "memory/scoped_ptr_unittest.nc", | 1144 "memory/scoped_ptr_unittest.nc", |
| 1283 "memory/scoped_vector_unittest.cc", | 1145 "memory/scoped_vector_unittest.cc", |
| 1284 "memory/shared_memory_unittest.cc", | 1146 "memory/shared_memory_unittest.cc", |
| 1285 "memory/singleton_unittest.cc", | 1147 "memory/singleton_unittest.cc", |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 "win/scoped_bstr_unittest.cc", | 1276 "win/scoped_bstr_unittest.cc", |
| 1415 "win/scoped_comptr_unittest.cc", | 1277 "win/scoped_comptr_unittest.cc", |
| 1416 "win/scoped_process_information_unittest.cc", | 1278 "win/scoped_process_information_unittest.cc", |
| 1417 "win/scoped_variant_unittest.cc", | 1279 "win/scoped_variant_unittest.cc", |
| 1418 "win/shortcut_unittest.cc", | 1280 "win/shortcut_unittest.cc", |
| 1419 "win/startup_information_unittest.cc", | 1281 "win/startup_information_unittest.cc", |
| 1420 "win/win_util_unittest.cc", | 1282 "win/win_util_unittest.cc", |
| 1421 "win/wrapped_window_proc_unittest.cc", | 1283 "win/wrapped_window_proc_unittest.cc", |
| 1422 ] | 1284 ] |
| 1423 | 1285 |
| 1286 defines = [] |
| 1287 |
| 1424 deps = [ | 1288 deps = [ |
| 1425 ":base", | 1289 ":base", |
| 1426 ":i18n", | 1290 ":i18n", |
| 1427 ":message_loop_tests", | 1291 ":message_loop_tests", |
| 1428 ":prefs", | 1292 ":prefs", |
| 1429 ":prefs_test_support", | 1293 ":prefs_test_support", |
| 1430 "//base/allocator", | 1294 "//base/allocator", |
| 1431 "//base/test:run_all_unittests", | 1295 "//base/test:run_all_unittests", |
| 1432 "//base/test:test_support", | 1296 "//base/test:test_support", |
| 1433 "//base/third_party/dynamic_annotations", | 1297 "//base/third_party/dynamic_annotations", |
| 1434 "//base/third_party/nspr", | 1298 "//base/third_party/nspr", |
| 1435 "//testing/gmock", | 1299 "//testing/gmock", |
| 1436 "//testing/gtest", | 1300 "//testing/gtest", |
| 1437 "//third_party/icu", | 1301 "//third_party/icu", |
| 1438 ] | 1302 ] |
| 1439 | 1303 |
| 1304 # Allow more direct string conversions on platforms with native utf8 |
| 1305 # strings |
| 1306 if (is_mac || is_ios || is_chromeos) { |
| 1307 defines += [ "SYSTEM_NATIVE_UTF8" ] |
| 1308 } |
| 1309 |
| 1440 if (is_android) { | 1310 if (is_android) { |
| 1441 apk_deps = [ | 1311 apk_deps = [ |
| 1442 ":base_java", | 1312 ":base_java", |
| 1443 ":base_java_unittest_support", | 1313 ":base_java_unittest_support", |
| 1444 ] | 1314 ] |
| 1445 } | 1315 } |
| 1446 | 1316 |
| 1447 if (is_ios) { | 1317 if (is_ios) { |
| 1448 sources -= [ | 1318 sources -= [ |
| 1449 "process/memory_unittest.cc", | 1319 "process/memory_unittest.cc", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1464 "sys_string_conversions_mac_unittest.mm", | 1334 "sys_string_conversions_mac_unittest.mm", |
| 1465 ] | 1335 ] |
| 1466 set_sources_assignment_filter(sources_assignment_filter) | 1336 set_sources_assignment_filter(sources_assignment_filter) |
| 1467 | 1337 |
| 1468 # TODO(GYP): dep on copy_test_data_ios action. | 1338 # TODO(GYP): dep on copy_test_data_ios action. |
| 1469 } | 1339 } |
| 1470 | 1340 |
| 1471 if (is_linux) { | 1341 if (is_linux) { |
| 1472 sources -= [ "file_version_info_unittest.cc" ] | 1342 sources -= [ "file_version_info_unittest.cc" ] |
| 1473 sources += [ "nix/xdg_util_unittest.cc" ] | 1343 sources += [ "nix/xdg_util_unittest.cc" ] |
| 1474 defines = [ "USE_SYMBOLIZE" ] | 1344 defines += [ "USE_SYMBOLIZE" ] |
| 1475 if (use_glib) { | 1345 if (use_glib) { |
| 1476 configs += [ "//build/config/linux:glib" ] | 1346 configs += [ "//build/config/linux:glib" ] |
| 1477 } | 1347 } |
| 1478 } | 1348 } |
| 1479 | 1349 |
| 1480 if (!is_linux || use_ozone) { | 1350 if (!is_linux || use_ozone) { |
| 1481 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 1351 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] |
| 1482 } | 1352 } |
| 1483 | 1353 |
| 1484 if (is_posix || is_ios) { | 1354 if (is_posix || is_ios) { |
| 1485 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 1355 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] |
| 1486 deps += [ "//third_party/libevent" ] | 1356 deps += [ "//third_party/libevent" ] |
| 1487 } | 1357 } |
| 1488 | 1358 |
| 1489 if (is_android) { | 1359 if (is_android) { |
| 1490 deps += [ "//testing/android:native_test_native_code" ] | 1360 deps += [ "//testing/android:native_test_native_code" ] |
| 1491 set_sources_assignment_filter([]) | 1361 set_sources_assignment_filter([]) |
| 1492 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1362 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
| 1493 set_sources_assignment_filter(sources_assignment_filter) | 1363 set_sources_assignment_filter(sources_assignment_filter) |
| 1494 } | 1364 } |
| 1495 | 1365 |
| 1496 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1366 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1497 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1367 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1498 } | 1368 } |
| 1499 | 1369 |
| 1500 if (is_android) { | 1370 if (is_android) { |
| 1501 # GYP: //base.gyp:base_jni_headers | 1371 # GYP: //base.gyp:base_jni_headers |
| 1502 generate_jni("base_jni_headers") { | 1372 generate_jni("base_jni_headers") { |
| 1503 sources = [ | 1373 sources = [ |
| 1374 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", |
| 1504 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1375 "android/java/src/org/chromium/base/ApplicationStatus.java", |
| 1505 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", | |
| 1506 "android/java/src/org/chromium/base/BuildInfo.java", | 1376 "android/java/src/org/chromium/base/BuildInfo.java", |
| 1507 "android/java/src/org/chromium/base/CommandLine.java", | 1377 "android/java/src/org/chromium/base/CommandLine.java", |
| 1508 "android/java/src/org/chromium/base/ContentUriUtils.java", | 1378 "android/java/src/org/chromium/base/ContentUriUtils.java", |
| 1509 "android/java/src/org/chromium/base/CpuFeatures.java", | 1379 "android/java/src/org/chromium/base/CpuFeatures.java", |
| 1510 "android/java/src/org/chromium/base/EventLog.java", | 1380 "android/java/src/org/chromium/base/EventLog.java", |
| 1511 "android/java/src/org/chromium/base/FieldTrialList.java", | 1381 "android/java/src/org/chromium/base/FieldTrialList.java", |
| 1512 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java", | 1382 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java", |
| 1513 "android/java/src/org/chromium/base/JNIUtils.java", | 1383 "android/java/src/org/chromium/base/JNIUtils.java", |
| 1514 "android/java/src/org/chromium/base/JavaHandlerThread.java", | 1384 "android/java/src/org/chromium/base/JavaHandlerThread.java", |
| 1515 "android/java/src/org/chromium/base/LocaleUtils.java", | 1385 "android/java/src/org/chromium/base/LocaleUtils.java", |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1594 | 1464 |
| 1595 # GYP: //base.gyp:base_java_unittest_support | 1465 # GYP: //base.gyp:base_java_unittest_support |
| 1596 android_library("base_java_unittest_support") { | 1466 android_library("base_java_unittest_support") { |
| 1597 deps = [ | 1467 deps = [ |
| 1598 ":base_java", | 1468 ":base_java", |
| 1599 ] | 1469 ] |
| 1600 java_files = | 1470 java_files = |
| 1601 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1471 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1602 } | 1472 } |
| 1603 } | 1473 } |
| OLD | NEW |